@fluid-topics/ft-reader-toc 1.1.0 → 1.1.2
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-reader-toc.light.js +1 -1
- package/build/ft-reader-toc.min.js +215 -211
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,o,e,r,i,a,n,l){var c;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(c||(c={}));var s=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class p extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const f=Symbol("registerInterval");class d extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[f]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[f]):this.dispatchEvent(new p)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=f,s([n.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}
|
|
1
|
+
!function(t,o,e,r,i,a,n,l){var c;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(c||(c={}));var s=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class p extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const f=Symbol("registerInterval");class d extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[f]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[f]):this.dispatchEvent(new p)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=f,s([n.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=h(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=h(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?u(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},u=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=y.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Qi){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -81,7 +81,11 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
81
81
|
* @license
|
|
82
82
|
* Copyright 2019 Google LLC
|
|
83
83
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
84
|
-
*/class Wo extends Oo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Lo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Io.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var zo,Ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Fo=Symbol("constructorPrototype"),Zo=Symbol("constructorName"),Ao=Symbol("exportpartsDebouncer");class Bo extends Wo{constructor(){super(),this[zo]=new o(5),this[Zo]=this.constructor.name,this[Fo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zo]&&Object.setPrototypeOf(this,this[Fo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ao].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 o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}zo=Ao,Ko([C()],Bo.prototype,"exportpartsPrefix",void 0),Ko([I([])],Bo.prototype,"exportpartsPrefixes",void 0),Ko([C()],Bo.prototype,"customStylesheet",void 0);const Mo=Nt`
|
|
84
|
+
*/class Wo extends Oo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Lo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Io.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var zo,Ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Fo=Symbol("constructorPrototype"),Zo=Symbol("constructorName"),Ao=Symbol("exportpartsDebouncer");class Bo extends Wo{constructor(){super(),this[zo]=new o(5),this[Zo]=this.constructor.name,this[Fo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zo]&&Object.setPrototypeOf(this,this[Fo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ao].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 o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}zo=Ao,Ko([C()],Bo.prototype,"exportpartsPrefix",void 0),Ko([I([])],Bo.prototype,"exportpartsPrefixes",void 0),Ko([C()],Bo.prototype,"customStylesheet",void 0);const Mo=wo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Nt`
|
|
85
|
+
.highlight-html-match {
|
|
86
|
+
background: ${Mo};
|
|
87
|
+
}
|
|
88
|
+
`;const Do=Nt`
|
|
85
89
|
.ft-no-text-select {
|
|
86
90
|
-webkit-touch-callout: none;
|
|
87
91
|
-webkit-user-select: none;
|
|
@@ -102,7 +106,7 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
102
106
|
-webkit-hyphens: auto;
|
|
103
107
|
hyphens: auto
|
|
104
108
|
}
|
|
105
|
-
`;const
|
|
109
|
+
`;const Po=Nt`
|
|
106
110
|
.ft-safari-ellipsis-fix {
|
|
107
111
|
margin-right: 0;
|
|
108
112
|
|
|
@@ -113,122 +117,122 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
113
117
|
display: inline-block;
|
|
114
118
|
width: 0;
|
|
115
119
|
}
|
|
116
|
-
`;class
|
|
120
|
+
`;class Ho{constructor(t,o){this.defaultLabels=t,this.labels=o}resolve(t,...o){var e,i;t=this.resolvePluralKey(t,o);let r=null!==(i=null!==(e=this.labels[t])&&void 0!==e?e:this.defaultLabels[t])&&void 0!==i?i:"";return o.forEach(((t,o)=>r=r.replace(new RegExp(`\\{${o}([^}]*)\\}`,"g"),((o,e)=>this.formatValue(t,e))))),r}resolvePluralKey(t,o){for(let e of o)if("number"==typeof e){const o=`${String(t)}[\\=${e}]`;if(o in this.labels||o in this.defaultLabels)return o}return t}formatValue(t,o){return t instanceof Date?this.formatDate(t,o):null!=t?t:""}formatDate(t,o){const e=e=>(null==o?void 0:o.includes("date"))?t.toLocaleDateString(e):(null==o?void 0:o.includes("time"))?t.toLocaleTimeString(e):t.toLocaleString(e);try{return e(document.documentElement.lang)}catch(t){return e()}}}function jo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var To,_o,Go;const Vo=Symbol("internalReduxEventsUnsubscribers"),Yo=Symbol("internalStoresUnsubscribers"),Xo=Symbol("internalStores");class Jo extends Bo{constructor(){super(...arguments),this[To]=new Map,this[_o]=new Map,this[Go]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[Xo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Xo].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:jo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Xo].delete(o)}setupStore(t,o){this[Xo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xo].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Yo].has(t.store):this[Yo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Yo].set(t,o.subscribe((()=>this.updateFromStores()))),jo(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const i=t=>this[e](t);o.eventBus.addEventListener(t.eventName,i),this[Vo].push((()=>o.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Yo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Vo].forEach((t=>t())),this[Vo]=[]}unsubscribeFromStore(t){this[Yo].has(t)&&this[Yo].get(t)(),this[Yo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}To=Yo,_o=Xo,Go=Vo,window.ftReduxStores||(window.ftReduxStores={});const qo=t=>{const o=null!=t?t:{};return(t,e)=>{var i;const r={hasChanged:(t,o)=>!U(t,o),attribute:!1,...o};C(r)(t,e);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(e,{selector:null!==(i=o.selector)&&void 0!==i?i:t=>t[e],store:o.store})}},Qo=Symbol("elementInternals");var te,oe,ee;const ie=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(ee=null===(oe=null===(te=window.safari)||void 0===te?void 0:te.pushNotification)||void 0===oe?void 0:oe.toString())&&void 0!==ee?ee:""),re=1,ne=2,ae=t=>(...o)=>({_$litDirective$:t,values:o});
|
|
117
121
|
/**
|
|
118
122
|
* @license
|
|
119
123
|
* Copyright 2017 Google LLC
|
|
120
124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
121
|
-
*/let
|
|
125
|
+
*/let se=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
|
|
122
126
|
/**
|
|
123
127
|
* @license
|
|
124
128
|
* Copyright 2020 Google LLC
|
|
125
129
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
126
|
-
*/const{D:
|
|
130
|
+
*/const{D:le}=ut,ce=()=>document.createComment(""),pe=(t,o,e)=>{const i=t._$AA.parentNode,r=void 0===o?t._$AB:o._$AA;if(void 0===e){const o=i.insertBefore(ce(),r),n=i.insertBefore(ce(),r);e=new le(o,n,t,t.options)}else{const o=e._$AB.nextSibling,n=e._$AM,a=n!==t;if(a){let o;e._$AQ?.(t),e._$AM=t,void 0!==e._$AP&&(o=t._$AU)!==n._$AU&&e._$AP(o)}if(o!==r||a){let t=e._$AA;for(;t!==o;){const o=t.nextSibling;i.insertBefore(t,r),t=o}}}return e},he=(t,o,e=t)=>(t._$AI(o,e),t),fe={},de=t=>{t._$AP?.(!1,!0);let o=t._$AA;const e=t._$AB.nextSibling;for(;o!==e;){const t=o.nextSibling;o.remove(),o=t}},ue=(t,o,e)=>{const i=new Map;for(let r=o;r<=e;r++)i.set(t[r],r);return i},ye=ae(class extends se{constructor(t){if(super(t),t.type!==ne)throw Error("repeat() can only be used in text expressions")}ht(t,o,e){let i;void 0===e?e=o:void 0!==o&&(i=o);const r=[],n=[];let a=0;for(const o of t)r[a]=i?i(o,a):a,n[a]=e(o,a),a++;return{values:n,keys:r}}render(t,o,e){return this.ht(t,o,e).values}update(t,[o,e,i]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(o,e,i);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,p,h=0,f=r.length-1,d=0,u=n.length-1;for(;h<=f&&d<=u;)if(null===r[h])h++;else if(null===r[f])f--;else if(s[h]===a[d])l[d]=he(r[h],n[d]),h++,d++;else if(s[f]===a[u])l[u]=he(r[f],n[u]),f--,u--;else if(s[h]===a[u])l[u]=he(r[h],n[u]),pe(t,l[u+1],r[h]),h++,u--;else if(s[f]===a[d])l[d]=he(r[f],n[d]),pe(t,r[h],r[f]),f--,d++;else if(void 0===c&&(c=ue(a,d,u),p=ue(s,h,f)),c.has(s[h]))if(c.has(s[f])){const o=p.get(a[d]),e=void 0!==o?r[o]:null;if(null===e){const o=pe(t,r[h]);he(o,n[d]),l[d]=o}else l[d]=he(e,n[d]),pe(t,r[h],e),r[o]=null;d++}else de(r[f]),f--;else de(r[h]),h++;for(;d<=u;){const o=pe(t,l[u+1]);he(o,n[d]),l[d++]=o}for(;h<=f;){const t=r[h++];null!==t&&de(t)}return this.dt=a,((t,o=fe)=>{t._$AH=o})(t,l),Q}}),ge=ae(class extends se{constructor(t){if(super(t),t.type!==re||"class"!==t.name||t.strings?.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((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return Q}}),be="important",me=" !"+be,xe=ae(class extends se{constructor(t){if(super(t),t.type!==re||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((o,e)=>{const i=t[e];return null==i?o:o+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[o]){const{style:e}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(o)),this.render(o);for(const t of this.ut)null==o[t]&&(this.ut.delete(t),t.includes("-")?e.removeProperty(t):e[t]=null);for(const t in o){const i=o[t];if(null!=i){this.ut.add(t);const o="string"==typeof i&&i.endsWith(me);t.includes("-")||o?e.setProperty(t,o?i.slice(0,-11):i,o?be:""):e[t]=i}}return Q}});
|
|
127
131
|
/**
|
|
128
132
|
* @license
|
|
129
133
|
* Copyright 2017 Google LLC
|
|
130
134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
131
|
-
*/var
|
|
135
|
+
*/var ve;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(ve||(ve={}));var Oe=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ne extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Se=Symbol("registerInterval");class we extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Se]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Se]):this.dispatchEvent(new Ne)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Se,Oe([$()],e.prototype,"stateManager",void 0),e}(Jo)){}
|
|
132
136
|
/**
|
|
133
137
|
* @license
|
|
134
138
|
* Copyright 2020 Google LLC
|
|
135
139
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
136
|
-
*/const
|
|
140
|
+
*/const Ce=Symbol.for(""),$e=t=>{if(t?.r===Ce)return t?._$litStatic$},Ee=t=>({_$litStatic$:t,r:Ce}),Re=new Map,Ue=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=$e(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=Re.get(t))&&(a.raw=a,Re.set(t,o=a)),e=s}return t(o,...e)})(q);var ke;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ke||(ke={}));const Ie=wo.extend("--ft-typography-font-family","",ko.titleFont),Le=wo.extend("--ft-typography-font-family","",ko.contentFont),We={fontFamily:Le,fontSize:wo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:wo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:wo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:wo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:wo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ze=wo.extend("--ft-typography-title-font-family","",Ie),Ke=wo.extend("--ft-typography-title-font-size","",We.fontSize,"20px"),Fe=wo.extend("--ft-typography-title-font-weight","",We.fontWeight,"normal"),Ze=wo.extend("--ft-typography-title-letter-spacing","",We.letterSpacing,"0.15px"),Ae=wo.extend("--ft-typography-title-line-height","",We.lineHeight,"1.2"),Be=wo.extend("--ft-typography-title-text-transform","",We.textTransform,"inherit"),Me=wo.extend("--ft-typography-title-dense-font-family","",Ie),De=wo.extend("--ft-typography-title-dense-font-size","",We.fontSize,"14px"),Pe=wo.extend("--ft-typography-title-dense-font-weight","",We.fontWeight,"normal"),He=wo.extend("--ft-typography-title-dense-letter-spacing","",We.letterSpacing,"0.105px"),je=wo.extend("--ft-typography-title-dense-line-height","",We.lineHeight,"1.7"),Te=wo.extend("--ft-typography-title-dense-text-transform","",We.textTransform,"inherit"),_e=wo.extend("--ft-typography-subtitle1-font-family","",Le),Ge=wo.extend("--ft-typography-subtitle1-font-size","",We.fontSize,"16px"),Ve=wo.extend("--ft-typography-subtitle1-font-weight","",We.fontWeight,"600"),Ye=wo.extend("--ft-typography-subtitle1-letter-spacing","",We.letterSpacing,"0.144px"),Xe=wo.extend("--ft-typography-subtitle1-line-height","",We.lineHeight,"1.5"),Je=wo.extend("--ft-typography-subtitle1-text-transform","",We.textTransform,"inherit"),qe=wo.extend("--ft-typography-subtitle2-font-family","",Le),Qe=wo.extend("--ft-typography-subtitle2-font-size","",We.fontSize,"14px"),ti=wo.extend("--ft-typography-subtitle2-font-weight","",We.fontWeight,"normal"),oi=wo.extend("--ft-typography-subtitle2-letter-spacing","",We.letterSpacing,"0.098px"),ei=wo.extend("--ft-typography-subtitle2-line-height","",We.lineHeight,"1.7"),ii=wo.extend("--ft-typography-subtitle2-text-transform","",We.textTransform,"inherit"),ri=wo.extend("--ft-typography-body1-font-family","",Le),ni=wo.extend("--ft-typography-body1-font-size","",We.fontSize,"16px"),ai=wo.extend("--ft-typography-body1-font-weight","",We.fontWeight,"normal"),si=wo.extend("--ft-typography-body1-letter-spacing","",We.letterSpacing,"0.496px"),li=wo.extend("--ft-typography-body1-line-height","",We.lineHeight,"1.5"),ci=wo.extend("--ft-typography-body1-text-transform","",We.textTransform,"inherit"),pi=wo.extend("--ft-typography-body2-font-family","",Le),hi=wo.extend("--ft-typography-body2-font-size","",We.fontSize,"14px"),fi=wo.extend("--ft-typography-body2-font-weight","",We.fontWeight,"normal"),di=wo.extend("--ft-typography-body2-letter-spacing","",We.letterSpacing,"0.252px"),ui=wo.extend("--ft-typography-body2-line-height","",We.lineHeight,"1.4"),yi=wo.extend("--ft-typography-body2-text-transform","",We.textTransform,"inherit"),gi=wo.extend("--ft-typography-caption-font-family","",Le),bi=wo.extend("--ft-typography-caption-font-size","",We.fontSize,"12px"),mi=wo.extend("--ft-typography-caption-font-weight","",We.fontWeight,"normal"),xi=wo.extend("--ft-typography-caption-letter-spacing","",We.letterSpacing,"0.396px"),vi=wo.extend("--ft-typography-caption-line-height","",We.lineHeight,"1.33"),Oi=wo.extend("--ft-typography-caption-text-transform","",We.textTransform,"inherit"),Ni=wo.extend("--ft-typography-breadcrumb-font-family","",Le),Si=wo.extend("--ft-typography-breadcrumb-font-size","",We.fontSize,"10px"),wi=wo.extend("--ft-typography-breadcrumb-font-weight","",We.fontWeight,"normal"),Ci=wo.extend("--ft-typography-breadcrumb-letter-spacing","",We.letterSpacing,"0.33px"),$i=wo.extend("--ft-typography-breadcrumb-line-height","",We.lineHeight,"1.6"),Ei=wo.extend("--ft-typography-breadcrumb-text-transform","",We.textTransform,"inherit"),Ri=wo.extend("--ft-typography-overline-font-family","",Le),Ui=wo.extend("--ft-typography-overline-font-size","",We.fontSize,"10px"),ki=wo.extend("--ft-typography-overline-font-weight","",We.fontWeight,"normal"),Ii=wo.extend("--ft-typography-overline-letter-spacing","",We.letterSpacing,"1.5px"),Li=wo.extend("--ft-typography-overline-line-height","",We.lineHeight,"1.6"),Wi=wo.extend("--ft-typography-overline-text-transform","",We.textTransform,"uppercase"),zi={fontFamily:wo.extend("--ft-typography-button-font-family","",Le),fontSize:wo.extend("--ft-typography-button-font-size","",We.fontSize,"14px"),fontWeight:wo.extend("--ft-typography-button-font-weight","",We.fontWeight,"600"),letterSpacing:wo.extend("--ft-typography-button-letter-spacing","",We.letterSpacing,"1.246px"),lineHeight:wo.extend("--ft-typography-button-line-height","",We.lineHeight,"1.15"),textTransform:wo.extend("--ft-typography-button-text-transform","",We.textTransform,"uppercase")},Ki=Nt`
|
|
137
141
|
.ft-typography--title {
|
|
138
|
-
font-family: ${
|
|
139
|
-
font-size: ${
|
|
140
|
-
font-weight: ${
|
|
141
|
-
letter-spacing: ${
|
|
142
|
-
line-height: ${
|
|
143
|
-
text-transform: ${
|
|
144
|
-
}
|
|
145
|
-
`,Ki=Nt`
|
|
146
|
-
.ft-typography--title-dense {
|
|
147
|
-
font-family: ${Be};
|
|
148
|
-
font-size: ${Me};
|
|
149
|
-
font-weight: ${De};
|
|
150
|
-
letter-spacing: ${Pe};
|
|
151
|
-
line-height: ${He};
|
|
152
|
-
text-transform: ${je};
|
|
142
|
+
font-family: ${ze};
|
|
143
|
+
font-size: ${Ke};
|
|
144
|
+
font-weight: ${Fe};
|
|
145
|
+
letter-spacing: ${Ze};
|
|
146
|
+
line-height: ${Ae};
|
|
147
|
+
text-transform: ${Be};
|
|
153
148
|
}
|
|
154
149
|
`,Fi=Nt`
|
|
155
|
-
.ft-typography--
|
|
156
|
-
font-family: ${
|
|
157
|
-
font-size: ${
|
|
158
|
-
font-weight: ${
|
|
159
|
-
letter-spacing: ${
|
|
160
|
-
line-height: ${
|
|
161
|
-
text-transform: ${
|
|
150
|
+
.ft-typography--title-dense {
|
|
151
|
+
font-family: ${Me};
|
|
152
|
+
font-size: ${De};
|
|
153
|
+
font-weight: ${Pe};
|
|
154
|
+
letter-spacing: ${He};
|
|
155
|
+
line-height: ${je};
|
|
156
|
+
text-transform: ${Te};
|
|
162
157
|
}
|
|
163
158
|
`,Zi=Nt`
|
|
164
|
-
.ft-typography--
|
|
165
|
-
font-family: ${
|
|
166
|
-
font-size: ${
|
|
167
|
-
font-weight: ${
|
|
168
|
-
letter-spacing: ${
|
|
169
|
-
line-height: ${
|
|
170
|
-
text-transform: ${
|
|
159
|
+
.ft-typography--subtitle1 {
|
|
160
|
+
font-family: ${_e};
|
|
161
|
+
font-size: ${Ge};
|
|
162
|
+
font-weight: ${Ve};
|
|
163
|
+
letter-spacing: ${Ye};
|
|
164
|
+
line-height: ${Xe};
|
|
165
|
+
text-transform: ${Je};
|
|
171
166
|
}
|
|
172
|
-
|
|
173
167
|
`,Ai=Nt`
|
|
174
|
-
.ft-typography--
|
|
175
|
-
font-family: ${
|
|
176
|
-
font-size: ${
|
|
177
|
-
font-weight: ${
|
|
178
|
-
letter-spacing: ${
|
|
179
|
-
line-height: ${
|
|
180
|
-
text-transform: ${
|
|
168
|
+
.ft-typography--subtitle2 {
|
|
169
|
+
font-family: ${qe};
|
|
170
|
+
font-size: ${Qe};
|
|
171
|
+
font-weight: ${ti};
|
|
172
|
+
letter-spacing: ${oi};
|
|
173
|
+
line-height: ${ei};
|
|
174
|
+
text-transform: ${ii};
|
|
181
175
|
}
|
|
176
|
+
|
|
182
177
|
`,Bi=Nt`
|
|
183
|
-
.ft-typography--
|
|
184
|
-
font-family: ${
|
|
185
|
-
font-size: ${
|
|
186
|
-
font-weight: ${
|
|
187
|
-
letter-spacing: ${
|
|
188
|
-
line-height: ${
|
|
189
|
-
text-transform: ${
|
|
178
|
+
.ft-typography--body1 {
|
|
179
|
+
font-family: ${ri};
|
|
180
|
+
font-size: ${ni};
|
|
181
|
+
font-weight: ${ai};
|
|
182
|
+
letter-spacing: ${si};
|
|
183
|
+
line-height: ${li};
|
|
184
|
+
text-transform: ${ci};
|
|
190
185
|
}
|
|
191
186
|
`,Mi=Nt`
|
|
192
|
-
.ft-typography--
|
|
193
|
-
font-family: ${
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
196
|
-
letter-spacing: ${
|
|
197
|
-
line-height: ${
|
|
198
|
-
text-transform: ${
|
|
187
|
+
.ft-typography--body2 {
|
|
188
|
+
font-family: ${pi};
|
|
189
|
+
font-size: ${hi};
|
|
190
|
+
font-weight: ${fi};
|
|
191
|
+
letter-spacing: ${di};
|
|
192
|
+
line-height: ${ui};
|
|
193
|
+
text-transform: ${yi};
|
|
199
194
|
}
|
|
200
195
|
`,Di=Nt`
|
|
201
|
-
.ft-typography--
|
|
202
|
-
font-family: ${
|
|
203
|
-
font-size: ${
|
|
204
|
-
font-weight: ${
|
|
205
|
-
letter-spacing: ${
|
|
206
|
-
line-height: ${
|
|
207
|
-
text-transform: ${
|
|
196
|
+
.ft-typography--caption {
|
|
197
|
+
font-family: ${gi};
|
|
198
|
+
font-size: ${bi};
|
|
199
|
+
font-weight: ${mi};
|
|
200
|
+
letter-spacing: ${xi};
|
|
201
|
+
line-height: ${vi};
|
|
202
|
+
text-transform: ${Oi};
|
|
208
203
|
}
|
|
209
204
|
`,Pi=Nt`
|
|
210
|
-
.ft-typography--
|
|
211
|
-
font-family: ${
|
|
212
|
-
font-size: ${
|
|
213
|
-
font-weight: ${
|
|
214
|
-
letter-spacing: ${
|
|
215
|
-
line-height: ${
|
|
216
|
-
text-transform: ${
|
|
205
|
+
.ft-typography--breadcrumb {
|
|
206
|
+
font-family: ${Ni};
|
|
207
|
+
font-size: ${Si};
|
|
208
|
+
font-weight: ${wi};
|
|
209
|
+
letter-spacing: ${Ci};
|
|
210
|
+
line-height: ${$i};
|
|
211
|
+
text-transform: ${Ei};
|
|
217
212
|
}
|
|
218
213
|
`,Hi=Nt`
|
|
219
|
-
.ft-typography--
|
|
220
|
-
font-family: ${
|
|
221
|
-
font-size: ${
|
|
222
|
-
font-weight: ${
|
|
223
|
-
letter-spacing: ${
|
|
224
|
-
line-height: ${
|
|
225
|
-
text-transform: ${Wi
|
|
214
|
+
.ft-typography--overline {
|
|
215
|
+
font-family: ${Ri};
|
|
216
|
+
font-size: ${Ui};
|
|
217
|
+
font-weight: ${ki};
|
|
218
|
+
letter-spacing: ${Ii};
|
|
219
|
+
line-height: ${Li};
|
|
220
|
+
text-transform: ${Wi};
|
|
226
221
|
}
|
|
227
222
|
`,ji=Nt`
|
|
223
|
+
.ft-typography--button {
|
|
224
|
+
font-family: ${zi.fontFamily};
|
|
225
|
+
font-size: ${zi.fontSize};
|
|
226
|
+
font-weight: ${zi.fontWeight};
|
|
227
|
+
letter-spacing: ${zi.letterSpacing};
|
|
228
|
+
line-height: ${zi.lineHeight};
|
|
229
|
+
text-transform: ${zi.textTransform};
|
|
230
|
+
}
|
|
231
|
+
`,Ti=Nt`
|
|
228
232
|
.ft-typography {
|
|
229
233
|
vertical-align: inherit;
|
|
230
234
|
}
|
|
231
|
-
`,
|
|
235
|
+
`,_i=[Object.keys(Eo).map((t=>function(t){const o=Eo[t];return Nt`
|
|
232
236
|
.ft-typography--${Ot(t)} {
|
|
233
237
|
font-family: ${o.fontFamily};
|
|
234
238
|
font-size: ${o.fontSize};
|
|
@@ -237,39 +241,39 @@ let Oo=class extends At{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
237
241
|
line-height: ${o.lineHeight};
|
|
238
242
|
text-transform: ${o.textCase};
|
|
239
243
|
}
|
|
240
|
-
`}(t)))];var
|
|
241
|
-
<${
|
|
244
|
+
`}(t)))];var Gi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Vi extends Bo{constructor(){super(...arguments),this.variant=ke.body1}render(){return this.element?Ue`
|
|
245
|
+
<${Ee(this.element)}
|
|
242
246
|
class="ft-typography ft-typography--${this.variant}">
|
|
243
247
|
<slot></slot>
|
|
244
|
-
</${
|
|
245
|
-
`:
|
|
248
|
+
</${Ee(this.element)}>
|
|
249
|
+
`:Ue`
|
|
246
250
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
247
|
-
`}}
|
|
251
|
+
`}}Vi.styles=[Ki,Fi,Zi,Ai,Bi,Mi,Di,Pi,Hi,ji,Ti,..._i],Gi([C()],Vi.prototype,"element",void 0),Gi([C()],Vi.prototype,"variant",void 0),k("ft-typography")(Vi);const Yi=wo.extend("--ft-reader-internal-link-outline-color","",ko.colorPrimary),Xi=Nt`
|
|
248
252
|
:host {
|
|
249
253
|
display: contents;
|
|
250
254
|
}
|
|
251
255
|
|
|
252
256
|
a:focus {
|
|
253
|
-
outline-color: ${
|
|
257
|
+
outline-color: ${Yi};
|
|
254
258
|
}
|
|
255
259
|
|
|
256
260
|
.ft-reader-link--remove-style {
|
|
257
261
|
text-decoration: none;
|
|
258
262
|
color: inherit;
|
|
259
263
|
}
|
|
260
|
-
`;var
|
|
264
|
+
`;var Ji=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class qi extends we{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=ge({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return ro`
|
|
261
265
|
<a class=${o}
|
|
262
266
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
263
267
|
@click=${t=>this.onLinkClick(t)}>
|
|
264
268
|
<slot></slot>
|
|
265
269
|
</a>
|
|
266
|
-
`}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}
|
|
270
|
+
`}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}qi.styles=Xi,Ji([C()],qi.prototype,"tocId",void 0),Ji([C()],qi.prototype,"section",void 0),Ji([C({type:Number})],qi.prototype,"pageNumber",void 0),Ji([C({type:Boolean})],qi.prototype,"removeStyle",void 0),k("ft-reader-internal-link")(qi);
|
|
267
271
|
/**
|
|
268
272
|
* @license
|
|
269
273
|
* Copyright 2017 Google LLC
|
|
270
274
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
271
275
|
*/
|
|
272
|
-
class
|
|
276
|
+
class Qi extends se{constructor(t){if(super(t),this.et=tt,t.type!==ne)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===tt||null==t)return this.vt=void 0,this.et=t;if(t===Q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Qi.directiveName="unsafeHTML",Qi.resultType=1;const tr=ae(Qi);var or,er;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",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="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(or||(or={})),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=""}(er||(er={})),new Map([...["abw"].map((t=>[t,er.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,er.AUDIO])),...["avi"].map((t=>[t,er.AVI])),...["chm","xhs"].map((t=>[t,er.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,er.CODE])),...["csv"].map((t=>[t,er.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,er.DITA])),...["epub"].map((t=>[t,er.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,er.EXCEL])),...["flac"].map((t=>[t,er.FLAC])),...["gif"].map((t=>[t,er.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,er.GZIP])),...["html","htm","xhtml"].map((t=>[t,er.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,er.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,er.JPEG])),...["json"].map((t=>[t,er.JSON])),...["m4a","m4p"].map((t=>[t,er.M4A])),...["mov","qt"].map((t=>[t,er.MOV])),...["mp3"].map((t=>[t,er.MP3])),...["mp4","m4v"].map((t=>[t,er.MP4])),...["ogg","oga"].map((t=>[t,er.OGG])),...["pdf","ps"].map((t=>[t,er.PDF])),...["png"].map((t=>[t,er.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,er.POWERPOINT])),...["rar"].map((t=>[t,er.RAR])),...["stp"].map((t=>[t,er.STP])),...["txt","rtf","md","mdown"].map((t=>[t,er.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,er.VIDEO])),...["wav"].map((t=>[t,er.WAV])),...["wma"].map((t=>[t,er.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,er.WORD])),...["xml","xsl","rdf"].map((t=>[t,er.XML])),...["yaml","yml","x-yaml"].map((t=>[t,er.YAML])),...["zip"].map((t=>[t,er.ZIP]))]);const ir={size:wo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:wo.extend("--ft-icon-fluid-topics-font-family","",wo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:wo.extend("--ft-icon-file-format-font-family","",wo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:wo.extend("--ft-icon-material-font-family","",wo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:wo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rr=Nt`
|
|
273
277
|
:host, i.ft-icon {
|
|
274
278
|
display: inline-flex;
|
|
275
279
|
align-items: center;
|
|
@@ -278,14 +282,14 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
278
282
|
}
|
|
279
283
|
|
|
280
284
|
:host {
|
|
281
|
-
width: ${
|
|
282
|
-
height: ${
|
|
285
|
+
width: ${ir.size};
|
|
286
|
+
height: ${ir.size};
|
|
283
287
|
}
|
|
284
288
|
|
|
285
289
|
i.ft-icon {
|
|
286
290
|
width: 100%;
|
|
287
291
|
height: 100%;
|
|
288
|
-
font-size: ${
|
|
292
|
+
font-size: ${ir.size};
|
|
289
293
|
line-height: 1;
|
|
290
294
|
font-weight: normal;
|
|
291
295
|
text-transform: none;
|
|
@@ -296,33 +300,33 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
296
300
|
text-rendering: auto;
|
|
297
301
|
-webkit-font-smoothing: antialiased;
|
|
298
302
|
-moz-osx-font-smoothing: grayscale;
|
|
299
|
-
vertical-align: ${
|
|
303
|
+
vertical-align: ${ir.verticalAlign};
|
|
300
304
|
}
|
|
301
305
|
|
|
302
306
|
i.ft-icon.ft-icon--fluid-topics {
|
|
303
|
-
font-family: ${
|
|
307
|
+
font-family: ${ir.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
304
308
|
|
|
305
309
|
/* Ugly fix because font is broken */
|
|
306
|
-
font-size: calc(0.75 * ${
|
|
307
|
-
line-height: ${
|
|
310
|
+
font-size: calc(0.75 * ${ir.size});
|
|
311
|
+
line-height: ${ir.size};
|
|
308
312
|
position: relative;
|
|
309
313
|
top: -4%;
|
|
310
314
|
justify-content: center;
|
|
311
315
|
}
|
|
312
316
|
|
|
313
317
|
.ft-icon--file-format {
|
|
314
|
-
font-family: ${
|
|
318
|
+
font-family: ${ir.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
315
319
|
}
|
|
316
320
|
|
|
317
321
|
.ft-icon--material {
|
|
318
|
-
font-family: ${
|
|
322
|
+
font-family: ${ir.materialFontFamily}, "Material Icons", sans-serif;
|
|
319
323
|
}
|
|
320
|
-
`;var
|
|
324
|
+
`;var nr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(nr||(nr={}));var ar=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sr extends Bo{constructor(){super(...arguments),this.resolvedIcon=ao}render(){const t=this.variant&&Object.values(nr).includes(this.variant)?this.variant:nr.fluid_topics,o=t!==nr.material||!!this.value;return ro`
|
|
321
325
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
322
|
-
${
|
|
326
|
+
${tr(this.resolvedIcon)}
|
|
323
327
|
<slot ?hidden=${o}></slot>
|
|
324
328
|
</i>
|
|
325
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case
|
|
329
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case nr.file_format:this.resolvedIcon=null!==(t=er[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case nr.material:this.resolvedIcon=this.value||ao;break;default:this.resolvedIcon=null!==(o=or[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sr.elementDefinitions={},sr.styles=rr,ar([C()],sr.prototype,"variant",void 0),ar([C()],sr.prototype,"value",void 0),ar([$()],sr.prototype,"resolvedIcon",void 0),ar([R("slot")],sr.prototype,"slottedContent",void 0),k("ft-icon")(sr);const lr=wo.extend("--ft-ripple-color","",ko.colorContent),cr={color:lr,backgroundColor:wo.extend("--ft-ripple-background-color","",lr),opacityContentOnSurfacePressed:wo.external(ko.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:wo.external(ko.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:wo.external(ko.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:wo.external(ko.opacityContentOnSurfaceSelected,"Design system"),borderRadius:wo.create("--ft-ripple-border-radius","","SIZE","0px")},pr=wo.extend("--ft-ripple-color","",ko.colorPrimary),hr=pr,fr=wo.extend("--ft-ripple-background-color","",pr),dr=wo.extend("--ft-ripple-color","",ko.colorSecondary),ur=dr,yr=wo.extend("--ft-ripple-background-color","",dr),gr=Nt`
|
|
326
330
|
:host {
|
|
327
331
|
display: contents;
|
|
328
332
|
}
|
|
@@ -335,7 +339,7 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
335
339
|
|
|
336
340
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
337
341
|
overflow: hidden;
|
|
338
|
-
border-radius: ${
|
|
342
|
+
border-radius: ${cr.borderRadius};
|
|
339
343
|
}
|
|
340
344
|
|
|
341
345
|
.ft-ripple .ft-ripple--background,
|
|
@@ -369,27 +373,27 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
369
373
|
}
|
|
370
374
|
|
|
371
375
|
.ft-ripple .ft-ripple--background {
|
|
372
|
-
background-color: ${
|
|
376
|
+
background-color: ${cr.backgroundColor};
|
|
373
377
|
}
|
|
374
378
|
|
|
375
379
|
.ft-ripple .ft-ripple--effect {
|
|
376
|
-
background-color: ${
|
|
380
|
+
background-color: ${cr.color};
|
|
377
381
|
}
|
|
378
382
|
|
|
379
383
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
380
|
-
background-color: ${
|
|
384
|
+
background-color: ${yr};
|
|
381
385
|
}
|
|
382
386
|
|
|
383
387
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
384
|
-
background-color: ${
|
|
388
|
+
background-color: ${ur};
|
|
385
389
|
}
|
|
386
390
|
|
|
387
391
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
388
|
-
background-color: ${
|
|
392
|
+
background-color: ${fr};
|
|
389
393
|
}
|
|
390
394
|
|
|
391
395
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
392
|
-
background-color: ${
|
|
396
|
+
background-color: ${hr};
|
|
393
397
|
}
|
|
394
398
|
|
|
395
399
|
.ft-ripple .ft-ripple--background {
|
|
@@ -419,22 +423,22 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
419
423
|
}
|
|
420
424
|
|
|
421
425
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
422
|
-
opacity: ${
|
|
426
|
+
opacity: ${cr.opacityContentOnSurfaceHover};
|
|
423
427
|
}
|
|
424
428
|
|
|
425
429
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
426
|
-
opacity: ${
|
|
430
|
+
opacity: ${cr.opacityContentOnSurfaceSelected};
|
|
427
431
|
}
|
|
428
432
|
|
|
429
433
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
430
|
-
opacity: ${
|
|
434
|
+
opacity: ${cr.opacityContentOnSurfaceFocused};
|
|
431
435
|
}
|
|
432
436
|
|
|
433
437
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
434
|
-
opacity: ${
|
|
438
|
+
opacity: ${cr.opacityContentOnSurfacePressed};
|
|
435
439
|
transform: translate(-50%, -50%) scale(1);
|
|
436
440
|
}
|
|
437
|
-
`,
|
|
441
|
+
`,br={color:wo.extend("--ft-loader-color","",ko.colorPrimary),size:wo.create("--ft-loader-size","","SIZE","80px")},mr=Nt`
|
|
438
442
|
:host {
|
|
439
443
|
line-height: 0;
|
|
440
444
|
}
|
|
@@ -443,8 +447,8 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
443
447
|
display: inline-block;
|
|
444
448
|
position: relative;
|
|
445
449
|
|
|
446
|
-
width: ${
|
|
447
|
-
height: ${
|
|
450
|
+
width: ${br.size};
|
|
451
|
+
height: ${br.size};
|
|
448
452
|
}
|
|
449
453
|
|
|
450
454
|
.ft-loader div {
|
|
@@ -453,7 +457,7 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
453
457
|
width: 25%;
|
|
454
458
|
height: 25%;
|
|
455
459
|
border-radius: 50%;
|
|
456
|
-
background: ${
|
|
460
|
+
background: ${br.color};
|
|
457
461
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
458
462
|
}
|
|
459
463
|
|
|
@@ -500,10 +504,10 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
500
504
|
transform: translate(0, 0);
|
|
501
505
|
}
|
|
502
506
|
100% {
|
|
503
|
-
transform: translate(calc(0.35 * ${
|
|
507
|
+
transform: translate(calc(0.35 * ${br.size}), 0);
|
|
504
508
|
}
|
|
505
509
|
}
|
|
506
|
-
`,
|
|
510
|
+
`,xr=wo.extend("--ft-button-color","",ko.colorPrimary),vr={backgroundColor:wo.extend("--ft-button-background-color","",ko.colorSurface),borderRadius:wo.extend("--ft-button-border-radius","",ko.borderRadiusL),color:xr,fontSize:wo.extend("--ft-button-font-size","",zi.fontSize),iconSize:wo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:wo.extend("--ft-button-ripple-color","",xr),verticalPadding:wo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:wo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:wo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:wo.external(ko.colorOpacityDisabled,"Design system")},Or=wo.extend("--ft-button-primary-color","",wo.extend("--ft-button-color","",ko.colorOnPrimary)),Nr={backgroundColor:wo.extend("--ft-button-primary-background-color","",wo.extend("--ft-button-background-color","",ko.colorPrimary)),color:Or,rippleColor:wo.extend("--ft-button-primary-ripple-color","",Or)},Sr=wo.extend("--ft-button-dense-border-radius","",wo.extend("--ft-button-border-radius","",ko.borderRadiusM)),wr=wo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Cr=wo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),$r=wo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Er=[Nt`
|
|
507
511
|
:host {
|
|
508
512
|
display: inline-block;
|
|
509
513
|
max-width: 100%;
|
|
@@ -514,7 +518,7 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
514
518
|
box-shadow: 0px 0px 0px transparent;
|
|
515
519
|
border: 0px solid transparent;
|
|
516
520
|
text-shadow: 0px 0px 0px transparent;
|
|
517
|
-
font-size: ${
|
|
521
|
+
font-size: ${vr.fontSize};
|
|
518
522
|
}
|
|
519
523
|
|
|
520
524
|
button:hover {
|
|
@@ -543,31 +547,31 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
543
547
|
border: none;
|
|
544
548
|
pointer-events: auto;
|
|
545
549
|
|
|
546
|
-
--ft-button-internal-line-height: max(calc(${
|
|
547
|
-
--ft-button-internal-color: ${
|
|
548
|
-
${Co(
|
|
549
|
-
${Co(
|
|
550
|
+
--ft-button-internal-line-height: max(calc(${vr.fontSize} + 2px), ${vr.iconSize});
|
|
551
|
+
--ft-button-internal-color: ${vr.color};
|
|
552
|
+
${Co(ir.size,vr.iconSize)};
|
|
553
|
+
${Co(cr.color,vr.rippleColor)};
|
|
550
554
|
|
|
551
|
-
border-radius: ${
|
|
552
|
-
padding: ${
|
|
553
|
-
background-color: ${
|
|
555
|
+
border-radius: ${vr.borderRadius};
|
|
556
|
+
padding: ${vr.verticalPadding} ${vr.horizontalPadding};
|
|
557
|
+
background-color: ${vr.backgroundColor};
|
|
554
558
|
color: var(--ft-button-internal-color);
|
|
555
559
|
-webkit-mask-image: radial-gradient(white, black);
|
|
556
560
|
}
|
|
557
561
|
|
|
558
562
|
.ft-button.ft-button--outlined {
|
|
559
563
|
border: 1px solid var(--ft-button-internal-color);
|
|
560
|
-
padding: calc(${
|
|
564
|
+
padding: calc(${vr.verticalPadding} - 1px) calc(${vr.horizontalPadding} - 1px);
|
|
561
565
|
}
|
|
562
566
|
|
|
563
567
|
.ft-button.ft-button--dense {
|
|
564
|
-
padding: ${
|
|
565
|
-
border-radius: ${
|
|
566
|
-
gap: ${
|
|
568
|
+
padding: ${wr} ${Cr};
|
|
569
|
+
border-radius: ${Sr};
|
|
570
|
+
gap: ${$r};
|
|
567
571
|
}
|
|
568
572
|
|
|
569
573
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
570
|
-
padding: calc(${
|
|
574
|
+
padding: calc(${wr} - 1px) calc(${Cr} - 1px);
|
|
571
575
|
}
|
|
572
576
|
|
|
573
577
|
.ft-button:not([disabled]):hover {
|
|
@@ -575,22 +579,22 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
575
579
|
}
|
|
576
580
|
|
|
577
581
|
.ft-button--round {
|
|
578
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
582
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${vr.verticalPadding});
|
|
579
583
|
}
|
|
580
584
|
|
|
581
585
|
.ft-button--round.ft-button--dense {
|
|
582
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
586
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${wr});
|
|
583
587
|
}
|
|
584
588
|
|
|
585
589
|
.ft-button[disabled] {
|
|
586
590
|
filter: grayscale(1);
|
|
587
|
-
opacity: ${
|
|
591
|
+
opacity: ${vr.opacityDisabled};
|
|
588
592
|
}
|
|
589
593
|
|
|
590
594
|
.ft-button.ft-button--primary {
|
|
591
|
-
background-color: ${
|
|
592
|
-
--ft-button-internal-color: ${
|
|
593
|
-
${Co(
|
|
595
|
+
background-color: ${Nr.backgroundColor};
|
|
596
|
+
--ft-button-internal-color: ${Nr.color};
|
|
597
|
+
${Co(cr.color,Nr.rippleColor)};
|
|
594
598
|
}
|
|
595
599
|
|
|
596
600
|
.ft-button:focus {
|
|
@@ -603,13 +607,13 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
603
607
|
white-space: nowrap;
|
|
604
608
|
text-overflow: ellipsis;
|
|
605
609
|
display: block;
|
|
606
|
-
margin: 0 ${
|
|
607
|
-
${Co(
|
|
608
|
-
${Co(
|
|
610
|
+
margin: 0 ${vr.iconPadding};
|
|
611
|
+
${Co(zi.fontSize,"1em")};
|
|
612
|
+
${Co(zi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
609
613
|
}
|
|
610
614
|
|
|
611
615
|
.ft-button--dense .ft-button--label {
|
|
612
|
-
margin: 0 ${
|
|
616
|
+
margin: 0 ${$r};
|
|
613
617
|
}
|
|
614
618
|
|
|
615
619
|
.ft-button--label[hidden] {
|
|
@@ -622,13 +626,13 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
622
626
|
}
|
|
623
627
|
|
|
624
628
|
.ft-button--label[hidden] + ft-icon {
|
|
625
|
-
margin: 0 calc(${
|
|
626
|
-
padding: 0 ${
|
|
629
|
+
margin: 0 calc(${vr.horizontalPadding} * -1);
|
|
630
|
+
padding: 0 ${vr.verticalPadding};
|
|
627
631
|
}
|
|
628
632
|
|
|
629
633
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
630
|
-
margin: 0 calc(${
|
|
631
|
-
padding: 0 ${
|
|
634
|
+
margin: 0 calc(${Cr} * -1);
|
|
635
|
+
padding: 0 ${wr};
|
|
632
636
|
}
|
|
633
637
|
|
|
634
638
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -637,21 +641,21 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
637
641
|
}
|
|
638
642
|
|
|
639
643
|
ft-loader {
|
|
640
|
-
${Co(
|
|
641
|
-
${Co(
|
|
644
|
+
${Co(br.size,vr.iconSize)};
|
|
645
|
+
${Co(br.color,"var(--ft-button-internal-color)")};
|
|
642
646
|
}
|
|
643
|
-
`,
|
|
647
|
+
`,Do];var Rr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ur extends Bo{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.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!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 ro`
|
|
644
648
|
<style>
|
|
645
649
|
.ft-ripple .ft-ripple--effect {
|
|
646
650
|
left: ${this.originX}px;
|
|
647
651
|
top: ${this.originY}px;
|
|
648
652
|
}
|
|
649
653
|
</style>
|
|
650
|
-
<div class="${
|
|
654
|
+
<div class="${ge(t)}">
|
|
651
655
|
<div class="ft-ripple--background"></div>
|
|
652
656
|
<div class="ft-ripple--effect"></div>
|
|
653
657
|
</div>
|
|
654
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
658
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ur.elementDefinitions={},Ur.styles=gr,Rr([C({type:Boolean})],Ur.prototype,"primary",void 0),Rr([C({type:Boolean})],Ur.prototype,"secondary",void 0),Rr([C({type:Boolean})],Ur.prototype,"unbounded",void 0),Rr([C({type:Boolean})],Ur.prototype,"activated",void 0),Rr([C({type:Boolean})],Ur.prototype,"selected",void 0),Rr([C({type:Boolean})],Ur.prototype,"disabled",void 0),Rr([$()],Ur.prototype,"hovered",void 0),Rr([$()],Ur.prototype,"focused",void 0),Rr([$()],Ur.prototype,"pressed",void 0),Rr([$()],Ur.prototype,"rippling",void 0),Rr([$()],Ur.prototype,"originX",void 0),Rr([$()],Ur.prototype,"originY",void 0),Rr([R(".ft-ripple")],Ur.prototype,"ripple",void 0),Rr([R(".ft-ripple--effect")],Ur.prototype,"rippleEffect",void 0),k("ft-ripple")(Ur);const kr=wo.create("--ft-tooltip-distance","","SIZE","4px"),Ir=wo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Lr=wo.create("--ft-tooltip-background-color","","COLOR","#666666"),Wr=wo.create("--ft-tooltip-z-index","","NUMBER","100"),zr=wo.external(ko.borderRadiusS,"Design system"),Kr=wo.create("--ft-tooltip-max-width","","SIZE","150px"),Fr=Nt`
|
|
655
659
|
.ft-tooltip--container {
|
|
656
660
|
display: block;
|
|
657
661
|
}
|
|
@@ -666,21 +670,21 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
666
670
|
box-sizing: border-box;
|
|
667
671
|
overflow: hidden;
|
|
668
672
|
width: max-content;
|
|
669
|
-
max-width: ${
|
|
673
|
+
max-width: ${Kr};
|
|
670
674
|
text-align: center;
|
|
671
|
-
padding: ${
|
|
672
|
-
z-index: ${
|
|
675
|
+
padding: ${kr};
|
|
676
|
+
z-index: ${Wr};
|
|
673
677
|
}
|
|
674
678
|
|
|
675
679
|
.ft-tooltip--content {
|
|
676
680
|
padding: 4px 8px;
|
|
677
|
-
border-radius: ${
|
|
678
|
-
background-color: ${
|
|
679
|
-
color: ${
|
|
681
|
+
border-radius: ${zr};
|
|
682
|
+
background-color: ${Lr};
|
|
683
|
+
color: ${Ir};
|
|
680
684
|
position: relative;
|
|
681
685
|
word-break: break-word;
|
|
682
686
|
}
|
|
683
|
-
`;var
|
|
687
|
+
`;var Zr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ar extends Bo{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ro`
|
|
684
688
|
<div part="container"
|
|
685
689
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
686
690
|
@mouseenter=${this.onHover}
|
|
@@ -698,23 +702,23 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
698
702
|
</div>
|
|
699
703
|
</div>
|
|
700
704
|
</div>
|
|
701
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${
|
|
705
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Kr})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Ar.elementDefinitions={"ft-typography":Vi},Ar.styles=Fr,Zr([C()],Ar.prototype,"text",void 0),Zr([C({type:Boolean})],Ar.prototype,"manual",void 0),Zr([C({type:Boolean})],Ar.prototype,"inline",void 0),Zr([C({type:Number})],Ar.prototype,"delay",void 0),Zr([C()],Ar.prototype,"position",void 0),Zr([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Ar.prototype,"slotNodes",void 0),Zr([R(".ft-tooltip--container")],Ar.prototype,"container",void 0),Zr([R(".ft-tooltip")],Ar.prototype,"tooltip",void 0),Zr([R(".ft-tooltip--content")],Ar.prototype,"tooltipContent",void 0),Zr([$()],Ar.prototype,"visible",void 0),k("ft-tooltip")(Ar);class Br extends Bo{render(){return ro`
|
|
702
706
|
<div class="ft-loader">
|
|
703
707
|
<div></div>
|
|
704
708
|
<div></div>
|
|
705
709
|
<div></div>
|
|
706
710
|
<div></div>
|
|
707
711
|
</div>
|
|
708
|
-
`}}
|
|
712
|
+
`}}Br.styles=mr,k("ft-loader")(Br);var Mr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Dr extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Qo].form}constructor(...t){super(t),this[Qo]=this.attachInternals(),this[Qo].role=o}setFormValue(t){this[Qo].setFormValue(t)}}}(Bo,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(ro`
|
|
709
713
|
<button part="button"
|
|
710
|
-
class="${
|
|
714
|
+
class="${ge(this.buttonClasses)}"
|
|
711
715
|
aria-label="${this.getLabel()}"
|
|
712
716
|
?disabled=${this.isDisabled()}>
|
|
713
717
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
714
718
|
<ft-typography part="label"
|
|
715
719
|
variant=${this.typographyVariant}
|
|
716
720
|
element="span"
|
|
717
|
-
class="ft-button--label ${
|
|
721
|
+
class="ft-button--label ${ie?"ft-safari-ellipsis-fix":""}"
|
|
718
722
|
?hidden=${!this.hasTextContent()}>
|
|
719
723
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
720
724
|
</ft-typography>
|
|
@@ -728,7 +732,7 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
728
732
|
</ft-tooltip>
|
|
729
733
|
`:t}resolveIcon(){return this.loading?ro`
|
|
730
734
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?ro`
|
|
731
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ao}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
735
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ao}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Dr.elementDefinitions={"ft-ripple":Ur,"ft-tooltip":Ar,"ft-typography":Vi,"ft-icon":sr,"ft-loader":Br},Mr([C({type:String,reflect:!0})],Dr.prototype,"role",void 0),Mr([C()],Dr.prototype,"type",void 0),Mr([C({type:Boolean})],Dr.prototype,"disabled",void 0),Mr([C()],Dr.prototype,"label",void 0),Mr([C()],Dr.prototype,"icon",void 0),Mr([C()],Dr.prototype,"iconVariant",void 0),Mr([C({type:Boolean})],Dr.prototype,"trailingIcon",void 0),Mr([C({type:Boolean})],Dr.prototype,"loading",void 0),Mr([C()],Dr.prototype,"tooltipPosition",void 0),Mr([C({type:Boolean})],Dr.prototype,"hideTooltip",void 0),Mr([C({type:Boolean})],Dr.prototype,"forceTooltip",void 0),Mr([R(".ft-button")],Dr.prototype,"button",void 0),Mr([R(".ft-button--label slot")],Dr.prototype,"slottedContent",void 0);var Pr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Hr extends Dr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Hr.styles=[Po,Er],Pr([C({type:Boolean})],Hr.prototype,"primary",void 0),Pr([C({type:Boolean})],Hr.prototype,"outlined",void 0),Pr([C({type:Boolean})],Hr.prototype,"dense",void 0),Pr([C({type:Boolean})],Hr.prototype,"round",void 0);const jr=[Nt`
|
|
732
736
|
:host {
|
|
733
737
|
display: inline-block;
|
|
734
738
|
max-width: 100%;
|
|
@@ -807,13 +811,13 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
807
811
|
/** Primary styles **/
|
|
808
812
|
|
|
809
813
|
.ft-button--primary {
|
|
810
|
-
${Co(
|
|
814
|
+
${Co(br.color,Uo.primaryIconColor)};
|
|
811
815
|
|
|
812
|
-
${Co(
|
|
813
|
-
${Co(
|
|
814
|
-
${Co(
|
|
815
|
-
${Co(
|
|
816
|
-
${Co(
|
|
816
|
+
${Co(cr.color,Uo.primaryStateLayerColor)};
|
|
817
|
+
${Co(cr.opacityContentOnSurfaceHover,Uo.primaryStateLayerOpacityHover)};
|
|
818
|
+
${Co(cr.opacityContentOnSurfaceFocused,Uo.primaryStateLayerOpacityFocus)};
|
|
819
|
+
${Co(cr.opacityContentOnSurfaceSelected,Uo.primaryStateLayerOpacityActive)};
|
|
820
|
+
${Co(cr.opacityContentOnSurfacePressed,Uo.primaryStateLayerOpacityActive)};
|
|
817
821
|
|
|
818
822
|
background-color: ${Uo.primaryBackgroundColor};
|
|
819
823
|
color: ${Uo.primaryColor};
|
|
@@ -831,13 +835,13 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
831
835
|
/** Secondary styles **/
|
|
832
836
|
|
|
833
837
|
.ft-button--secondary {
|
|
834
|
-
${Co(
|
|
838
|
+
${Co(br.color,Uo.secondaryIconColor)};
|
|
835
839
|
|
|
836
|
-
${Co(
|
|
837
|
-
${Co(
|
|
838
|
-
${Co(
|
|
839
|
-
${Co(
|
|
840
|
-
${Co(
|
|
840
|
+
${Co(cr.color,Uo.secondaryStateLayerColor)};
|
|
841
|
+
${Co(cr.opacityContentOnSurfaceHover,Uo.secondaryStateLayerOpacityHover)};
|
|
842
|
+
${Co(cr.opacityContentOnSurfaceFocused,Uo.secondaryStateLayerOpacityFocus)};
|
|
843
|
+
${Co(cr.opacityContentOnSurfaceSelected,Uo.secondaryStateLayerOpacityActive)};
|
|
844
|
+
${Co(cr.opacityContentOnSurfacePressed,Uo.secondaryStateLayerOpacityActive)};
|
|
841
845
|
|
|
842
846
|
background-color: ${Uo.secondaryBackgroundColor};
|
|
843
847
|
color: ${Uo.secondaryColor};
|
|
@@ -856,13 +860,13 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
856
860
|
/** Tertiary styles **/
|
|
857
861
|
|
|
858
862
|
.ft-button--tertiary {
|
|
859
|
-
${Co(
|
|
863
|
+
${Co(br.color,Uo.tertiaryIconColor)};
|
|
860
864
|
|
|
861
|
-
${Co(
|
|
862
|
-
${Co(
|
|
863
|
-
${Co(
|
|
864
|
-
${Co(
|
|
865
|
-
${Co(
|
|
865
|
+
${Co(cr.color,Uo.tertiaryStateLayerColor)};
|
|
866
|
+
${Co(cr.opacityContentOnSurfaceHover,Uo.tertiaryStateLayerOpacityHover)};
|
|
867
|
+
${Co(cr.opacityContentOnSurfaceFocused,Uo.tertiaryStateLayerOpacityFocus)};
|
|
868
|
+
${Co(cr.opacityContentOnSurfaceSelected,Uo.tertiaryStateLayerOpacityActive)};
|
|
869
|
+
${Co(cr.opacityContentOnSurfacePressed,Uo.tertiaryStateLayerOpacityActive)};
|
|
866
870
|
|
|
867
871
|
background-color: ${Uo.tertiaryBackgroundColor};
|
|
868
872
|
color: ${Uo.tertiaryColor};
|
|
@@ -880,13 +884,13 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
880
884
|
/** Neutral styles **/
|
|
881
885
|
|
|
882
886
|
.ft-button--neutral {
|
|
883
|
-
${Co(
|
|
887
|
+
${Co(br.color,Uo.neutralIconColor)};
|
|
884
888
|
|
|
885
|
-
${Co(
|
|
886
|
-
${Co(
|
|
887
|
-
${Co(
|
|
888
|
-
${Co(
|
|
889
|
-
${Co(
|
|
889
|
+
${Co(cr.backgroundColor,Uo.neutralStateLayerColor)};
|
|
890
|
+
${Co(cr.opacityContentOnSurfaceHover,Uo.neutralStateLayerOpacityHover)};
|
|
891
|
+
${Co(cr.opacityContentOnSurfaceFocused,Uo.neutralStateLayerOpacityFocus)};
|
|
892
|
+
${Co(cr.opacityContentOnSurfaceSelected,Uo.neutralStateLayerOpacityActive)};
|
|
893
|
+
${Co(cr.opacityContentOnSurfacePressed,Uo.neutralStateLayerOpacityActive)};
|
|
890
894
|
|
|
891
895
|
background-color: ${Uo.neutralBackgroundColor};
|
|
892
896
|
color: ${Uo.neutralColor};
|
|
@@ -904,8 +908,8 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
904
908
|
/** Large styles **/
|
|
905
909
|
|
|
906
910
|
.ft-button--large {
|
|
907
|
-
${Co(
|
|
908
|
-
${Co(
|
|
911
|
+
${Co(ir.size,Uo.largeIconSize)};
|
|
912
|
+
${Co(br.size,Uo.largeIconSize)};
|
|
909
913
|
|
|
910
914
|
height: ${Uo.largeHeight};
|
|
911
915
|
padding: 0 ${Uo.largeHorizontalPadding};
|
|
@@ -927,8 +931,8 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
927
931
|
/** Small styles **/
|
|
928
932
|
|
|
929
933
|
.ft-button--small {
|
|
930
|
-
${Co(
|
|
931
|
-
${Co(
|
|
934
|
+
${Co(ir.size,Uo.smallIconSize)};
|
|
935
|
+
${Co(br.size,Uo.smallIconSize)};
|
|
932
936
|
|
|
933
937
|
height: ${Uo.smallHeight};
|
|
934
938
|
padding: 0 ${Uo.smallHorizontalPadding};
|
|
@@ -946,7 +950,7 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
946
950
|
width: ${Uo.smallIconOnlyWidth};
|
|
947
951
|
padding: unset;
|
|
948
952
|
}
|
|
949
|
-
`,
|
|
953
|
+
`,Do];var Tr,_r=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Gr extends Dr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?ke.caption1medium:ke.body2medium}}Gr.styles=[Po,jr],_r([C({type:Boolean})],Gr.prototype,"primary",void 0),_r([C({type:Boolean})],Gr.prototype,"secondary",void 0),_r([C({type:Boolean})],Gr.prototype,"tertiary",void 0),_r([C({type:Boolean})],Gr.prototype,"neutral",void 0),_r([C({type:Boolean})],Gr.prototype,"small",void 0),k("ft-button")(Hr),k("ftds-button")(Gr),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(Tr||(Tr={}));const Vr=Nt`
|
|
950
954
|
.ft-size-watcher--pixel {
|
|
951
955
|
width: 0;
|
|
952
956
|
height: 0;
|
|
@@ -965,34 +969,34 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
965
969
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
966
970
|
width: 100%;
|
|
967
971
|
}
|
|
968
|
-
`;var
|
|
972
|
+
`;var Yr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xr extends CustomEvent{constructor(t,o){super("change",{detail:{size:t,category:o}})}}class Jr extends Bo{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Tr.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new o}render(){return ro`
|
|
969
973
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
970
974
|
<div class="ft-size-watcher--watcher"></div>
|
|
971
975
|
</div>
|
|
972
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=
|
|
976
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Tr.S:this.size<976?this.category=Tr.M:this.size<1024?this.category=Tr.L:this.size<1440?this.category=Tr.XL:this.category=Tr.XXL,this.dispatchEvent(new Xr(this.size,this.category)))}),this.debounceTimeout)}}Jr.elementDefinitions={},Jr.styles=Vr,Yr([C({type:Number})],Jr.prototype,"debounceTimeout",void 0),Yr([C({type:Boolean})],Jr.prototype,"local",void 0),Yr([C({type:Number,reflect:!0})],Jr.prototype,"size",void 0),Yr([C({type:String,reflect:!0})],Jr.prototype,"category",void 0),Yr([R(".ft-size-watcher--watcher")],Jr.prototype,"watcher",void 0),k("ft-size-watcher")(Jr);const qr={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"},Qr={tabulationSize:wo.create("--ft-reader-toc-tabulation-size","","SIZE","16px"),verticalSpacing:wo.create("--ft-reader-toc-vertical-spacing","","SIZE","4px"),textColor:wo.extend("--ft-reader-toc-text-color","",ko.colorOnSurface),hoverColor:wo.extend("--ft-reader-toc-hover-color","",ko.colorPrimary),highlightedTextColor:wo.extend("--ft-reader-toc-highlighted-text-color","",ko.colorPrimary),highlightedFontWeight:wo.create("--ft-reader-toc-highlighted-font-weight","","UNKNOWN","bold"),highlightedBackgroundColor:wo.create("--ft-reader-toc-highlighted-background-color","","COLOR","transparent"),iconFontSize:wo.create("--ft-reader-toc-icon-font-size","","SIZE","16px")},tn=Nt`
|
|
973
977
|
.ft-reader-toc {
|
|
974
|
-
color: ${
|
|
978
|
+
color: ${Qr.textColor};
|
|
975
979
|
}
|
|
976
980
|
|
|
977
981
|
.ft-reader-toc--node-highlighted > .ft-reader-toc--link-container {
|
|
978
|
-
background-color: ${
|
|
979
|
-
color: ${
|
|
980
|
-
${Co(
|
|
982
|
+
background-color: ${Qr.highlightedBackgroundColor};
|
|
983
|
+
color: ${Qr.highlightedTextColor};
|
|
984
|
+
${Co(We.fontWeight,Qr.highlightedFontWeight)}
|
|
981
985
|
}
|
|
982
986
|
|
|
983
987
|
.ft-reader-toc--link-container {
|
|
984
988
|
display: flex;
|
|
985
989
|
gap: 4px;
|
|
986
|
-
padding: ${
|
|
990
|
+
padding: ${Qr.verticalSpacing} 4px; /* left padding is override on inline style */
|
|
987
991
|
align-items: center;
|
|
988
992
|
}
|
|
989
993
|
|
|
990
994
|
.ft-reader-toc--link-container ft-reader-internal-link:hover {
|
|
991
|
-
color: ${
|
|
995
|
+
color: ${Qr.hoverColor};
|
|
992
996
|
}
|
|
993
997
|
|
|
994
998
|
ft-button {
|
|
995
|
-
${Co(
|
|
999
|
+
${Co(vr.iconSize,Qr.iconFontSize)};
|
|
996
1000
|
}
|
|
997
1001
|
|
|
998
1002
|
.ft-reader-toc--toggle-container {
|
|
@@ -1000,11 +1004,11 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
1000
1004
|
}
|
|
1001
1005
|
|
|
1002
1006
|
.ft-reader-toc-mobile .ft-reader-toc--toggle-container {
|
|
1003
|
-
width: calc(${
|
|
1007
|
+
width: calc(${Qr.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
|
|
1004
1008
|
}
|
|
1005
1009
|
|
|
1006
1010
|
.ft-reader-toc-desktop .ft-reader-toc--toggle-container {
|
|
1007
|
-
width: calc(${
|
|
1011
|
+
width: calc(${Qr.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
|
|
1008
1012
|
}
|
|
1009
1013
|
|
|
1010
1014
|
.ft-reader-toc-expanded .ft-reader-toc--toggle-container {
|
|
@@ -1027,7 +1031,7 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
1027
1031
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
1028
1032
|
flex-grow: 1;
|
|
1029
1033
|
}
|
|
1030
|
-
`;var
|
|
1034
|
+
`;var on=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class en extends we{constructor(){super(...arguments),this.expanded=!1,this.iconVariant=nr.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.collapseAllIcon="ICON_COLLAPSE",this.expandAllIcon="ICON_EXPAND",this.autoCollapse=!1,this.scope="pages",this.hideIfEmpty=!1,this.empty=!0,this.labels={},this.labelResolver=new Ho(qr,{}),this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=Tr.M,this.nodesToExpandExist=!1}get isCurrentPageToc(){return"current-page"===this.scope}update(t){var o,e,i;super.update(t),t.has("toc")&&(this.nodesToExpandExist=(null!==(o=this.toc)&&void 0!==o?o:[]).some((t=>t.children.length>0))),t.has("labels")&&(this.labelResolver=new Ho(qr,this.labels)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes(null!==(e=this.highlightedTocIds)&&void 0!==e?e:[])),this.empty=0===(null!==(i=this.toc)&&void 0!==i?i:[]).length}render(){var t;const o={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===Tr.S,"ft-reader-toc-desktop":this.viewportSize!==Tr.S,"ft-reader-toc-loaded":null!=this.currentPage,"ft-reader-toc-expanded":this.expanded};return ro`
|
|
1031
1035
|
${this.hideIfEmpty&&this.empty?ro`
|
|
1032
1036
|
<style>
|
|
1033
1037
|
:host {
|
|
@@ -1035,10 +1039,10 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
1035
1039
|
}
|
|
1036
1040
|
</style>
|
|
1037
1041
|
`:ao}
|
|
1038
|
-
<div class=${
|
|
1042
|
+
<div class=${ge(o)}>
|
|
1039
1043
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
1040
1044
|
${this.renderExpandCollapseAll()}
|
|
1041
|
-
${
|
|
1045
|
+
${ye(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
1042
1046
|
</div>
|
|
1043
1047
|
`}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?ro`
|
|
1044
1048
|
<div part="expand-collapse-all-container"
|
|
@@ -1055,16 +1059,16 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
1055
1059
|
${this.expandCollapseAllHideLabel?"":this.labelResolver.resolve(this.expandAll?"collapseAll":"expandAll")}
|
|
1056
1060
|
</ft-button>
|
|
1057
1061
|
</div>
|
|
1058
|
-
`:ao}renderNode(t){var o,e,i;const r=null===(o=this.highlightedTocIds)||void 0===o?void 0:o.includes(t.tocId),n=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),a=t.children.length>0,s=this.isCurrentPageToc?(null!==(i=null===(e=this.currentPage)||void 0===e?void 0:e.breadcrumb.length)&&void 0!==i?i:0)+1:0,l=t.depth-1-s,c={"padding-left":`calc( ${
|
|
1062
|
+
`:ao}renderNode(t){var o,e,i;const r=null===(o=this.highlightedTocIds)||void 0===o?void 0:o.includes(t.tocId),n=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),a=t.children.length>0,s=this.isCurrentPageToc?(null!==(i=null===(e=this.currentPage)||void 0===e?void 0:e.breadcrumb.length)&&void 0!==i?i:0)+1:0,l=t.depth-1-s,c={"padding-left":`calc( ${Qr.tabulationSize} * ${l} + 4px)`};return ro`
|
|
1059
1063
|
<div class="ft-reader-toc--node ${r?"ft-reader-toc--node-highlighted":""}">
|
|
1060
|
-
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${
|
|
1064
|
+
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${xe(c)}>
|
|
1061
1065
|
${this.nodesToExpandExist&&!this.expanded?ro`
|
|
1062
1066
|
<div class="ft-reader-toc--toggle-container">
|
|
1063
1067
|
${a?ro`
|
|
1064
1068
|
<ft-button
|
|
1065
1069
|
part="expand-collapse-node"
|
|
1066
1070
|
round hideTooltip
|
|
1067
|
-
?dense=${this.viewportSize!==
|
|
1071
|
+
?dense=${this.viewportSize!==Tr.S}
|
|
1068
1072
|
label="${this.labelResolver.resolve(n?"collapse":"expand",t.title)}"
|
|
1069
1073
|
.iconVariant="${this.iconVariant}"
|
|
1070
1074
|
icon="${n?this.collapseIcon||"MINUS":this.expandIcon||"PLUS"}"
|
|
@@ -1087,8 +1091,8 @@ class qi extends ae{constructor(t){if(super(t),this.et=tt,t.type!==re)throw Erro
|
|
|
1087
1091
|
${a?ro`
|
|
1088
1092
|
<div class="ft-reader-toc--node-children" id="${t.tocId}-children"
|
|
1089
1093
|
?hidden=${!n}>
|
|
1090
|
-
${n?
|
|
1094
|
+
${n?ye(t.children,(t=>t.tocId),(t=>this.renderNode(t))):ao}
|
|
1091
1095
|
</div>
|
|
1092
1096
|
`:ao}
|
|
1093
1097
|
</div>
|
|
1094
|
-
`}buildAutomaticallyExpandedNodes(t){var o,e;let i=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let r of t){let t=r;for(;t&&!i.has(t);)i.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(e=null===(o=this.service)||void 0===o?void 0:o.getTocNodeNow(t))||void 0===e?void 0:e.parentTocId}return i}manuallyToggle(t,o){o?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}}
|
|
1098
|
+
`}buildAutomaticallyExpandedNodes(t){var o,e;let i=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let r of t){let t=r;for(;t&&!i.has(t);)i.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(e=null===(o=this.service)||void 0===o?void 0:o.getTocNodeNow(t))||void 0===e?void 0:e.parentTocId}return i}manuallyToggle(t,o){o?(this.manuallyCollapsedNodes.add(t),this.manuallyExpandedNodes.delete(t)):(this.manuallyExpandedNodes.add(t),this.manuallyCollapsedNodes.delete(t)),this.requestUpdate()}onViewportSizeChange(t){this.viewportSize=t.detail.category}toggleExpandCollapseAll(){this.expandAll=!this.expandAll,this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set}getExpandCollapseAllTooltipPosition(){switch(this.expandCollapseAllAlignment){case"right":return"left";case"left":return"right";default:return"bottom"}}}en.elementDefinitions={"ft-button":Hr,"ft-reader-internal-link":qi,"ft-size-watcher":Jr,"ft-typography":Vi},en.styles=tn,on([C({type:Boolean})],en.prototype,"expanded",void 0),on([C()],en.prototype,"iconVariant",void 0),on([C()],en.prototype,"collapseIcon",void 0),on([C()],en.prototype,"expandIcon",void 0),on([C({type:Boolean})],en.prototype,"expandCollapseAll",void 0),on([C({type:Boolean})],en.prototype,"expandCollapseAllHideLabel",void 0),on([C({type:Boolean})],en.prototype,"expandCollapseAllTrailingIcon",void 0),on([C()],en.prototype,"expandCollapseAllAlignment",void 0),on([C({type:Boolean})],en.prototype,"expandCollapseAllHideIcon",void 0),on([C()],en.prototype,"expandCollapseAllIconVariant",void 0),on([C()],en.prototype,"collapseAllIcon",void 0),on([C()],en.prototype,"expandAllIcon",void 0),on([C({type:Boolean})],en.prototype,"autoCollapse",void 0),on([C()],en.prototype,"scope",void 0),on([C({type:Boolean})],en.prototype,"hideIfEmpty",void 0),on([C({type:Boolean,reflect:!0})],en.prototype,"empty",void 0),on([I({})],en.prototype,"labels",void 0),on([qo({selector:(t,o)=>{var e,i,r;return o.isCurrentPageToc?(null===(e=t.paginationConfiguration)||void 0===e?void 0:e.splitCurrentPageToc)?null===(i=t.currentPage)||void 0===i?void 0:i.toc:void 0:(null===(r=t.paginationConfiguration)||void 0===r?void 0:r.splitCurrentPageToc)?t.pagesToc:t.toc}})],en.prototype,"toc",void 0),on([qo({selector:t=>{var o;return null===(o=t.paginationConfiguration)||void 0===o?void 0:o.splitCurrentPageToc}})],en.prototype,"splitToc",void 0),on([qo()],en.prototype,"currentPage",void 0),on([qo({selector:(t,o)=>{var e,i;return(null===(e=t.paginationConfiguration)||void 0===e?void 0:e.splitCurrentPageToc)&&!o.isCurrentPageToc?[null===(i=t.currentPage)||void 0===i?void 0:i.rootTocId]:t.visibleTopics}})],en.prototype,"highlightedTocIds",void 0),on([$({hasChanged:(t,o)=>!U(t,o)})],en.prototype,"automaticallyExpandedNodes",void 0),on([$({hasChanged:(t,o)=>!U(t,o)})],en.prototype,"manuallyExpandedNodes",void 0),on([$({hasChanged:(t,o)=>!U(t,o)})],en.prototype,"manuallyCollapsedNodes",void 0),on([$()],en.prototype,"expandAll",void 0),on([$()],en.prototype,"viewportSize",void 0),k("ft-reader-toc")(en),t.DEFAULT_LABELS=qr,t.FtReaderToc=en,t.FtReaderTocCssVariables=Qr,t.styles=tn}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-toc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Main table of content for integrated reader",
|
|
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": "1.1.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-size-watcher": "1.1.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.2",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "1.1.2",
|
|
24
|
+
"@fluid-topics/ft-size-watcher": "1.1.2",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.1.2",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.2",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
|
|
30
30
|
}
|