@fluid-topics/ft-tabs 0.3.48 → 0.3.49
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-tabs.js +4 -4
- package/build/ft-tabs.light.js +4 -4
- package/build/ft-tabs.min.js +28 -28
- package/package.json +7 -7
package/build/ft-tabs.js
CHANGED
|
@@ -50,19 +50,19 @@ export class FtTabs extends FtLitElement {
|
|
|
50
50
|
?disabled=${tab.disabled}
|
|
51
51
|
@click=${() => this.activeIndex = index}
|
|
52
52
|
role="tab"
|
|
53
|
-
part="tab"
|
|
53
|
+
part="tab${tab.active ? " active-tab" : ""}"
|
|
54
54
|
id="${tab.ariaLabelledBy}"
|
|
55
55
|
aria-label="${tab.label}"
|
|
56
56
|
aria-selected="${tab.active ? "true" : "false"}"
|
|
57
57
|
tabindex="${tab.disabled ? "-1" : "0"}"
|
|
58
58
|
aria-controls="${tab.id}"
|
|
59
59
|
>
|
|
60
|
-
<ft-ripple primary ?disabled=${tab.disabled} part="tab-ripple"></ft-ripple>
|
|
61
|
-
<ft-icon class="ft-tabs--tab-icon" part="tab-icon" variant="${tab.iconVariant}">
|
|
60
|
+
<ft-ripple primary ?disabled=${tab.disabled} part="tab-ripple${tab.active ? " active-tab-ripple" : ""}"></ft-ripple>
|
|
61
|
+
<ft-icon class="ft-tabs--tab-icon" part="tab-icon${tab.active ? " active-tab-icon" : ""}" variant="${tab.iconVariant}">
|
|
62
62
|
${tab.icon}
|
|
63
63
|
</ft-icon>
|
|
64
64
|
<ft-typography class="ft-tabs--tab-label"
|
|
65
|
-
part="tab-label"
|
|
65
|
+
part="tab-label${tab.active ? " active-tab-label" : ""}"
|
|
66
66
|
variant="${FtTypographyVariants.body2}">
|
|
67
67
|
${tab.label}
|
|
68
68
|
</ft-typography>
|
package/build/ft-tabs.light.js
CHANGED
|
@@ -412,19 +412,19 @@ const at=Symbol.for(""),lt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
|
|
|
412
412
|
?disabled=${t.disabled}
|
|
413
413
|
@click=${()=>this.activeIndex=i}
|
|
414
414
|
role="tab"
|
|
415
|
-
part="tab"
|
|
415
|
+
part="tab${t.active?" active-tab":""}"
|
|
416
416
|
id="${t.ariaLabelledBy}"
|
|
417
417
|
aria-label="${t.label}"
|
|
418
418
|
aria-selected="${t.active?"true":"false"}"
|
|
419
419
|
tabindex="${t.disabled?"-1":"0"}"
|
|
420
420
|
aria-controls="${t.id}"
|
|
421
421
|
>
|
|
422
|
-
<ft-ripple primary ?disabled=${t.disabled} part="tab-ripple"></ft-ripple>
|
|
423
|
-
<ft-icon class="ft-tabs--tab-icon" part="tab-icon" variant="${t.iconVariant}">
|
|
422
|
+
<ft-ripple primary ?disabled=${t.disabled} part="tab-ripple${t.active?" active-tab-ripple":""}"></ft-ripple>
|
|
423
|
+
<ft-icon class="ft-tabs--tab-icon" part="tab-icon${t.active?" active-tab-icon":""}" variant="${t.iconVariant}">
|
|
424
424
|
${t.icon}
|
|
425
425
|
</ft-icon>
|
|
426
426
|
<ft-typography class="ft-tabs--tab-label"
|
|
427
|
-
part="tab-label"
|
|
427
|
+
part="tab-label${t.active?" active-tab-label":""}"
|
|
428
428
|
variant="${ct.body2}">
|
|
429
429
|
${t.label}
|
|
430
430
|
</ft-typography>
|
package/build/ft-tabs.min.js
CHANGED
|
@@ -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,n=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,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 h={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,h),this._definitionsByClass.set(s,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(r.set(s,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,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 h={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,h),this._definitionsByClass.set(s,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(r.set(s,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.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=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),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(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=p(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.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 n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,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)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const x=(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}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(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 n{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 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=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ci){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -45,7 +45,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const p=window,c=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),d=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const
|
|
48
|
+
const p=window,c=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),d=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const v=t=>new u("string"==typeof t?t:t+"",void 0,f),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new u(i,t,f)},x=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},b=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
@@ -62,7 +62,7 @@ var E;C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRoot
|
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var ct,ft;class dt extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new it(e.insertBefore(B(),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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}dt.finalized=!0,dt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:dt});const ut=globalThis.litElementPolyfillSupport;null==ut||ut({LitElement:dt}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.2.2");class
|
|
65
|
+
var ct,ft;class dt extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=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._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new it(e.insertBefore(B(),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._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}dt.finalized=!0,dt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:dt});const ut=globalThis.litElementPolyfillSupport;null==ut||ut({LitElement:dt}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.2.2");class vt{static create(t,e,i){let o=t=>v(null!=t?t:i),s=y`var(${v(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${v(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=y`var(${v(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>y`var(${v(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=y`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}const yt={colorPrimary:vt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:vt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:vt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:vt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:vt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:vt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:vt.create("--ft-color-error","COLOR","#B00020"),colorOutline:vt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:vt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:vt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:vt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:vt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:vt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:vt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:vt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:vt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:vt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:vt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:vt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:vt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:vt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:vt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:vt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:vt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:vt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:vt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:vt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:vt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:vt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:vt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:vt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:vt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:vt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:vt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:vt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:vt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:vt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:vt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:vt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:vt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:vt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:vt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:vt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:vt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.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:vt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:vt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:vt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:vt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:vt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:vt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:vt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:vt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -72,7 +72,7 @@ var ct,ft;class dt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
72
72
|
<style>${t}</style>
|
|
73
73
|
`))}
|
|
74
74
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}mt([o()],wt.prototype,"exportpartsPrefix",void 0),mt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0),
|
|
75
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}mt([o()],wt.prototype,"exportpartsPrefix",void 0),mt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],wt.prototype,"exportpartsPrefixes",void 0),y`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -81,7 +81,7 @@ var ct,ft;class dt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
81
81
|
-ms-user-select: none;
|
|
82
82
|
user-select: none;
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,y`
|
|
85
85
|
.ft-word-wrap {
|
|
86
86
|
white-space: normal;
|
|
87
87
|
word-wrap: break-word;
|
|
@@ -96,7 +96,7 @@ var ct,ft;class dt extends C{constructor(){super(...arguments),this.renderOption
|
|
|
96
96
|
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(bt=null===(xt=window.safari)||void 0===xt?void 0:xt.pushNotification)||void 0===bt||bt.toString()),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(gt||(gt={}));var $t=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ot extends wt{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=gt.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return V`
|
|
97
97
|
<style>
|
|
98
98
|
:host {
|
|
99
|
-
display: ${
|
|
99
|
+
display: ${v(this.active?"block":"none")};
|
|
100
100
|
}
|
|
101
101
|
</style>
|
|
102
102
|
<slot></slot>
|
|
@@ -111,7 +111,7 @@ const St=1,kt=2,Nt=t=>(...e)=>({_$litDirective$:t,values:e});class Ct{constructo
|
|
|
111
111
|
* @license
|
|
112
112
|
* Copyright 2020 Google LLC
|
|
113
113
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
114
|
-
*/const{I:Et}=ht,Rt=()=>document.createComment(""),Mt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Rt(),n),o=s.insertBefore(Rt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,a=r!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Ut=(t,e,i=t)=>(t._$AI(e,i),t),jt={},Ft=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},zt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},At=Nt(class extends Ct{constructor(t){if(super(t),t.type!==kt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:a}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=a,r;const l=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],h=[];let p,c,f=0,d=n.length-1,u=0,
|
|
114
|
+
*/const{I:Et}=ht,Rt=()=>document.createComment(""),Mt=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Rt(),n),o=s.insertBefore(Rt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,a=r!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Ut=(t,e,i=t)=>(t._$AI(e,i),t),jt={},Ft=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},zt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},At=Nt(class extends Ct{constructor(t){if(super(t),t.type!==kt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:a}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=a,r;const l=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],h=[];let p,c,f=0,d=n.length-1,u=0,v=r.length-1;for(;f<=d&&u<=v;)if(null===n[f])f++;else if(null===n[d])d--;else if(l[f]===a[u])h[u]=Ut(n[f],r[u]),f++,u++;else if(l[d]===a[v])h[v]=Ut(n[d],r[v]),d--,v--;else if(l[f]===a[v])h[v]=Ut(n[f],r[v]),Mt(t,h[v+1],n[f]),f++,v--;else if(l[d]===a[u])h[u]=Ut(n[d],r[u]),Mt(t,n[f],n[d]),d--,u++;else if(void 0===p&&(p=zt(a,u,v),c=zt(l,f,d)),p.has(l[f]))if(p.has(l[d])){const e=c.get(a[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Mt(t,n[f]);Ut(e,r[u]),h[u]=e}else h[u]=Ut(i,r[u]),Mt(t,n[f],i),n[e]=null;u++}else Ft(n[d]),d--;else Ft(n[f]),f++;for(;u<=v;){const e=Mt(t,h[v+1]);Ut(e,r[u]),h[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Ft(t)}return this.ut=a,((t,e=jt)=>{t._$AH=e})(t,h),J}}),Bt=Nt(class extends Ct{constructor(t){var e;if(super(t),t.type!==St||"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.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return J}}),Lt=vt.extend("--ft-ripple-color",yt.colorContent),Tt=Lt,Pt=vt.extend("--ft-ripple-background-color",Lt),_t=vt.external(yt.opacityContentOnSurfacePressed,"Design system"),Dt=vt.external(yt.opacityContentOnSurfaceHover,"Design system"),It=vt.external(yt.opacityContentOnSurfaceFocused,"Design system"),Wt=vt.external(yt.opacityContentOnSurfaceSelected,"Design system"),Ht=vt.extend("--ft-ripple-color",yt.colorPrimary),Kt=Ht,Zt=vt.extend("--ft-ripple-background-color",Ht),Vt=vt.extend("--ft-ripple-color",yt.colorSecondary),Jt=Vt,qt=vt.extend("--ft-ripple-background-color",Vt),Xt=y`
|
|
115
115
|
:host {
|
|
116
116
|
display: contents;
|
|
117
117
|
}
|
|
@@ -228,7 +228,7 @@ const St=1,kt=2,Nt=t=>(...e)=>({_$litDirective$:t,values:e});class Ct{constructo
|
|
|
228
228
|
* Copyright 2020 Google LLC
|
|
229
229
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
230
230
|
*/
|
|
231
|
-
const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void 0:t._$litStatic$},ee=t=>({_$litStatic$:t,r:Qt}),ie=new Map,oe=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],s=te(n));)l+=s+e[++h],p=!0;a.push(n),r.push(l),h++}if(h===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=ie.get(t))&&(r.raw=r,ie.set(t,e=r)),i=a}return t(e,...i)})(V);var se;!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"}(se||(se={}));const ne=
|
|
231
|
+
const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void 0:t._$litStatic$},ee=t=>({_$litStatic$:t,r:Qt}),ie=new Map,oe=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(n=i[h],s=te(n));)l+=s+e[++h],p=!0;a.push(n),r.push(l),h++}if(h===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=ie.get(t))&&(r.raw=r,ie.set(t,e=r)),i=a}return t(e,...i)})(V);var se;!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"}(se||(se={}));const ne=vt.extend("--ft-typography-font-family",yt.titleFont),re=vt.extend("--ft-typography-font-family",yt.contentFont),ae={fontFamily:re,fontSize:vt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:vt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:vt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:vt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:vt.create("--ft-typography-text-transform","UNKNOWN","inherit")},le=vt.extend("--ft-typography-title-font-family",ne),he=vt.extend("--ft-typography-title-font-size",ae.fontSize,"20px"),pe=vt.extend("--ft-typography-title-font-weight",ae.fontWeight,"normal"),ce=vt.extend("--ft-typography-title-letter-spacing",ae.letterSpacing,"0.15px"),fe=vt.extend("--ft-typography-title-line-height",ae.lineHeight,"1.2"),de=vt.extend("--ft-typography-title-text-transform",ae.textTransform,"inherit"),ue=vt.extend("--ft-typography-title-dense-font-family",ne),ve=vt.extend("--ft-typography-title-dense-font-size",ae.fontSize,"14px"),ye=vt.extend("--ft-typography-title-dense-font-weight",ae.fontWeight,"normal"),xe=vt.extend("--ft-typography-title-dense-letter-spacing",ae.letterSpacing,"0.105px"),be=vt.extend("--ft-typography-title-dense-line-height",ae.lineHeight,"1.7"),ge=vt.extend("--ft-typography-title-dense-text-transform",ae.textTransform,"inherit"),me=vt.extend("--ft-typography-subtitle1-font-family",re),we=vt.extend("--ft-typography-subtitle1-font-size",ae.fontSize,"16px"),$e=vt.extend("--ft-typography-subtitle1-font-weight",ae.fontWeight,"600"),Oe=vt.extend("--ft-typography-subtitle1-letter-spacing",ae.letterSpacing,"0.144px"),Se=vt.extend("--ft-typography-subtitle1-line-height",ae.lineHeight,"1.5"),ke=vt.extend("--ft-typography-subtitle1-text-transform",ae.textTransform,"inherit"),Ne=vt.extend("--ft-typography-subtitle2-font-family",re),Ce=vt.extend("--ft-typography-subtitle2-font-size",ae.fontSize,"14px"),Ee=vt.extend("--ft-typography-subtitle2-font-weight",ae.fontWeight,"normal"),Re=vt.extend("--ft-typography-subtitle2-letter-spacing",ae.letterSpacing,"0.098px"),Me=vt.extend("--ft-typography-subtitle2-line-height",ae.lineHeight,"1.7"),Ue=vt.extend("--ft-typography-subtitle2-text-transform",ae.textTransform,"inherit"),je=vt.extend("--ft-typography-body1-font-family",re),Fe=vt.extend("--ft-typography-body1-font-size",ae.fontSize,"16px"),ze=vt.extend("--ft-typography-body1-font-weight",ae.fontWeight,"normal"),Ae=vt.extend("--ft-typography-body1-letter-spacing",ae.letterSpacing,"0.496px"),Be=vt.extend("--ft-typography-body1-line-height",ae.lineHeight,"1.5"),Le=vt.extend("--ft-typography-body1-text-transform",ae.textTransform,"inherit"),Te=vt.extend("--ft-typography-body2-font-family",re),Pe=vt.extend("--ft-typography-body2-font-size",ae.fontSize,"14px"),_e=vt.extend("--ft-typography-body2-font-weight",ae.fontWeight,"normal"),De=vt.extend("--ft-typography-body2-letter-spacing",ae.letterSpacing,"0.252px"),Ie=vt.extend("--ft-typography-body2-line-height",ae.lineHeight,"1.4"),We=vt.extend("--ft-typography-body2-text-transform",ae.textTransform,"inherit"),He=vt.extend("--ft-typography-caption-font-family",re),Ke=vt.extend("--ft-typography-caption-font-size",ae.fontSize,"12px"),Ze=vt.extend("--ft-typography-caption-font-weight",ae.fontWeight,"normal"),Ve=vt.extend("--ft-typography-caption-letter-spacing",ae.letterSpacing,"0.396px"),Je=vt.extend("--ft-typography-caption-line-height",ae.lineHeight,"1.33"),qe=vt.extend("--ft-typography-caption-text-transform",ae.textTransform,"inherit"),Xe=vt.extend("--ft-typography-breadcrumb-font-family",re),Ye=vt.extend("--ft-typography-breadcrumb-font-size",ae.fontSize,"10px"),Ge=vt.extend("--ft-typography-breadcrumb-font-weight",ae.fontWeight,"normal"),Qe=vt.extend("--ft-typography-breadcrumb-letter-spacing",ae.letterSpacing,"0.33px"),ti=vt.extend("--ft-typography-breadcrumb-line-height",ae.lineHeight,"1.6"),ei=vt.extend("--ft-typography-breadcrumb-text-transform",ae.textTransform,"inherit"),ii=vt.extend("--ft-typography-overline-font-family",re),oi=vt.extend("--ft-typography-overline-font-size",ae.fontSize,"10px"),si=vt.extend("--ft-typography-overline-font-weight",ae.fontWeight,"normal"),ni=vt.extend("--ft-typography-overline-letter-spacing",ae.letterSpacing,"1.5px"),ri=vt.extend("--ft-typography-overline-line-height",ae.lineHeight,"1.6"),ai=vt.extend("--ft-typography-overline-text-transform",ae.textTransform,"uppercase"),li=vt.extend("--ft-typography-button-font-family",re),hi=vt.extend("--ft-typography-button-font-size",ae.fontSize,"14px"),pi=vt.extend("--ft-typography-button-font-weight",ae.fontWeight,"600"),ci=vt.extend("--ft-typography-button-letter-spacing",ae.letterSpacing,"1.246px"),fi=vt.extend("--ft-typography-button-line-height",ae.lineHeight,"1.15"),di=vt.extend("--ft-typography-button-text-transform",ae.textTransform,"uppercase"),ui=y`
|
|
232
232
|
.ft-typography--title {
|
|
233
233
|
font-family: ${le};
|
|
234
234
|
font-size: ${he};
|
|
@@ -237,16 +237,16 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
237
237
|
line-height: ${fe};
|
|
238
238
|
text-transform: ${de};
|
|
239
239
|
}
|
|
240
|
-
`,
|
|
240
|
+
`,vi=y`
|
|
241
241
|
.ft-typography--title-dense {
|
|
242
242
|
font-family: ${ue};
|
|
243
|
-
font-size: ${
|
|
244
|
-
font-weight: ${
|
|
243
|
+
font-size: ${ve};
|
|
244
|
+
font-weight: ${ye};
|
|
245
245
|
letter-spacing: ${xe};
|
|
246
246
|
line-height: ${be};
|
|
247
247
|
text-transform: ${ge};
|
|
248
248
|
}
|
|
249
|
-
`,
|
|
249
|
+
`,yi=y`
|
|
250
250
|
.ft-typography--subtitle1 {
|
|
251
251
|
font-family: ${me};
|
|
252
252
|
font-size: ${we};
|
|
@@ -255,7 +255,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
255
255
|
line-height: ${Se};
|
|
256
256
|
text-transform: ${ke};
|
|
257
257
|
}
|
|
258
|
-
`,xi=
|
|
258
|
+
`,xi=y`
|
|
259
259
|
.ft-typography--subtitle2 {
|
|
260
260
|
font-family: ${Ne};
|
|
261
261
|
font-size: ${Ce};
|
|
@@ -265,7 +265,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
265
265
|
text-transform: ${Ue};
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
`,bi=
|
|
268
|
+
`,bi=y`
|
|
269
269
|
.ft-typography--body1 {
|
|
270
270
|
font-family: ${je};
|
|
271
271
|
font-size: ${Fe};
|
|
@@ -274,7 +274,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
274
274
|
line-height: ${Be};
|
|
275
275
|
text-transform: ${Le};
|
|
276
276
|
}
|
|
277
|
-
`,gi=
|
|
277
|
+
`,gi=y`
|
|
278
278
|
.ft-typography--body2 {
|
|
279
279
|
font-family: ${Te};
|
|
280
280
|
font-size: ${Pe};
|
|
@@ -283,7 +283,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
283
283
|
line-height: ${Ie};
|
|
284
284
|
text-transform: ${We};
|
|
285
285
|
}
|
|
286
|
-
`,mi=
|
|
286
|
+
`,mi=y`
|
|
287
287
|
.ft-typography--caption {
|
|
288
288
|
font-family: ${He};
|
|
289
289
|
font-size: ${Ke};
|
|
@@ -292,7 +292,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
292
292
|
line-height: ${Je};
|
|
293
293
|
text-transform: ${qe};
|
|
294
294
|
}
|
|
295
|
-
`,wi=
|
|
295
|
+
`,wi=y`
|
|
296
296
|
.ft-typography--breadcrumb {
|
|
297
297
|
font-family: ${Xe};
|
|
298
298
|
font-size: ${Ye};
|
|
@@ -301,7 +301,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
301
301
|
line-height: ${ti};
|
|
302
302
|
text-transform: ${ei};
|
|
303
303
|
}
|
|
304
|
-
`,$i=
|
|
304
|
+
`,$i=y`
|
|
305
305
|
.ft-typography--overline {
|
|
306
306
|
font-family: ${ii};
|
|
307
307
|
font-size: ${oi};
|
|
@@ -310,7 +310,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
310
310
|
line-height: ${ri};
|
|
311
311
|
text-transform: ${ai};
|
|
312
312
|
}
|
|
313
|
-
`,Oi=
|
|
313
|
+
`,Oi=y`
|
|
314
314
|
.ft-typography--button {
|
|
315
315
|
font-family: ${li};
|
|
316
316
|
font-size: ${hi};
|
|
@@ -319,7 +319,7 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
319
319
|
line-height: ${fi};
|
|
320
320
|
text-transform: ${di};
|
|
321
321
|
}
|
|
322
|
-
`,Si=
|
|
322
|
+
`,Si=y`
|
|
323
323
|
.ft-typography {
|
|
324
324
|
vertical-align: inherit;
|
|
325
325
|
}
|
|
@@ -330,13 +330,13 @@ const Qt=Symbol.for(""),te=t=>{if((null==t?void 0:t.r)===Qt)return null==t?void
|
|
|
330
330
|
</${ee(this.element)}>
|
|
331
331
|
`:oe`
|
|
332
332
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
333
|
-
`}}Ni.styles=[ui,yi,
|
|
333
|
+
`}}Ni.styles=[ui,vi,yi,xi,bi,gi,mi,wi,$i,Oi,Si],ki([o()],Ni.prototype,"element",void 0),ki([o()],Ni.prototype,"variant",void 0),h("ft-typography")(Ni);
|
|
334
334
|
/**
|
|
335
335
|
* @license
|
|
336
336
|
* Copyright 2017 Google LLC
|
|
337
337
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
338
338
|
*/
|
|
339
|
-
class Ci extends Ct{constructor(t){if(super(t),this.it=q,t.type!==kt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ci.directiveName="unsafeHTML",Ci.resultType=1;const Ei=Nt(Ci);var Ri,Mi;!function(t){t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.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="",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=""}(Ri||(Ri={})),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=""}(Mi||(Mi={})),new Map([...["abw"].map((t=>[t,Mi.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,Mi.AUDIO])),...["avi"].map((t=>[t,Mi.AVI])),...["chm","xhs"].map((t=>[t,Mi.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,Mi.CODE])),...["csv"].map((t=>[t,Mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mi.DITA])),...["epub"].map((t=>[t,Mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mi.EXCEL])),...["flac"].map((t=>[t,Mi.FLAC])),...["gif"].map((t=>[t,Mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mi.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,Mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mi.JPEG])),...["json"].map((t=>[t,Mi.JSON])),...["m4a","m4p"].map((t=>[t,Mi.M4A])),...["mov","qt"].map((t=>[t,Mi.MOV])),...["mp3"].map((t=>[t,Mi.MP3])),...["mp4","m4v"].map((t=>[t,Mi.MP4])),...["ogg","oga"].map((t=>[t,Mi.OGG])),...["pdf","ps"].map((t=>[t,Mi.PDF])),...["png"].map((t=>[t,Mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mi.POWERPOINT])),...["rar"].map((t=>[t,Mi.RAR])),...["stp"].map((t=>[t,Mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mi.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,Mi.VIDEO])),...["wav"].map((t=>[t,Mi.WAV])),...["wma"].map((t=>[t,Mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mi.YAML])),...["zip"].map((t=>[t,Mi.ZIP]))]);const Ui=
|
|
339
|
+
class Ci extends Ct{constructor(t){if(super(t),this.it=q,t.type!==kt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ci.directiveName="unsafeHTML",Ci.resultType=1;const Ei=Nt(Ci);var Ri,Mi;!function(t){t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.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="",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=""}(Ri||(Ri={})),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=""}(Mi||(Mi={})),new Map([...["abw"].map((t=>[t,Mi.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,Mi.AUDIO])),...["avi"].map((t=>[t,Mi.AVI])),...["chm","xhs"].map((t=>[t,Mi.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,Mi.CODE])),...["csv"].map((t=>[t,Mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mi.DITA])),...["epub"].map((t=>[t,Mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mi.EXCEL])),...["flac"].map((t=>[t,Mi.FLAC])),...["gif"].map((t=>[t,Mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mi.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,Mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mi.JPEG])),...["json"].map((t=>[t,Mi.JSON])),...["m4a","m4p"].map((t=>[t,Mi.M4A])),...["mov","qt"].map((t=>[t,Mi.MOV])),...["mp3"].map((t=>[t,Mi.MP3])),...["mp4","m4v"].map((t=>[t,Mi.MP4])),...["ogg","oga"].map((t=>[t,Mi.OGG])),...["pdf","ps"].map((t=>[t,Mi.PDF])),...["png"].map((t=>[t,Mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mi.POWERPOINT])),...["rar"].map((t=>[t,Mi.RAR])),...["stp"].map((t=>[t,Mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mi.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,Mi.VIDEO])),...["wav"].map((t=>[t,Mi.WAV])),...["wma"].map((t=>[t,Mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mi.YAML])),...["zip"].map((t=>[t,Mi.ZIP]))]);const Ui=vt.create("--ft-icon-font-size","SIZE","24px"),ji=vt.extend("--ft-icon-fluid-topics-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Fi=vt.extend("--ft-icon-file-format-font-family",vt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),zi=vt.extend("--ft-icon-material-font-family",vt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ai=vt.create("--ft-icon-vertical-align","UNKNOWN","unset"),Bi=y`
|
|
340
340
|
:host {
|
|
341
341
|
display: inline-block;
|
|
342
342
|
}
|
|
@@ -378,7 +378,7 @@ class Ci extends Ct{constructor(t){if(super(t),this.it=q,t.type!==kt)throw Error
|
|
|
378
378
|
${Ei(this.resolvedIcon)}
|
|
379
379
|
<slot ?hidden=${t}></slot>
|
|
380
380
|
</i>
|
|
381
|
-
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case gt.file_format:this.resolvedIcon=null!==(t=Mi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case gt.fluid_topics:this.resolvedIcon=null!==(e=Ri[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Pi.elementDefinitions={},Pi.styles=Bi,Ti([o()],Pi.prototype,"variant",void 0),Ti([o()],Pi.prototype,"value",void 0),Ti([s()],Pi.prototype,"resolvedIcon",void 0),Ti([r("slot")],Pi.prototype,"slottedContent",void 0),h("ft-icon")(Pi),t.FtTabsAlignment=void 0,(Li=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Li.right="right",Li.justify="justify";const _i={colorSurface:
|
|
381
|
+
`}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:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case gt.file_format:this.resolvedIcon=null!==(t=Mi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case gt.fluid_topics:this.resolvedIcon=null!==(e=Ri[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Pi.elementDefinitions={},Pi.styles=Bi,Ti([o()],Pi.prototype,"variant",void 0),Ti([o()],Pi.prototype,"value",void 0),Ti([s()],Pi.prototype,"resolvedIcon",void 0),Ti([r("slot")],Pi.prototype,"slottedContent",void 0),h("ft-icon")(Pi),t.FtTabsAlignment=void 0,(Li=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Li.right="right",Li.justify="justify";const _i={colorSurface:vt.external(yt.colorSurface,"Design system"),colorPrimary:vt.external(yt.colorPrimary,"Design system"),colorOnSurfaceMedium:vt.external(yt.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:vt.external(yt.colorOnSurfaceDisabled,"Design system")},Di=y`
|
|
382
382
|
.ft-tabs {
|
|
383
383
|
display: flex;
|
|
384
384
|
flex-direction: column;
|
|
@@ -471,7 +471,7 @@ class Ci extends Ct{constructor(t){if(super(t),this.it=q,t.type!==kt)throw Error
|
|
|
471
471
|
flex-grow: 1;
|
|
472
472
|
overflow: auto;
|
|
473
473
|
}
|
|
474
|
-
`,Ii=
|
|
474
|
+
`,Ii=vt.create("--ft-tooltip-distance","SIZE","4px"),Wi=vt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Hi=vt.create("--ft-tooltip-background-color","COLOR","#666666"),Ki=vt.create("--ft-tooltip-z-index","NUMBER","1"),Zi=vt.external(yt.borderRadiusS,"Design system"),Vi=vt.create("--ft-tooltip-max-width","SIZE","150px"),Ji=y`
|
|
475
475
|
.ft-tooltip--container {
|
|
476
476
|
display: block;
|
|
477
477
|
position: relative;
|
|
@@ -535,19 +535,19 @@ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},
|
|
|
535
535
|
?disabled=${t.disabled}
|
|
536
536
|
@click=${()=>this.activeIndex=e}
|
|
537
537
|
role="tab"
|
|
538
|
-
part="tab"
|
|
538
|
+
part="tab${t.active?" active-tab":""}"
|
|
539
539
|
id="${t.ariaLabelledBy}"
|
|
540
540
|
aria-label="${t.label}"
|
|
541
541
|
aria-selected="${t.active?"true":"false"}"
|
|
542
542
|
tabindex="${t.disabled?"-1":"0"}"
|
|
543
543
|
aria-controls="${t.id}"
|
|
544
544
|
>
|
|
545
|
-
<ft-ripple primary ?disabled=${t.disabled} part="tab-ripple"></ft-ripple>
|
|
546
|
-
<ft-icon class="ft-tabs--tab-icon" part="tab-icon" variant="${t.iconVariant}">
|
|
545
|
+
<ft-ripple primary ?disabled=${t.disabled} part="tab-ripple${t.active?" active-tab-ripple":""}"></ft-ripple>
|
|
546
|
+
<ft-icon class="ft-tabs--tab-icon" part="tab-icon${t.active?" active-tab-icon":""}" variant="${t.iconVariant}">
|
|
547
547
|
${t.icon}
|
|
548
548
|
</ft-icon>
|
|
549
549
|
<ft-typography class="ft-tabs--tab-label"
|
|
550
|
-
part="tab-label"
|
|
550
|
+
part="tab-label${t.active?" active-tab-label":""}"
|
|
551
551
|
variant="${se.body2}">
|
|
552
552
|
${t.label}
|
|
553
553
|
</ft-typography>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-tabs",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.49",
|
|
4
4
|
"description": "Generic tabs component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
23
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
24
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.49",
|
|
23
|
+
"@fluid-topics/ft-ripple": "0.3.49",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "0.3.49",
|
|
25
|
+
"@fluid-topics/ft-typography": "0.3.49",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "0.3.49",
|
|
27
27
|
"lit": "2.2.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "3584a4f0b3edc500a360c2afe2ef3e5cdbb604b6"
|
|
30
30
|
}
|