@fluid-topics/ft-text-field 0.2.4 → 0.2.8
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-field.inline-styles.js +158 -158
- package/build/ft-text-field.light.js +144 -144
- package/build/ft-text-field.min.js +150 -150
- package/package.json +6 -6
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);c(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(r.set(n,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(n),this._whenDefinedPromises.delete(t)),n}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=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,f=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=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=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&&l.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!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);c(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(r.set(n,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(n),this._whenDefinedPromises.delete(t)),n}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=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,f=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=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=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&&l.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!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Xe){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 s(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;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:"",v=window.reactiveElementPolyfillSupport,m={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}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:w};class S 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=$){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}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=$){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:m.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),l=t.converter,a=null!==(n=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==n?n:m.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||w)(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:"",v=window.reactiveElementPolyfillSupport,m={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}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:w};class S 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=$){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}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=$){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:m.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),l=t.converter,a=null!==(n=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==n?n:m.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||w)(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 O;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:S}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.
|
|
59
|
+
var O;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==v||v({ReactiveElement:S}),(null!==(y=globalThis.reactiveElementVersions)&&void 0!==y?y:globalThis.reactiveElementVersions=[]).push("1.3.2");const C=globalThis.trustedTypes,k=C?C.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,N="?"+E,R=`<${N}>`,M=document,U=(t="")=>M.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,D=/>/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=M.createTreeWalker(M,129,null,!1),Z=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=j;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,f=0;for(;f<i.length&&(r.lastIndex=f,a=r.exec(i),null!==a);)f=r.lastIndex,r===j?"!--"===a[1]?r=B:void 0!==a[1]?r=D:void 0!==a[2]?(_.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=L):void 0!==a[3]&&(r=L):r===L?">"===a[0]?(r=null!=n?n:j,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?L:'"'===a[3]?A:T):r===A||r===T?r=L:r===B||r===D?r=j:(r=L,n=void 0);const h=r===L&&t[e+1].startsWith("/>")?" ":"";s+=r===j?i+R:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+E+h):i+E+(-2===p?(o.push(void 0),e):h)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(l):l,o]};class V{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=Z(t,e);if(this.el=V.createElement(a,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())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?G:"?"===e[1]?tt:"@"===e[1]?et:Y})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(_.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=C?C.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),K.nextNode(),l.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===N)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)l.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function q(t,e,i=t,o){var n,s,r,l;if(e===I)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=z(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=q(t,a._$AS(t,e.values),a,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,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);K.currentNode=n;let s=K.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new J(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new it(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=K.nextNode(),r++)}return n}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 n;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===(n=null==o?void 0:o.isConnected)||void 0===n||n}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),z(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&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="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)===n)this._$AH.m(i);else{const t=new X(n,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 n of t)o===e.length?e.push(i=new J(this.M(U()),this.M(U()),this,this.options)):i=e[o],i._$AI(n),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,n){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,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 n=this.strings;let s=!1;if(void 0===n)t=q(this,t,e,0),s=!z(t)||t!==this._$AH&&t!==I,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=q(this,o[i+r],e,r),l===I&&(l=this._$AH[r]),s||(s=!z(l)||l!==this._$AH[r]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!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,n){super(t,e,i,o,n),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,n=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==W&&(o===W||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 nt,st;null==ot||ot(V,J),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.
|
|
65
|
+
var nt,st;null==ot||ot(V,J),(null!==(O=globalThis.litHtmlVersions)&&void 0!==O?O:globalThis.litHtmlVersions=[]).push("2.2.4");class rt extends S{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,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new J(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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}}rt.finalized=!0,rt._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:rt});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:rt}),(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.2.0");class at{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,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 at(t,e,void 0,i)}static extend(t,e,i){return new at(t,e.category,e,i)}static external(t,e){return new at(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return d`var(${c(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):c(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 c(`${t.name}: ${e}`)}const ft={colorPrimary:at.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:at.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:at.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:at.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:at.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:at.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:at.create("--ft-color-error","COLOR","#B00020"),colorOutline:at.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:at.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:at.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:at.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:at.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:at.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:at.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:at.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:at.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:at.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:at.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:at.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:at.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:at.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:at.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:at.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:at.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:at.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:at.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:at.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:at.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:at.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:at.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:at.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:at.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:at.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:at.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:at.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:at.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:at.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:at.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:at.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:at.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:at.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:at.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:at.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:at.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.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:at.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:at.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:at.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:at.create("--ft-border-radius-XL","SIZE","16px"),titleFont:at.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:at.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:at.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:at.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -92,114 +92,114 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const bt=yt(class extends gt{constructor(t){var e;if(super(t),t.type!==ut||"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 bt=yt(class extends gt{constructor(t){var e;if(super(t),t.type!==ut||"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 n=t.element.classList;this.et.forEach((t=>{t in e||(n.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?(n.add(t),this.et.add(t)):(n.remove(t),this.et.delete(t)))}return I}}),vt=Symbol.for(""),mt=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}),$t=new Map,St=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,p=0,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(s=i[p],n=mt(s));)a+=n+e[++p],f=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(e[o]),f){const t=r.join("$$lit$$");void 0===(e=$t.get(t))&&(r.raw=r,$t.set(t,e=r)),i=l}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 Ot,Ct=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Ot||(Ot={}));const kt=at.extend("--ft-typography-font-family",ft.titleFont),Et=at.extend("--ft-typography-font-family",ft.contentFont),Nt={fontFamily:Et,fontSize:at.create("--ft-typography-font-size","SIZE","16px"),fontWeight:at.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:at.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:at.create("--ft-typography-line-height","SIZE","24px"),textTransform:at.create("--ft-typography-text-transform","UNKNOWN","inherit")},Rt=at.extend("--ft-typography-title-font-family",kt),Mt=at.extend("--ft-typography-title-font-size",Nt.fontSize,"20px"),Ut=at.extend("--ft-typography-title-font-weight",Nt.fontWeight,"normal"),zt=at.extend("--ft-typography-title-letter-spacing",Nt.letterSpacing,"0.15px"),Ft=at.extend("--ft-typography-title-line-height",Nt.lineHeight,"24px"),jt=at.extend("--ft-typography-title-text-transform",Nt.textTransform,"inherit"),Bt=at.extend("--ft-typography-title-dense-font-family",kt),Dt=at.extend("--ft-typography-title-dense-font-size",Nt.fontSize,"14px"),Lt=at.extend("--ft-typography-title-dense-font-weight",Nt.fontWeight,"normal"),Tt=at.extend("--ft-typography-title-dense-letter-spacing",Nt.letterSpacing,"0.105px"),At=at.extend("--ft-typography-title-dense-line-height",Nt.lineHeight,"24px"),_t=at.extend("--ft-typography-title-dense-text-transform",Nt.textTransform,"inherit"),Pt=at.extend("--ft-typography-subtitle1-font-family",Et),It=at.extend("--ft-typography-subtitle1-font-size",Nt.fontSize,"16px"),Wt=at.extend("--ft-typography-subtitle1-font-weight",Nt.fontWeight,"600"),Ht=at.extend("--ft-typography-subtitle1-letter-spacing",Nt.letterSpacing,"0.144px"),Kt=at.extend("--ft-typography-subtitle1-line-height",Nt.lineHeight,"24px"),Zt=at.extend("--ft-typography-subtitle1-text-transform",Nt.textTransform,"inherit"),Vt=at.extend("--ft-typography-subtitle2-font-family",Et),qt=at.extend("--ft-typography-subtitle2-font-size",Nt.fontSize,"14px"),Xt=at.extend("--ft-typography-subtitle2-font-weight",Nt.fontWeight,"normal"),Jt=at.extend("--ft-typography-subtitle2-letter-spacing",Nt.letterSpacing,"0.098px"),Yt=at.extend("--ft-typography-subtitle2-line-height",Nt.lineHeight,"24px"),Gt=at.extend("--ft-typography-subtitle2-text-transform",Nt.textTransform,"inherit"),Qt={fontFamily:at.extend("--ft-typography-body1-font-family",Et),fontSize:at.extend("--ft-typography-body1-font-size",Nt.fontSize,"16px"),fontWeight:at.extend("--ft-typography-body1-font-weight",Nt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-body1-letter-spacing",Nt.letterSpacing,"0.496px"),lineHeight:at.extend("--ft-typography-body1-line-height",Nt.lineHeight,"24px"),textTransform:at.extend("--ft-typography-body1-text-transform",Nt.textTransform,"inherit")},te=at.extend("--ft-typography-body2-font-family",Et),ee=at.extend("--ft-typography-body2-font-size",Nt.fontSize,"14px"),ie=at.extend("--ft-typography-body2-font-weight",Nt.fontWeight,"normal"),oe=at.extend("--ft-typography-body2-letter-spacing",Nt.letterSpacing,"0.252px"),ne=at.extend("--ft-typography-body2-line-height",Nt.lineHeight,"20px"),se=at.extend("--ft-typography-body2-text-transform",Nt.textTransform,"inherit"),re={fontFamily:at.extend("--ft-typography-caption-font-family",Et),fontSize:at.extend("--ft-typography-caption-font-size",Nt.fontSize,"12px"),fontWeight:at.extend("--ft-typography-caption-font-weight",Nt.fontWeight,"normal"),letterSpacing:at.extend("--ft-typography-caption-letter-spacing",Nt.letterSpacing,"0.396px"),lineHeight:at.extend("--ft-typography-caption-line-height",Nt.lineHeight,"16px"),textTransform:at.extend("--ft-typography-caption-text-transform",Nt.textTransform,"inherit")},le=at.extend("--ft-typography-breadcrumb-font-family",Et),ae=at.extend("--ft-typography-breadcrumb-font-size",Nt.fontSize,"10px"),pe=at.extend("--ft-typography-breadcrumb-font-weight",Nt.fontWeight,"normal"),fe=at.extend("--ft-typography-breadcrumb-letter-spacing",Nt.letterSpacing,"0.33px"),he=at.extend("--ft-typography-breadcrumb-line-height",Nt.lineHeight,"16px"),ce=at.extend("--ft-typography-breadcrumb-text-transform",Nt.textTransform,"inherit"),de=at.extend("--ft-typography-overline-font-family",Et),ue=at.extend("--ft-typography-overline-font-size",Nt.fontSize,"10px"),xe=at.extend("--ft-typography-overline-font-weight",Nt.fontWeight,"normal"),ye=at.extend("--ft-typography-overline-letter-spacing",Nt.letterSpacing,"1.5px"),ge=at.extend("--ft-typography-overline-line-height",Nt.lineHeight,"16px"),be=at.extend("--ft-typography-overline-text-transform",Nt.textTransform,"uppercase"),ve=at.extend("--ft-typography-button-font-family",Et),me=at.extend("--ft-typography-button-font-size",Nt.fontSize,"14px"),we=at.extend("--ft-typography-button-font-weight",Nt.fontWeight,"600"),$e=at.extend("--ft-typography-button-letter-spacing",Nt.letterSpacing,"1.246px"),Se=at.extend("--ft-typography-button-line-height",Nt.lineHeight,"16px"),Oe=at.extend("--ft-typography-button-text-transform",Nt.textTransform,"uppercase"),Ce=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: ${Rt};
|
|
103
|
+
font-size: ${Mt};
|
|
104
|
+
font-weight: ${Ut};
|
|
105
|
+
letter-spacing: ${zt};
|
|
106
|
+
line-height: ${Ft};
|
|
107
|
+
text-transform: ${jt};
|
|
108
108
|
}
|
|
109
|
-
`,
|
|
109
|
+
`,ke=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: ${Dt};
|
|
113
|
+
font-weight: ${Lt};
|
|
114
|
+
letter-spacing: ${Tt};
|
|
115
|
+
line-height: ${At};
|
|
116
|
+
text-transform: ${_t};
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`,Ee=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: ${Pt};
|
|
121
|
+
font-size: ${It};
|
|
122
|
+
font-weight: ${Wt};
|
|
123
|
+
letter-spacing: ${Ht};
|
|
124
|
+
line-height: ${Kt};
|
|
125
|
+
text-transform: ${Zt};
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,Ne=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: ${Vt};
|
|
130
|
+
font-size: ${qt};
|
|
131
|
+
font-weight: ${Xt};
|
|
132
|
+
letter-spacing: ${Jt};
|
|
133
|
+
line-height: ${Yt};
|
|
134
|
+
text-transform: ${Gt};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
`,
|
|
137
|
+
`,Re=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: ${Qt.fontFamily};
|
|
140
|
+
font-size: ${Qt.fontSize};
|
|
141
|
+
font-weight: ${Qt.fontWeight};
|
|
142
|
+
letter-spacing: ${Qt.letterSpacing};
|
|
143
|
+
line-height: ${Qt.lineHeight};
|
|
144
|
+
text-transform: ${Qt.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: ${te};
|
|
149
|
+
font-size: ${ee};
|
|
150
|
+
font-weight: ${ie};
|
|
151
|
+
letter-spacing: ${oe};
|
|
152
|
+
line-height: ${ne};
|
|
153
|
+
text-transform: ${se};
|
|
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: ${re.fontFamily};
|
|
158
|
+
font-size: ${re.fontSize};
|
|
159
|
+
font-weight: ${re.fontWeight};
|
|
160
|
+
letter-spacing: ${re.letterSpacing};
|
|
161
|
+
line-height: ${re.lineHeight};
|
|
162
|
+
text-transform: ${re.textTransform};
|
|
163
163
|
}
|
|
164
|
-
`,
|
|
164
|
+
`,ze=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: ${ae};
|
|
168
|
+
font-weight: ${pe};
|
|
169
|
+
letter-spacing: ${fe};
|
|
170
|
+
line-height: ${he};
|
|
171
|
+
text-transform: ${ce};
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,Fe=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: ${de};
|
|
176
|
+
font-size: ${ue};
|
|
177
|
+
font-weight: ${xe};
|
|
178
|
+
letter-spacing: ${ye};
|
|
179
|
+
line-height: ${ge};
|
|
180
|
+
text-transform: ${be};
|
|
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: ${me};
|
|
186
|
+
font-weight: ${we};
|
|
187
|
+
letter-spacing: ${$e};
|
|
188
|
+
line-height: ${Se};
|
|
189
|
+
text-transform: ${Oe};
|
|
190
190
|
}
|
|
191
|
-
`;class
|
|
192
|
-
<${
|
|
191
|
+
`;class Be extends ht{constructor(){super(...arguments),this.variant=Ot.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=[Ce,ke,Ee,Ne,Re,Me,Ue,ze,Fe,je,d`
|
|
199
199
|
.ft-typography {
|
|
200
200
|
vertical-align: inherit;
|
|
201
201
|
}
|
|
202
|
-
`],
|
|
202
|
+
`],Ct([o()],Be.prototype,"element",void 0),Ct([o()],Be.prototype,"variant",void 0),l("ft-typography")(Be);var De=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Le={fontSize:at.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:at.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:at.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:at.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:at.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:at.extend("--ft-input-label-border-color",ft.colorOutline),textColor:at.extend("--ft-input-label-text-color",ft.colorOnSurfaceMedium),disabledTextColor:at.extend("--ft-input-label-disabled-text-color",ft.colorOnSurfaceDisabled),colorSurface:at.external(ft.colorSurface,"Design system"),borderRadiusS:at.external(ft.borderRadiusS,"Design system"),colorError:at.external(ft.colorError,"Design system")};class Te extends ht{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`
|
|
203
203
|
<div class="${bt(t)}">
|
|
204
204
|
${this.text?P`
|
|
205
205
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -208,7 +208,7 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
208
208
|
</div>
|
|
209
209
|
`:null}
|
|
210
210
|
</div>
|
|
211
|
-
`}}
|
|
211
|
+
`}}Te.elementDefinitions={},Te.styles=[Ue,d`
|
|
212
212
|
.ft-input-label {
|
|
213
213
|
position: absolute;
|
|
214
214
|
inset: 0;
|
|
@@ -216,11 +216,11 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.ft-input-label {
|
|
219
|
-
border-color: ${
|
|
219
|
+
border-color: ${Le.borderColor};
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.ft-input-label.ft-input-label--in-error {
|
|
223
|
-
border-color: ${
|
|
223
|
+
border-color: ${Le.colorError}
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.ft-input-label:before,
|
|
@@ -233,7 +233,7 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-input-label:before {
|
|
236
|
-
width: ${
|
|
236
|
+
width: ${Le.horizontalSpacing};
|
|
237
237
|
flex-shrink: 0;
|
|
238
238
|
}
|
|
239
239
|
|
|
@@ -249,18 +249,18 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
249
249
|
border-bottom-width: 1px;
|
|
250
250
|
border-bottom-style: solid;
|
|
251
251
|
border-color: inherit;
|
|
252
|
-
color: ${
|
|
252
|
+
color: ${Le.textColor};
|
|
253
253
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
254
|
-
${pt(
|
|
255
|
-
${pt(
|
|
254
|
+
${pt(re.fontSize,Le.fontSize)};
|
|
255
|
+
${pt(re.lineHeight,Le.fontSize)};
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.ft-input-label--in-error .ft-input-label--text {
|
|
259
|
-
color: ${
|
|
259
|
+
color: ${Le.colorError}
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
.ft-input-label--disabled .ft-input-label--text {
|
|
263
|
-
color: ${
|
|
263
|
+
color: ${Le.disabledTextColor};
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
.ft-input-label--hidden-text {
|
|
@@ -276,17 +276,17 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
276
276
|
overflow: hidden;
|
|
277
277
|
white-space: nowrap;
|
|
278
278
|
text-overflow: ellipsis;
|
|
279
|
-
padding: ${
|
|
280
|
-
margin: calc(${
|
|
279
|
+
padding: ${Le.verticalSpacing} 4px;
|
|
280
|
+
margin: calc(${Le.verticalSpacing} * -1) 0;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.ft-input-label--raised .ft-input-label--text {
|
|
284
|
-
${pt(
|
|
285
|
-
${pt(
|
|
284
|
+
${pt(re.fontSize,Le.raisedFontSize)};
|
|
285
|
+
${pt(re.lineHeight,Le.raisedFontSize)};
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
289
|
-
top: ${
|
|
289
|
+
top: ${Le.verticalSpacing};
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -299,27 +299,27 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
299
299
|
.ft-input-label--outlined:before {
|
|
300
300
|
border-left-width: 1px;
|
|
301
301
|
border-left-style: solid;
|
|
302
|
-
border-radius: ${
|
|
302
|
+
border-radius: ${Le.borderRadiusS} 0 0 ${Le.borderRadiusS};
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.ft-input-label--outlined:after {
|
|
306
306
|
border-right-width: 1px;
|
|
307
307
|
border-right-style: solid;
|
|
308
|
-
border-radius: 0 ${
|
|
308
|
+
border-radius: 0 ${Le.borderRadiusS} ${Le.borderRadiusS} 0;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
311
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
312
312
|
padding: 2px 4px;
|
|
313
|
-
z-index: ${
|
|
314
|
-
background-color: ${
|
|
315
|
-
border-radius: ${
|
|
313
|
+
z-index: ${Le.raisedZIndex};
|
|
314
|
+
background-color: ${Le.colorSurface};
|
|
315
|
+
border-radius: ${Le.borderRadiusS};
|
|
316
316
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
320
320
|
border-top: none;
|
|
321
321
|
}
|
|
322
|
-
`],
|
|
322
|
+
`],De([o({type:String})],Te.prototype,"text",void 0),De([o({type:Boolean})],Te.prototype,"raised",void 0),De([o({type:Boolean})],Te.prototype,"outlined",void 0),De([o({type:Boolean})],Te.prototype,"disabled",void 0),De([o({type:Boolean})],Te.prototype,"error",void 0),l("ft-input-label")(Te);var Ae=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const _e=at.extend("--ft-ripple-color",ft.colorContent),Pe={color:_e,backgroundColor:at.extend("--ft-ripple-background-color",_e),opacityContentOnSurfacePressed:at.external(ft.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:at.external(ft.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:at.external(ft.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:at.external(ft.opacityContentOnSurfaceSelected,"Design system")},Ie=at.extend("--ft-ripple-color",ft.colorPrimary),We=Ie,He=at.extend("--ft-ripple-background-color",Ie),Ke=at.extend("--ft-ripple-color",ft.colorSecondary),Ze=Ke,Ve=at.extend("--ft-ripple-background-color",Ke);class qe extends ht{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return P`
|
|
323
323
|
<style>
|
|
324
324
|
.ft-ripple .ft-ripple--effect,
|
|
325
325
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -336,7 +336,7 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
336
336
|
<div class="ft-ripple--background"></div>
|
|
337
337
|
<div class="ft-ripple--effect"></div>
|
|
338
338
|
</div>
|
|
339
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
339
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}qe.elementDefinitions={},qe.styles=d`
|
|
340
340
|
:host {
|
|
341
341
|
display: contents;
|
|
342
342
|
}
|
|
@@ -358,27 +358,27 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
358
358
|
}
|
|
359
359
|
|
|
360
360
|
.ft-ripple .ft-ripple--background {
|
|
361
|
-
background-color: ${
|
|
361
|
+
background-color: ${Pe.backgroundColor};
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
.ft-ripple .ft-ripple--effect {
|
|
365
|
-
background-color: ${
|
|
365
|
+
background-color: ${Pe.color};
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
369
|
-
background-color: ${
|
|
369
|
+
background-color: ${Ve};
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
373
|
-
background-color: ${
|
|
373
|
+
background-color: ${Ze};
|
|
374
374
|
}
|
|
375
375
|
|
|
376
376
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
377
|
-
background-color: ${
|
|
377
|
+
background-color: ${He};
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
381
|
-
background-color: ${
|
|
381
|
+
background-color: ${We};
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
.ft-ripple .ft-ripple--background {
|
|
@@ -410,42 +410,42 @@ const ut=1,xt=2,yt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
413
|
-
opacity: ${
|
|
413
|
+
opacity: ${Pe.opacityContentOnSurfaceHover};
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
417
|
-
opacity: ${
|
|
417
|
+
opacity: ${Pe.opacityContentOnSurfaceSelected};
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
421
|
-
opacity: ${
|
|
421
|
+
opacity: ${Pe.opacityContentOnSurfaceFocused};
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
425
|
-
opacity: ${
|
|
425
|
+
opacity: ${Pe.opacityContentOnSurfacePressed};
|
|
426
426
|
transform: translate(-50%, -50%) scale(1);
|
|
427
427
|
}
|
|
428
|
-
`,
|
|
428
|
+
`,Ae([o({type:Boolean})],qe.prototype,"primary",void 0),Ae([o({type:Boolean})],qe.prototype,"secondary",void 0),Ae([o({type:Boolean})],qe.prototype,"unbounded",void 0),Ae([o({type:Boolean})],qe.prototype,"activated",void 0),Ae([o({type:Boolean})],qe.prototype,"selected",void 0),Ae([o({type:Boolean})],qe.prototype,"disabled",void 0),Ae([n()],qe.prototype,"hovered",void 0),Ae([n()],qe.prototype,"focused",void 0),Ae([n()],qe.prototype,"pressed",void 0),Ae([n()],qe.prototype,"rippling",void 0),Ae([n()],qe.prototype,"rippleSize",void 0),Ae([n()],qe.prototype,"originX",void 0),Ae([n()],qe.prototype,"originY",void 0),Ae([s(".ft-ripple")],qe.prototype,"ripple",void 0),Ae([s(".ft-ripple--effect")],qe.prototype,"rippleEffect",void 0),l("ft-ripple")(qe);
|
|
429
429
|
/**
|
|
430
430
|
* @license
|
|
431
431
|
* Copyright 2017 Google LLC
|
|
432
432
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
433
433
|
*/
|
|
434
|
-
class
|
|
434
|
+
class Xe extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)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:[]}}}Xe.directiveName="unsafeHTML",Xe.resultType=1;const Je=yt(Xe);var Ye,Ge;!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=""}(Ye||(Ye={})),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=""}(Ge||(Ge={})),new Map([...["abw"].map((t=>[t,Ge.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,Ge.AUDIO])),...["avi"].map((t=>[t,Ge.AVI])),...["chm","xhs"].map((t=>[t,Ge.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,Ge.CODE])),...["csv"].map((t=>[t,Ge.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ge.DITA])),...["epub"].map((t=>[t,Ge.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ge.EXCEL])),...["flac"].map((t=>[t,Ge.FLAC])),...["gif"].map((t=>[t,Ge.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ge.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ge.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,Ge.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ge.JPEG])),...["json"].map((t=>[t,Ge.JSON])),...["m4a","m4p"].map((t=>[t,Ge.M4A])),...["mov","qt"].map((t=>[t,Ge.MOV])),...["mp3"].map((t=>[t,Ge.MP3])),...["mp4","m4v"].map((t=>[t,Ge.MP4])),...["ogg","oga"].map((t=>[t,Ge.OGG])),...["pdf","ps"].map((t=>[t,Ge.PDF])),...["png"].map((t=>[t,Ge.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ge.POWERPOINT])),...["rar"].map((t=>[t,Ge.RAR])),...["stp"].map((t=>[t,Ge.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ge.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,Ge.VIDEO])),...["wav"].map((t=>[t,Ge.WAV])),...["wma"].map((t=>[t,Ge.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ge.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ge.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ge.YAML])),...["zip"].map((t=>[t,Ge.ZIP]))]);var Qe,ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qe||(Qe={}));const ei=at.create("--ft-icon-font-size","SIZE","24px"),ii=at.extend("--ft-icon-fluid-topics-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-icons")),oi=at.extend("--ft-icon-file-format-font-family",at.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ni=at.extend("--ft-icon-material-font-family",at.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class si extends ht{constructor(){super(...arguments),this.variant=Qe.fluid_topics}render(){return P`
|
|
435
435
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
436
|
-
${
|
|
436
|
+
${Je(this.getIcon())}
|
|
437
437
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
438
438
|
</i>
|
|
439
|
-
`}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===
|
|
439
|
+
`}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===Qe.file_format?null!==(t=Ge[i.toUpperCase()])&&void 0!==t?t:i:this.variant===Qe.fluid_topics?null!==(e=Ye[i.toUpperCase()])&&void 0!==e?e:i:W}}si.elementDefinitions={},si.styles=d`
|
|
440
440
|
:host, i.ft-icon {
|
|
441
441
|
display: inline-block;
|
|
442
|
-
width: ${
|
|
443
|
-
height: ${
|
|
442
|
+
width: ${ei};
|
|
443
|
+
height: ${ei};
|
|
444
444
|
text-align: center;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
i.ft-icon {
|
|
448
|
-
font-size: ${
|
|
448
|
+
font-size: ${ei};
|
|
449
449
|
line-height: 1;
|
|
450
450
|
font-weight: normal;
|
|
451
451
|
text-transform: none;
|
|
@@ -459,17 +459,17 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.ft-icon--fluid-topics {
|
|
462
|
-
font-family: ${
|
|
462
|
+
font-family: ${ii}, ft-icons, fticons, sans-serif;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
.ft-icon--file-format {
|
|
466
|
-
font-family: ${
|
|
466
|
+
font-family: ${oi}, ft-mime, sans-serif;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.ft-icon--material {
|
|
470
|
-
font-family: ${
|
|
470
|
+
font-family: ${ni}, "Material Icons", sans-serif;
|
|
471
471
|
}
|
|
472
|
-
`,
|
|
472
|
+
`,ti([o()],si.prototype,"variant",void 0),ti([s("slot")],si.prototype,"slottedContent",void 0),l("ft-icon")(si);var ri=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const li={fontSize:at.create("--ft-text-field-font-size","SIZE","14px"),labelSize:at.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:at.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:at.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:at.extend("--ft-text-field-helper-color",ft.colorOnSurfaceMedium),colorPrimary:at.external(ft.colorPrimary,"Design system"),colorOnSurface:at.external(ft.colorOnSurface,"Design system"),colorOnSurfaceDisabled:at.external(ft.colorOnSurfaceDisabled,"Design system"),borderRadiusS:at.external(ft.borderRadiusS,"Design system"),colorError:at.external(ft.colorError,"Design system"),prefixColor:at.extend("--ft-text-field-prefix-color",ft.colorOnSurfaceMedium),iconColor:at.extend("--ft-text-field-icon-color",ft.colorOnSurfaceMedium)};class ai extends ht{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix="",this.icon="",this.iconVariant="",this.focused=!1}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--raised-label":this.focused||""!=this.value};return P`
|
|
473
473
|
<div class="${bt(t)}">
|
|
474
474
|
<div class="ft-text-field--main-panel">
|
|
475
475
|
<ft-input-label text="${this.label}"
|
|
@@ -504,7 +504,7 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
504
504
|
<ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
|
|
505
505
|
</ft-typography>`:void 0}
|
|
506
506
|
</div>
|
|
507
|
-
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}
|
|
507
|
+
`}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}ai.elementDefinitions={"ft-input-label":Te,"ft-ripple":qe,"ft-typography":Be,"ft-icon":si},ai.styles=[Re,d`
|
|
508
508
|
*:focus {
|
|
509
509
|
outline: none;
|
|
510
510
|
}
|
|
@@ -516,16 +516,16 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
ft-input-label {
|
|
519
|
-
${pt(
|
|
520
|
-
${pt(
|
|
521
|
-
${pt(
|
|
522
|
-
${pt(
|
|
519
|
+
${pt(Le.fontSize,li.fontSize)};
|
|
520
|
+
${pt(Le.raisedFontSize,li.labelSize)};
|
|
521
|
+
${pt(Le.verticalSpacing,li.verticalSpacing)};
|
|
522
|
+
${pt(Le.horizontalSpacing,d`calc(${li.horizontalSpacing} - 4px)`)};
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
.ft-text-field--main-panel {
|
|
526
526
|
position: relative;
|
|
527
527
|
display: flex;
|
|
528
|
-
height: calc(4 * ${
|
|
528
|
+
height: calc(4 * ${li.verticalSpacing} + ${li.labelSize} + ${li.fontSize});
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.ft-text-field--input-panel {
|
|
@@ -537,8 +537,8 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
537
537
|
}
|
|
538
538
|
|
|
539
539
|
.ft-text-field--input-panel ft-ripple {
|
|
540
|
-
${pt(
|
|
541
|
-
${pt(
|
|
540
|
+
${pt(Pe.opacityContentOnSurfaceHover,"0.08")};
|
|
541
|
+
${pt(Pe.opacityContentOnSurfacePressed,"0.04")};
|
|
542
542
|
}
|
|
543
543
|
|
|
544
544
|
.ft-text-field--input-wrapper {
|
|
@@ -548,20 +548,20 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
548
548
|
display: flex;
|
|
549
549
|
align-items: center;
|
|
550
550
|
|
|
551
|
-
${pt(
|
|
552
|
-
${pt(
|
|
551
|
+
${pt(Qt.fontSize,li.fontSize)};
|
|
552
|
+
${pt(Qt.lineHeight,li.fontSize)};
|
|
553
553
|
|
|
554
|
-
padding: 0 ${
|
|
554
|
+
padding: 0 ${li.horizontalSpacing};
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input-wrapper {
|
|
558
558
|
align-items: flex-end;
|
|
559
|
-
padding: 0 ${
|
|
559
|
+
padding: 0 ${li.horizontalSpacing} ${li.verticalSpacing} ${li.horizontalSpacing};
|
|
560
560
|
}
|
|
561
561
|
|
|
562
562
|
.ft-text-field--prefix {
|
|
563
563
|
display: none;
|
|
564
|
-
color: ${
|
|
564
|
+
color: ${li.prefixColor}
|
|
565
565
|
}
|
|
566
566
|
|
|
567
567
|
.ft-text-field--with-prefix.ft-text-field--raised-label .ft-text-field--prefix {
|
|
@@ -575,15 +575,15 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
575
575
|
flex-shrink: 1;
|
|
576
576
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
577
577
|
|
|
578
|
-
color: ${
|
|
579
|
-
padding: calc(2 * ${
|
|
578
|
+
color: ${li.colorOnSurface};
|
|
579
|
+
padding: calc(2 * ${li.verticalSpacing}) 0;
|
|
580
580
|
border: none;
|
|
581
581
|
background: none;
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
.ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
|
|
585
585
|
padding-bottom: 0;
|
|
586
|
-
padding-top: calc(${
|
|
586
|
+
padding-top: calc(${li.labelSize} + 2 * ${li.verticalSpacing});
|
|
587
587
|
}
|
|
588
588
|
|
|
589
589
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -592,7 +592,7 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
.ft-text-field--disabled .ft-text-field--input {
|
|
595
|
-
color: ${
|
|
595
|
+
color: ${li.colorOnSurfaceDisabled};
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
.ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
|
|
@@ -600,31 +600,31 @@ class Ve extends gt{constructor(t){if(super(t),this.it=W,t.type!==xt)throw Error
|
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
603
|
-
${pt(
|
|
604
|
-
${pt(
|
|
603
|
+
${pt(Le.borderColor,li.colorPrimary)};
|
|
604
|
+
${pt(Le.textColor,li.colorPrimary)};
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
608
|
-
border-radius: ${
|
|
608
|
+
border-radius: ${li.borderRadiusS} ${li.borderRadiusS} 0 0;
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
612
|
-
border-radius: ${
|
|
612
|
+
border-radius: ${li.borderRadiusS};
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-text-field--helper-text {
|
|
616
|
-
padding: 0 12px 0 ${
|
|
617
|
-
color: ${
|
|
616
|
+
padding: 0 12px 0 ${li.horizontalSpacing};
|
|
617
|
+
color: ${li.helperColor};
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
.ft-text-field--in-error .ft-text-field--input,
|
|
621
621
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
622
622
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
623
|
-
color: ${
|
|
623
|
+
color: ${li.colorError};
|
|
624
624
|
}
|
|
625
625
|
|
|
626
626
|
.ft-text-field--icon {
|
|
627
|
-
padding-right: ${
|
|
628
|
-
color: ${
|
|
627
|
+
padding-right: ${li.horizontalSpacing};
|
|
628
|
+
color: ${li.iconColor};
|
|
629
629
|
}
|
|
630
|
-
`],
|
|
630
|
+
`],ri([o({type:String})],ai.prototype,"label",void 0),ri([o({reflect:!0})],ai.prototype,"value",void 0),ri([o({type:String})],ai.prototype,"helper",void 0),ri([o({type:Boolean})],ai.prototype,"outlined",void 0),ri([o({type:Boolean})],ai.prototype,"disabled",void 0),ri([o({type:Boolean})],ai.prototype,"error",void 0),ri([s(".ft-text-field--input")],ai.prototype,"input",void 0),ri([o({type:String})],ai.prototype,"prefix",void 0),ri([o({type:String})],ai.prototype,"icon",void 0),ri([o({type:String})],ai.prototype,"iconVariant",void 0),ri([n()],ai.prototype,"focused",void 0),l("ft-text-field")(ai),t.FtTextField=ai,t.FtTextFieldCssVariables=li,Object.defineProperty(t,"t",{value:!0})}({});
|