@fluid-topics/ft-reader-toc 0.3.52 → 0.3.54
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.min.js +165 -165
- package/package.json +7 -7
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const x=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const b=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(b(Element,"innerHTML"),b(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch($i){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -55,7 +55,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
var R;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:z}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.4.1");const M=window,
|
|
58
|
+
var R;z.finalized=!0,z.elementProperties=new Map,z.elementStyles=[],z.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:z}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.4.1");const M=window,j=M.trustedTypes,A=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,F="?"+U,L=`<${F}>`,B=document,T=(t="")=>B.createComment(t),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,K=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Z=/'/g,V=/"/g,X=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=B.createTreeWalker(B,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=D;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===D?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(X.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=K):void 0!==l[3]&&(s=K):s===K?">"===l[0]?(s=null!=n?n:D,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?K:'"'===l[3]?V:Z):s===V||s===Z?s=K:s===W||s===H?s=D:(s=K,n=void 0);const p=s===K&&t[e+1].startsWith("/>")?" ":"";r+=s===D?i+L:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+U+p):i+U+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(a):a,o]};class et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=tt(t,e);if(this.el=et.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?st:"?"===e[1]?lt:"@"===e[1]?ht:rt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(X.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],T()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[e],T())}}}else if(8===o.nodeType)if(o.data===F)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)a.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var n,r,s,a;if(e===q)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=I(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=it(t,l._$AS(t,e.values),l,o)),e}class ot{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new nt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ct(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),I(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Y&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(B.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new ot(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new et(t)),e}k(t){P(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new nt(this.O(T()),this.O(T()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=it(this,t,e,0),r=!I(t)||t!==this._$AH&&t!==q,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=it(this,o[i+s],e,s),a===q&&(a=this._$AH[s]),r||(r=!I(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=j?j.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends rt{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:Y)===q)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const pt={P:"$lit$",A:U,M:F,C:1,L:tt,R:ot,D:_,V:it,I:nt,H:rt,N:lt,U:ht,B:st,F:ct},dt=M.litHtmlPolyfillSupport;null==dt||dt(et,nt),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
@@ -92,154 +92,154 @@ var ft,ut;class vt extends z{constructor(){super(...arguments),this.renderOption
|
|
|
92
92
|
-webkit-hyphens: auto;
|
|
93
93
|
hyphens: auto
|
|
94
94
|
}
|
|
95
|
-
`;class Ot{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}\\}`,"g"),t))),n}}const St=(t,e)=>{var i;const o=
|
|
95
|
+
`;class Ot{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}\\}`,"g"),t))),n}}const St=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged),kt=(t,e)=>{var i;const o=St(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!p(t,e),(i,n)=>{var r;i.constructor.createProperty(n,{attribute:!1,hasChanged:e});const s=i;s.reduxProperties=s.reduxProperties||new Map;const a=null!==(r=St(t)?o.selector:t)&&void 0!==r?r:t=>t[n];s.reduxProperties.set(n,{selector:a,store:o.store})}};class Ct extends wt{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:Nt(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:Nt(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Nt(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var Et,zt,Rt;const Mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Rt=null===(zt=null===(Et=window.safari)||void 0===Et?void 0:Et.pushNotification)||void 0===zt?void 0:zt.toString())&&void 0!==Rt?Rt:""),jt=1,At=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});
|
|
96
96
|
/**
|
|
97
97
|
* @license
|
|
98
98
|
* Copyright 2017 Google LLC
|
|
99
99
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
100
|
-
*/class
|
|
100
|
+
*/class Ft{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
101
101
|
/**
|
|
102
102
|
* @license
|
|
103
103
|
* Copyright 2020 Google LLC
|
|
104
104
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
105
|
-
*/const{I:
|
|
105
|
+
*/const{I:Lt}=pt,Bt=()=>document.createComment(""),Tt=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Bt(),r),o=n.insertBefore(Bt(),r);i=new Lt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},It=(t,e,i=t)=>(t._$AI(e,i),t),Pt={},_t=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Dt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Wt=Ut(class extends Ft{constructor(t){if(super(t),t.type!==At)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],h=[];let c,p,d=0,f=r.length-1,u=0,v=s.length-1;for(;d<=f&&u<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[u])h[u]=It(r[d],s[u]),d++,u++;else if(l[f]===a[v])h[v]=It(r[f],s[v]),f--,v--;else if(l[d]===a[v])h[v]=It(r[d],s[v]),Tt(t,h[v+1],r[d]),d++,v--;else if(l[f]===a[u])h[u]=It(r[f],s[u]),Tt(t,r[d],r[f]),f--,u++;else if(void 0===c&&(c=Dt(a,u,v),p=Dt(l,d,f)),c.has(l[d]))if(c.has(l[f])){const e=p.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Tt(t,r[d]);It(e,s[u]),h[u]=e}else h[u]=It(i,s[u]),Tt(t,r[d],i),r[e]=null;u++}else _t(r[f]),f--;else _t(r[d]),d++;for(;u<=v;){const e=Tt(t,h[v+1]);It(e,s[u]),h[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&_t(t)}return this.ut=a,((t,e=Pt)=>{t._$AH=e})(t,h),q}}),Ht=Ut(class extends Ft{constructor(t){var e;if(super(t),t.type!==jt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return q}}),Kt=Ut(class extends Ft{constructor(t){var e;if(super(t),t.type!==jt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.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(((e,i)=>{const o=t[i];return null==o?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const o=e[t];null!=o&&(this.vt.add(t),t.includes("-")?i.setProperty(t,o):i[t]=o)}return q}});
|
|
106
106
|
/**
|
|
107
107
|
* @license
|
|
108
108
|
* Copyright 2017 Google LLC
|
|
109
109
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
110
|
-
*/var
|
|
110
|
+
*/var Zt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Vt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Xt extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store)}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new Vt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Zt([n()],e.prototype,"stateManager",void 0),e}(Ct)){}
|
|
111
111
|
/**
|
|
112
112
|
* @license
|
|
113
113
|
* Copyright 2020 Google LLC
|
|
114
114
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
|
-
*/const
|
|
115
|
+
*/const Jt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Jt)return null==t?void 0:t._$litStatic$},Yt=t=>({_$litStatic$:t,r:Jt}),Gt=new Map,Qt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=qt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=Gt.get(t))&&(s.raw=s,Gt.set(t,e=s)),i=a}return t(e,...i)})(J);var te;!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"}(te||(te={}));const ee=xt.extend("--ft-typography-font-family",gt.titleFont),ie=xt.extend("--ft-typography-font-family",gt.contentFont),oe={fontFamily:ie,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ne=xt.extend("--ft-typography-title-font-family",ee),re=xt.extend("--ft-typography-title-font-size",oe.fontSize,"20px"),se=xt.extend("--ft-typography-title-font-weight",oe.fontWeight,"normal"),ae=xt.extend("--ft-typography-title-letter-spacing",oe.letterSpacing,"0.15px"),le=xt.extend("--ft-typography-title-line-height",oe.lineHeight,"1.2"),he=xt.extend("--ft-typography-title-text-transform",oe.textTransform,"inherit"),ce=xt.extend("--ft-typography-title-dense-font-family",ee),pe=xt.extend("--ft-typography-title-dense-font-size",oe.fontSize,"14px"),de=xt.extend("--ft-typography-title-dense-font-weight",oe.fontWeight,"normal"),fe=xt.extend("--ft-typography-title-dense-letter-spacing",oe.letterSpacing,"0.105px"),ue=xt.extend("--ft-typography-title-dense-line-height",oe.lineHeight,"1.7"),ve=xt.extend("--ft-typography-title-dense-text-transform",oe.textTransform,"inherit"),ye=xt.extend("--ft-typography-subtitle1-font-family",ie),xe=xt.extend("--ft-typography-subtitle1-font-size",oe.fontSize,"16px"),be=xt.extend("--ft-typography-subtitle1-font-weight",oe.fontWeight,"600"),ge=xt.extend("--ft-typography-subtitle1-letter-spacing",oe.letterSpacing,"0.144px"),me=xt.extend("--ft-typography-subtitle1-line-height",oe.lineHeight,"1.5"),we=xt.extend("--ft-typography-subtitle1-text-transform",oe.textTransform,"inherit"),$e=xt.extend("--ft-typography-subtitle2-font-family",ie),Oe=xt.extend("--ft-typography-subtitle2-font-size",oe.fontSize,"14px"),Se=xt.extend("--ft-typography-subtitle2-font-weight",oe.fontWeight,"normal"),ke=xt.extend("--ft-typography-subtitle2-letter-spacing",oe.letterSpacing,"0.098px"),Ce=xt.extend("--ft-typography-subtitle2-line-height",oe.lineHeight,"1.7"),Ne=xt.extend("--ft-typography-subtitle2-text-transform",oe.textTransform,"inherit"),Ee=xt.extend("--ft-typography-body1-font-family",ie),ze=xt.extend("--ft-typography-body1-font-size",oe.fontSize,"16px"),Re=xt.extend("--ft-typography-body1-font-weight",oe.fontWeight,"normal"),Me=xt.extend("--ft-typography-body1-letter-spacing",oe.letterSpacing,"0.496px"),je=xt.extend("--ft-typography-body1-line-height",oe.lineHeight,"1.5"),Ae=xt.extend("--ft-typography-body1-text-transform",oe.textTransform,"inherit"),Ue=xt.extend("--ft-typography-body2-font-family",ie),Fe=xt.extend("--ft-typography-body2-font-size",oe.fontSize,"14px"),Le=xt.extend("--ft-typography-body2-font-weight",oe.fontWeight,"normal"),Be=xt.extend("--ft-typography-body2-letter-spacing",oe.letterSpacing,"0.252px"),Te=xt.extend("--ft-typography-body2-line-height",oe.lineHeight,"1.4"),Ie=xt.extend("--ft-typography-body2-text-transform",oe.textTransform,"inherit"),Pe=xt.extend("--ft-typography-caption-font-family",ie),_e=xt.extend("--ft-typography-caption-font-size",oe.fontSize,"12px"),De=xt.extend("--ft-typography-caption-font-weight",oe.fontWeight,"normal"),We=xt.extend("--ft-typography-caption-letter-spacing",oe.letterSpacing,"0.396px"),He=xt.extend("--ft-typography-caption-line-height",oe.lineHeight,"1.33"),Ke=xt.extend("--ft-typography-caption-text-transform",oe.textTransform,"inherit"),Ze=xt.extend("--ft-typography-breadcrumb-font-family",ie),Ve=xt.extend("--ft-typography-breadcrumb-font-size",oe.fontSize,"10px"),Xe=xt.extend("--ft-typography-breadcrumb-font-weight",oe.fontWeight,"normal"),Je=xt.extend("--ft-typography-breadcrumb-letter-spacing",oe.letterSpacing,"0.33px"),qe=xt.extend("--ft-typography-breadcrumb-line-height",oe.lineHeight,"1.6"),Ye=xt.extend("--ft-typography-breadcrumb-text-transform",oe.textTransform,"inherit"),Ge=xt.extend("--ft-typography-overline-font-family",ie),Qe=xt.extend("--ft-typography-overline-font-size",oe.fontSize,"10px"),ti=xt.extend("--ft-typography-overline-font-weight",oe.fontWeight,"normal"),ei=xt.extend("--ft-typography-overline-letter-spacing",oe.letterSpacing,"1.5px"),ii=xt.extend("--ft-typography-overline-line-height",oe.lineHeight,"1.6"),oi=xt.extend("--ft-typography-overline-text-transform",oe.textTransform,"uppercase"),ni={fontFamily:xt.extend("--ft-typography-button-font-family",ie),fontSize:xt.extend("--ft-typography-button-font-size",oe.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",oe.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",oe.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",oe.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",oe.textTransform,"uppercase")},ri=b`
|
|
116
116
|
.ft-typography--title {
|
|
117
|
-
font-family: ${
|
|
118
|
-
font-size: ${
|
|
119
|
-
font-weight: ${
|
|
120
|
-
letter-spacing: ${
|
|
121
|
-
line-height: ${
|
|
122
|
-
text-transform: ${
|
|
123
|
-
}
|
|
124
|
-
`,ri=b`
|
|
125
|
-
.ft-typography--title-dense {
|
|
126
|
-
font-family: ${he};
|
|
127
|
-
font-size: ${ce};
|
|
128
|
-
font-weight: ${pe};
|
|
129
|
-
letter-spacing: ${de};
|
|
130
|
-
line-height: ${fe};
|
|
131
|
-
text-transform: ${ue};
|
|
117
|
+
font-family: ${ne};
|
|
118
|
+
font-size: ${re};
|
|
119
|
+
font-weight: ${se};
|
|
120
|
+
letter-spacing: ${ae};
|
|
121
|
+
line-height: ${le};
|
|
122
|
+
text-transform: ${he};
|
|
132
123
|
}
|
|
133
124
|
`,si=b`
|
|
134
|
-
.ft-typography--
|
|
135
|
-
font-family: ${
|
|
136
|
-
font-size: ${
|
|
137
|
-
font-weight: ${
|
|
138
|
-
letter-spacing: ${
|
|
139
|
-
line-height: ${
|
|
140
|
-
text-transform: ${
|
|
125
|
+
.ft-typography--title-dense {
|
|
126
|
+
font-family: ${ce};
|
|
127
|
+
font-size: ${pe};
|
|
128
|
+
font-weight: ${de};
|
|
129
|
+
letter-spacing: ${fe};
|
|
130
|
+
line-height: ${ue};
|
|
131
|
+
text-transform: ${ve};
|
|
141
132
|
}
|
|
142
133
|
`,ai=b`
|
|
134
|
+
.ft-typography--subtitle1 {
|
|
135
|
+
font-family: ${ye};
|
|
136
|
+
font-size: ${xe};
|
|
137
|
+
font-weight: ${be};
|
|
138
|
+
letter-spacing: ${ge};
|
|
139
|
+
line-height: ${me};
|
|
140
|
+
text-transform: ${we};
|
|
141
|
+
}
|
|
142
|
+
`,li=b`
|
|
143
143
|
.ft-typography--subtitle2 {
|
|
144
|
-
font-family: ${
|
|
145
|
-
font-size: ${
|
|
146
|
-
font-weight: ${
|
|
147
|
-
letter-spacing: ${
|
|
148
|
-
line-height: ${
|
|
149
|
-
text-transform: ${
|
|
144
|
+
font-family: ${$e};
|
|
145
|
+
font-size: ${Oe};
|
|
146
|
+
font-weight: ${Se};
|
|
147
|
+
letter-spacing: ${ke};
|
|
148
|
+
line-height: ${Ce};
|
|
149
|
+
text-transform: ${Ne};
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
`,
|
|
152
|
+
`,hi=b`
|
|
153
153
|
.ft-typography--body1 {
|
|
154
|
-
font-family: ${
|
|
155
|
-
font-size: ${
|
|
156
|
-
font-weight: ${
|
|
157
|
-
letter-spacing: ${
|
|
158
|
-
line-height: ${
|
|
154
|
+
font-family: ${Ee};
|
|
155
|
+
font-size: ${ze};
|
|
156
|
+
font-weight: ${Re};
|
|
157
|
+
letter-spacing: ${Me};
|
|
158
|
+
line-height: ${je};
|
|
159
159
|
text-transform: ${Ae};
|
|
160
160
|
}
|
|
161
|
-
`,hi=b`
|
|
162
|
-
.ft-typography--body2 {
|
|
163
|
-
font-family: ${je};
|
|
164
|
-
font-size: ${Ue};
|
|
165
|
-
font-weight: ${Fe};
|
|
166
|
-
letter-spacing: ${Le};
|
|
167
|
-
line-height: ${Be};
|
|
168
|
-
text-transform: ${Te};
|
|
169
|
-
}
|
|
170
161
|
`,ci=b`
|
|
171
|
-
.ft-typography--
|
|
172
|
-
font-family: ${
|
|
173
|
-
font-size: ${
|
|
174
|
-
font-weight: ${
|
|
175
|
-
letter-spacing: ${
|
|
176
|
-
line-height: ${
|
|
177
|
-
text-transform: ${
|
|
162
|
+
.ft-typography--body2 {
|
|
163
|
+
font-family: ${Ue};
|
|
164
|
+
font-size: ${Fe};
|
|
165
|
+
font-weight: ${Le};
|
|
166
|
+
letter-spacing: ${Be};
|
|
167
|
+
line-height: ${Te};
|
|
168
|
+
text-transform: ${Ie};
|
|
178
169
|
}
|
|
179
170
|
`,pi=b`
|
|
180
|
-
.ft-typography--
|
|
181
|
-
font-family: ${
|
|
182
|
-
font-size: ${
|
|
183
|
-
font-weight: ${
|
|
184
|
-
letter-spacing: ${
|
|
185
|
-
line-height: ${
|
|
186
|
-
text-transform: ${
|
|
171
|
+
.ft-typography--caption {
|
|
172
|
+
font-family: ${Pe};
|
|
173
|
+
font-size: ${_e};
|
|
174
|
+
font-weight: ${De};
|
|
175
|
+
letter-spacing: ${We};
|
|
176
|
+
line-height: ${He};
|
|
177
|
+
text-transform: ${Ke};
|
|
187
178
|
}
|
|
188
179
|
`,di=b`
|
|
189
|
-
.ft-typography--
|
|
190
|
-
font-family: ${
|
|
191
|
-
font-size: ${
|
|
192
|
-
font-weight: ${
|
|
193
|
-
letter-spacing: ${
|
|
194
|
-
line-height: ${
|
|
195
|
-
text-transform: ${
|
|
180
|
+
.ft-typography--breadcrumb {
|
|
181
|
+
font-family: ${Ze};
|
|
182
|
+
font-size: ${Ve};
|
|
183
|
+
font-weight: ${Xe};
|
|
184
|
+
letter-spacing: ${Je};
|
|
185
|
+
line-height: ${qe};
|
|
186
|
+
text-transform: ${Ye};
|
|
196
187
|
}
|
|
197
188
|
`,fi=b`
|
|
198
|
-
.ft-typography--
|
|
199
|
-
font-family: ${
|
|
200
|
-
font-size: ${
|
|
201
|
-
font-weight: ${
|
|
202
|
-
letter-spacing: ${
|
|
203
|
-
line-height: ${
|
|
204
|
-
text-transform: ${oi
|
|
189
|
+
.ft-typography--overline {
|
|
190
|
+
font-family: ${Ge};
|
|
191
|
+
font-size: ${Qe};
|
|
192
|
+
font-weight: ${ti};
|
|
193
|
+
letter-spacing: ${ei};
|
|
194
|
+
line-height: ${ii};
|
|
195
|
+
text-transform: ${oi};
|
|
205
196
|
}
|
|
206
197
|
`,ui=b`
|
|
198
|
+
.ft-typography--button {
|
|
199
|
+
font-family: ${ni.fontFamily};
|
|
200
|
+
font-size: ${ni.fontSize};
|
|
201
|
+
font-weight: ${ni.fontWeight};
|
|
202
|
+
letter-spacing: ${ni.letterSpacing};
|
|
203
|
+
line-height: ${ni.lineHeight};
|
|
204
|
+
text-transform: ${ni.textTransform};
|
|
205
|
+
}
|
|
206
|
+
`,vi=b`
|
|
207
207
|
.ft-typography {
|
|
208
208
|
vertical-align: inherit;
|
|
209
209
|
}
|
|
210
|
-
`;var
|
|
211
|
-
<${
|
|
210
|
+
`;var yi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class xi extends wt{constructor(){super(...arguments),this.variant=te.body1}render(){return this.element?Qt`
|
|
211
|
+
<${Yt(this.element)}
|
|
212
212
|
class="ft-typography ft-typography--${this.variant}">
|
|
213
213
|
<slot></slot>
|
|
214
|
-
</${
|
|
215
|
-
`:
|
|
214
|
+
</${Yt(this.element)}>
|
|
215
|
+
`:Qt`
|
|
216
216
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
217
|
-
`}}
|
|
217
|
+
`}}xi.styles=[ri,si,ai,li,hi,ci,pi,di,fi,ui,vi],yi([o()],xi.prototype,"element",void 0),yi([o()],xi.prototype,"variant",void 0),h("ft-typography")(xi);const bi=xt.extend("--ft-reader-internal-link-outline-color",gt.colorPrimary),gi=b`
|
|
218
218
|
:host {
|
|
219
219
|
display: contents;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
a:focus {
|
|
223
|
-
outline-color: ${
|
|
223
|
+
outline-color: ${bi};
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.ft-reader-link--remove-style {
|
|
227
227
|
text-decoration: none;
|
|
228
228
|
color: inherit;
|
|
229
229
|
}
|
|
230
|
-
`;var
|
|
230
|
+
`;var mi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class wi extends Xt{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Ht({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return J`
|
|
231
231
|
<a class=${e}
|
|
232
232
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
233
233
|
@click=${t=>this.onLinkClick(t)}>
|
|
234
234
|
<slot></slot>
|
|
235
235
|
</a>
|
|
236
|
-
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}
|
|
236
|
+
`}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}wi.styles=gi,mi([o()],wi.prototype,"tocId",void 0),mi([o()],wi.prototype,"section",void 0),mi([o({type:Number})],wi.prototype,"pageNumber",void 0),mi([o({type:Boolean})],wi.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(wi);
|
|
237
237
|
/**
|
|
238
238
|
* @license
|
|
239
239
|
* Copyright 2017 Google LLC
|
|
240
240
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
241
241
|
*/
|
|
242
|
-
class
|
|
242
|
+
class $i extends Ft{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this._t=void 0,this.it=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}$i.directiveName="unsafeHTML",$i.resultType=1;const Oi=Ut($i);var Si,ki;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(Si||(Si={})),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=""}(ki||(ki={})),new Map([...["abw"].map((t=>[t,ki.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,ki.AUDIO])),...["avi"].map((t=>[t,ki.AVI])),...["chm","xhs"].map((t=>[t,ki.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,ki.CODE])),...["csv"].map((t=>[t,ki.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ki.DITA])),...["epub"].map((t=>[t,ki.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ki.EXCEL])),...["flac"].map((t=>[t,ki.FLAC])),...["gif"].map((t=>[t,ki.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ki.GZIP])),...["html","htm","xhtml"].map((t=>[t,ki.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,ki.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ki.JPEG])),...["json"].map((t=>[t,ki.JSON])),...["m4a","m4p"].map((t=>[t,ki.M4A])),...["mov","qt"].map((t=>[t,ki.MOV])),...["mp3"].map((t=>[t,ki.MP3])),...["mp4","m4v"].map((t=>[t,ki.MP4])),...["ogg","oga"].map((t=>[t,ki.OGG])),...["pdf","ps"].map((t=>[t,ki.PDF])),...["png"].map((t=>[t,ki.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ki.POWERPOINT])),...["rar"].map((t=>[t,ki.RAR])),...["stp"].map((t=>[t,ki.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ki.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,ki.VIDEO])),...["wav"].map((t=>[t,ki.WAV])),...["wma"].map((t=>[t,ki.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ki.WORD])),...["xml","xsl","rdf"].map((t=>[t,ki.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ki.YAML])),...["zip"].map((t=>[t,ki.ZIP]))]);const Ci={size:xt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:xt.extend("--ft-icon-fluid-topics-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.extend("--ft-icon-file-format-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:xt.extend("--ft-icon-material-font-family",xt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:xt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ni=b`
|
|
243
243
|
:host, i.ft-icon {
|
|
244
244
|
display: inline-flex;
|
|
245
245
|
align-items: center;
|
|
@@ -248,14 +248,14 @@ class wi extends Ut{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
:host {
|
|
251
|
-
width: ${
|
|
252
|
-
height: ${
|
|
251
|
+
width: ${Ci.size};
|
|
252
|
+
height: ${Ci.size};
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
i.ft-icon {
|
|
256
256
|
width: 100%;
|
|
257
257
|
height: 100%;
|
|
258
|
-
font-size: ${
|
|
258
|
+
font-size: ${Ci.size};
|
|
259
259
|
line-height: 1;
|
|
260
260
|
font-weight: normal;
|
|
261
261
|
text-transform: none;
|
|
@@ -266,32 +266,32 @@ class wi extends Ut{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
|
|
|
266
266
|
text-rendering: auto;
|
|
267
267
|
-webkit-font-smoothing: antialiased;
|
|
268
268
|
-moz-osx-font-smoothing: grayscale;
|
|
269
|
-
vertical-align: ${
|
|
269
|
+
vertical-align: ${Ci.verticalAlign};
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
i.ft-icon.ft-icon--fluid-topics {
|
|
273
|
-
font-family: ${
|
|
273
|
+
font-family: ${Ci.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
274
274
|
|
|
275
275
|
/* Ugly fix because font is broken */
|
|
276
|
-
font-size: calc(0.9 * ${
|
|
276
|
+
font-size: calc(0.9 * ${Ci.size});
|
|
277
277
|
position: relative;
|
|
278
278
|
top: -5%;
|
|
279
279
|
justify-content: center;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
.ft-icon--file-format {
|
|
283
|
-
font-family: ${
|
|
283
|
+
font-family: ${Ci.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
.ft-icon--material {
|
|
287
|
-
font-family: ${
|
|
287
|
+
font-family: ${Ci.materialFontFamily}, "Material Icons", sans-serif;
|
|
288
288
|
}
|
|
289
|
-
`;var
|
|
289
|
+
`;var Ei;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ei||(Ei={}));var zi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ri extends wt{constructor(){super(...arguments),this.variant=Ei.fluid_topics,this.resolvedIcon=Y}render(){const t="material"!==this.variant||this.value;return J`
|
|
290
290
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
291
|
-
${
|
|
291
|
+
${Oi(this.resolvedIcon)}
|
|
292
292
|
<slot ?hidden=${t}></slot>
|
|
293
293
|
</i>
|
|
294
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
294
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Ei.file_format:this.resolvedIcon=null!==(t=ki[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ei.fluid_topics:this.resolvedIcon=null!==(e=Si[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Y}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=Ni,zi([o()],Ri.prototype,"variant",void 0),zi([o()],Ri.prototype,"value",void 0),zi([n()],Ri.prototype,"resolvedIcon",void 0),zi([s("slot")],Ri.prototype,"slottedContent",void 0),h("ft-icon")(Ri);const Mi=xt.extend("--ft-ripple-color",gt.colorContent),ji={color:Mi,backgroundColor:xt.extend("--ft-ripple-background-color",Mi),opacityContentOnSurfacePressed:xt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(gt.opacityContentOnSurfaceSelected,"Design system")},Ai=xt.extend("--ft-ripple-color",gt.colorPrimary),Ui=Ai,Fi=xt.extend("--ft-ripple-background-color",Ai),Li=xt.extend("--ft-ripple-color",gt.colorSecondary),Bi=Li,Ti=xt.extend("--ft-ripple-background-color",Li),Ii=b`
|
|
295
295
|
:host {
|
|
296
296
|
display: contents;
|
|
297
297
|
}
|
|
@@ -313,27 +313,27 @@ class wi extends Ut{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.ft-ripple .ft-ripple--background {
|
|
316
|
-
background-color: ${
|
|
316
|
+
background-color: ${ji.backgroundColor};
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.ft-ripple .ft-ripple--effect {
|
|
320
|
-
background-color: ${
|
|
320
|
+
background-color: ${ji.color};
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
324
|
-
background-color: ${
|
|
324
|
+
background-color: ${Ti};
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
328
|
-
background-color: ${
|
|
328
|
+
background-color: ${Bi};
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
332
|
-
background-color: ${
|
|
332
|
+
background-color: ${Fi};
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
336
|
-
background-color: ${
|
|
336
|
+
background-color: ${Ui};
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
.ft-ripple .ft-ripple--background {
|
|
@@ -365,22 +365,22 @@ class wi extends Ut{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
|
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
368
|
-
opacity: ${
|
|
368
|
+
opacity: ${ji.opacityContentOnSurfaceHover};
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
372
|
-
opacity: ${
|
|
372
|
+
opacity: ${ji.opacityContentOnSurfaceSelected};
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
376
|
-
opacity: ${
|
|
376
|
+
opacity: ${ji.opacityContentOnSurfaceFocused};
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
380
|
-
opacity: ${
|
|
380
|
+
opacity: ${ji.opacityContentOnSurfacePressed};
|
|
381
381
|
transform: translate(-50%, -50%) scale(1);
|
|
382
382
|
}
|
|
383
|
-
`;var
|
|
383
|
+
`;var Pi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _i extends wt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return J`
|
|
384
384
|
<style>
|
|
385
385
|
.ft-ripple .ft-ripple--effect,
|
|
386
386
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -393,11 +393,11 @@ class wi extends Ut{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
|
|
|
393
393
|
top: ${this.originY}px;
|
|
394
394
|
}
|
|
395
395
|
</style>
|
|
396
|
-
<div class="${
|
|
396
|
+
<div class="${Ht(t)}">
|
|
397
397
|
<div class="ft-ripple--background"></div>
|
|
398
398
|
<div class="ft-ripple--effect"></div>
|
|
399
399
|
</div>
|
|
400
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
400
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}_i.elementDefinitions={},_i.styles=Ii,Pi([o({type:Boolean})],_i.prototype,"primary",void 0),Pi([o({type:Boolean})],_i.prototype,"secondary",void 0),Pi([o({type:Boolean})],_i.prototype,"unbounded",void 0),Pi([o({type:Boolean})],_i.prototype,"activated",void 0),Pi([o({type:Boolean})],_i.prototype,"selected",void 0),Pi([o({type:Boolean})],_i.prototype,"disabled",void 0),Pi([n()],_i.prototype,"hovered",void 0),Pi([n()],_i.prototype,"focused",void 0),Pi([n()],_i.prototype,"pressed",void 0),Pi([n()],_i.prototype,"rippling",void 0),Pi([n()],_i.prototype,"rippleSize",void 0),Pi([n()],_i.prototype,"originX",void 0),Pi([n()],_i.prototype,"originY",void 0),Pi([s(".ft-ripple")],_i.prototype,"ripple",void 0),Pi([s(".ft-ripple--effect")],_i.prototype,"rippleEffect",void 0),h("ft-ripple")(_i);const Di=xt.create("--ft-tooltip-distance","SIZE","4px"),Wi=xt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Hi=xt.create("--ft-tooltip-background-color","COLOR","#666666"),Ki=xt.create("--ft-tooltip-z-index","NUMBER","1"),Zi=xt.external(gt.borderRadiusS,"Design system"),Vi=xt.create("--ft-tooltip-max-width","SIZE","150px"),Xi=b`
|
|
401
401
|
.ft-tooltip--container {
|
|
402
402
|
display: block;
|
|
403
403
|
position: relative;
|
|
@@ -413,23 +413,23 @@ class wi extends Ut{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
|
|
|
413
413
|
box-sizing: border-box;
|
|
414
414
|
overflow: hidden;
|
|
415
415
|
width: max-content;
|
|
416
|
-
max-width: ${
|
|
416
|
+
max-width: ${Vi};
|
|
417
417
|
text-align: center;
|
|
418
|
-
padding: ${
|
|
419
|
-
z-index: ${
|
|
418
|
+
padding: ${Di};
|
|
419
|
+
z-index: ${Ki};
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
.ft-tooltip--content {
|
|
423
423
|
padding: 4px 8px;
|
|
424
|
-
border-radius: ${
|
|
425
|
-
background-color: ${
|
|
426
|
-
color: ${
|
|
424
|
+
border-radius: ${Zi};
|
|
425
|
+
background-color: ${Hi};
|
|
426
|
+
color: ${Wi};
|
|
427
427
|
top: -500px;
|
|
428
428
|
left: -500px;
|
|
429
429
|
position: relative;
|
|
430
430
|
word-break: break-word;
|
|
431
431
|
}
|
|
432
|
-
`;var
|
|
432
|
+
`;var Ji=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class qi extends wt{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 e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return J`
|
|
433
433
|
<div part="container"
|
|
434
434
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
435
435
|
@mouseenter=${this.onHover}
|
|
@@ -447,13 +447,13 @@ class wi extends Ut{constructor(t){if(super(t),this.it=Y,t.type!==At)throw Error
|
|
|
447
447
|
</div>
|
|
448
448
|
</div>
|
|
449
449
|
</div>
|
|
450
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${
|
|
450
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${Vi})`}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())}}qi.elementDefinitions={"ft-typography":xi},qi.styles=Xi,Ji([o()],qi.prototype,"text",void 0),Ji([o({type:Boolean})],qi.prototype,"manual",void 0),Ji([o({type:Boolean})],qi.prototype,"inline",void 0),Ji([o({type:Number})],qi.prototype,"delay",void 0),Ji([o()],qi.prototype,"position",void 0),Ji([
|
|
451
451
|
/**
|
|
452
452
|
* @license
|
|
453
453
|
* Copyright 2017 Google LLC
|
|
454
454
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
455
455
|
*/
|
|
456
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],
|
|
456
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],qi.prototype,"slotNodes",void 0),Ji([s(".ft-tooltip--container")],qi.prototype,"container",void 0),Ji([s("slot")],qi.prototype,"target",void 0),Ji([s(".ft-tooltip")],qi.prototype,"tooltip",void 0),Ji([s(".ft-tooltip--content")],qi.prototype,"tooltipContent",void 0),Ji([n()],qi.prototype,"visible",void 0),h("ft-tooltip")(qi);const Yi={color:xt.extend("--ft-loader-color",gt.colorPrimary),size:xt.create("--ft-loader-size","SIZE","80px")},Gi=b`
|
|
457
457
|
:host {
|
|
458
458
|
line-height: 0;
|
|
459
459
|
}
|
|
@@ -462,8 +462,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
462
462
|
display: inline-block;
|
|
463
463
|
position: relative;
|
|
464
464
|
|
|
465
|
-
width: ${
|
|
466
|
-
height: ${
|
|
465
|
+
width: ${Yi.size};
|
|
466
|
+
height: ${Yi.size};
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.ft-loader div {
|
|
@@ -472,7 +472,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
472
472
|
width: 25%;
|
|
473
473
|
height: 25%;
|
|
474
474
|
border-radius: 50%;
|
|
475
|
-
background: ${
|
|
475
|
+
background: ${Yi.color};
|
|
476
476
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
477
477
|
}
|
|
478
478
|
|
|
@@ -519,17 +519,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
519
519
|
transform: translate(0, 0);
|
|
520
520
|
}
|
|
521
521
|
100% {
|
|
522
|
-
transform: translate(calc(0.35 * ${
|
|
522
|
+
transform: translate(calc(0.35 * ${Yi.size}), 0);
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
`;class
|
|
525
|
+
`;class Qi extends wt{render(){return J`
|
|
526
526
|
<div class="ft-loader">
|
|
527
527
|
<div></div>
|
|
528
528
|
<div></div>
|
|
529
529
|
<div></div>
|
|
530
530
|
<div></div>
|
|
531
531
|
</div>
|
|
532
|
-
`}}
|
|
532
|
+
`}}Qi.styles=Gi,h("ft-loader")(Qi);const to=xt.extend("--ft-button-color",gt.colorPrimary),eo={backgroundColor:xt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",gt.borderRadiusL),color:to,fontSize:xt.extend("--ft-button-font-size",ni.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",to),opacityDisabled:xt.external(gt.colorOpacityDisabled,"Design system")},io=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",gt.colorOnPrimary)),oo={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",gt.colorPrimary)),color:io,rippleColor:xt.extend("--ft-button-primary-ripple-color",io)},no=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",gt.borderRadiusM)),ro=[$t,b`
|
|
533
533
|
:host {
|
|
534
534
|
display: inline-block;
|
|
535
535
|
max-width: 100%;
|
|
@@ -540,7 +540,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
540
540
|
box-shadow: 0px 0px 0px transparent;
|
|
541
541
|
border: 0px solid transparent;
|
|
542
542
|
text-shadow: 0px 0px 0px transparent;
|
|
543
|
-
font-size: ${
|
|
543
|
+
font-size: ${eo.fontSize};
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
button:hover {
|
|
@@ -569,17 +569,17 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
569
569
|
border: none;
|
|
570
570
|
pointer-events: auto;
|
|
571
571
|
|
|
572
|
-
--ft-button-internal-line-height: calc(${
|
|
573
|
-
--ft-button-internal-color: ${
|
|
574
|
-
${bt(
|
|
572
|
+
--ft-button-internal-line-height: calc(${eo.fontSize} + 2px);
|
|
573
|
+
--ft-button-internal-color: ${eo.color};
|
|
574
|
+
${bt(Ci.size,eo.iconSize)};
|
|
575
575
|
--ft-button-internal-vertical-padding: 6px;
|
|
576
576
|
--ft-button-internal-horizontal-padding: 8px;
|
|
577
|
-
${bt(
|
|
578
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
577
|
+
${bt(ji.color,eo.rippleColor)};
|
|
578
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${eo.iconSize});
|
|
579
579
|
|
|
580
|
-
border-radius: ${
|
|
580
|
+
border-radius: ${eo.borderRadius};
|
|
581
581
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
582
|
-
background-color: ${
|
|
582
|
+
background-color: ${eo.backgroundColor};
|
|
583
583
|
color: var(--ft-button-internal-color);
|
|
584
584
|
-webkit-mask-image: radial-gradient(white, black);
|
|
585
585
|
}
|
|
@@ -591,7 +591,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
591
591
|
.ft-button--dense {
|
|
592
592
|
--ft-button-internal-vertical-padding: 2px;
|
|
593
593
|
--ft-button-internal-horizontal-padding: 4px;
|
|
594
|
-
border-radius: ${
|
|
594
|
+
border-radius: ${no};
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
.ft-button--round {
|
|
@@ -600,13 +600,13 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
600
600
|
|
|
601
601
|
.ft-button[disabled] {
|
|
602
602
|
filter: grayscale(1);
|
|
603
|
-
opacity: ${
|
|
603
|
+
opacity: ${eo.opacityDisabled};
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
.ft-button.ft-button--primary {
|
|
607
|
-
background-color: ${
|
|
608
|
-
--ft-button-internal-color: ${
|
|
609
|
-
${bt(
|
|
607
|
+
background-color: ${oo.backgroundColor};
|
|
608
|
+
--ft-button-internal-color: ${oo.color};
|
|
609
|
+
${bt(ji.color,oo.rippleColor)};
|
|
610
610
|
}
|
|
611
611
|
|
|
612
612
|
.ft-button.ft-button--outlined {
|
|
@@ -625,8 +625,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
625
625
|
text-overflow: ellipsis;
|
|
626
626
|
display: block;
|
|
627
627
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
628
|
-
${bt(
|
|
629
|
-
${bt(
|
|
628
|
+
${bt(ni.fontSize,"1em")};
|
|
629
|
+
${bt(ni.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -659,12 +659,12 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
659
659
|
}
|
|
660
660
|
|
|
661
661
|
ft-loader {
|
|
662
|
-
${bt(
|
|
663
|
-
${bt(
|
|
662
|
+
${bt(Yi.size,eo.iconSize)};
|
|
663
|
+
${bt(Yi.color,"var(--ft-button-internal-color)")};
|
|
664
664
|
}
|
|
665
|
-
`];var
|
|
665
|
+
`];var so,ao=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class lo extends wt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ei.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":Mt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
|
|
666
666
|
<button part="button"
|
|
667
|
-
class="${
|
|
667
|
+
class="${Ht(t)}"
|
|
668
668
|
aria-label="${this.getLabel()}"
|
|
669
669
|
?disabled=${this.isDisabled()}>
|
|
670
670
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -685,7 +685,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
685
685
|
</ft-tooltip>
|
|
686
686
|
`:t}resolveIcon(){return this.loading?J`
|
|
687
687
|
<ft-loader></ft-loader> `:this.icon?J`
|
|
688
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}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}}
|
|
688
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Y}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}}lo.elementDefinitions={"ft-ripple":_i,"ft-tooltip":qi,"ft-typography":xi,"ft-icon":Ri,"ft-loader":Qi},lo.styles=ro,ao([o({type:Boolean})],lo.prototype,"primary",void 0),ao([o({type:Boolean})],lo.prototype,"outlined",void 0),ao([o({type:Boolean})],lo.prototype,"disabled",void 0),ao([o({type:Boolean})],lo.prototype,"dense",void 0),ao([o({type:Boolean})],lo.prototype,"round",void 0),ao([o({type:String})],lo.prototype,"label",void 0),ao([o({type:String})],lo.prototype,"icon",void 0),ao([o({type:String})],lo.prototype,"iconVariant",void 0),ao([o({type:Boolean})],lo.prototype,"trailingIcon",void 0),ao([o({type:Boolean})],lo.prototype,"loading",void 0),ao([o({type:String})],lo.prototype,"tooltipPosition",void 0),ao([o({type:Boolean})],lo.prototype,"hideTooltip",void 0),ao([o({type:Boolean})],lo.prototype,"forceTooltip",void 0),ao([s(".ft-button")],lo.prototype,"button",void 0),ao([s(".ft-button--label slot")],lo.prototype,"slottedContent",void 0),h("ft-button")(lo),function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(so||(so={}));const ho=b`
|
|
689
689
|
.ft-size-watcher--pixel {
|
|
690
690
|
width: 0;
|
|
691
691
|
height: 0;
|
|
@@ -704,34 +704,34 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
704
704
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
705
705
|
width: 100%;
|
|
706
706
|
}
|
|
707
|
-
`;var
|
|
707
|
+
`;var co=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class po extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class fo extends wt{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=so.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e}render(){return J`
|
|
708
708
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
709
709
|
<div class="ft-size-watcher--watcher"></div>
|
|
710
710
|
</div>
|
|
711
|
-
`}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=
|
|
711
|
+
`}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=so.S:this.size<976?this.category=so.M:this.size<1024?this.category=so.L:this.size<1440?this.category=so.XL:this.category=so.XXL,this.dispatchEvent(new po(this.size,this.category)))}),this.debounceTimeout)}}fo.elementDefinitions={},fo.styles=ho,co([o({type:Number})],fo.prototype,"debounceTimeout",void 0),co([o({type:Boolean})],fo.prototype,"local",void 0),co([o({type:Number,reflect:!0})],fo.prototype,"size",void 0),co([o({type:String,reflect:!0})],fo.prototype,"category",void 0),co([s(".ft-size-watcher--watcher")],fo.prototype,"watcher",void 0),h("ft-size-watcher")(fo);const uo={expand:"Expand {0}",collapse:"Collapse {0}",expandAll:"Expand all",expandAllLong:"Expand all table of contents",collapseAll:"Collapse all",collapseAllLong:"Collapse all table of contents"},vo={tabulationSize:xt.create("--ft-reader-toc-tabulation-size","SIZE","16px"),verticalSpacing:xt.create("--ft-reader-toc-vertical-spacing","SIZE","4px"),textColor:xt.extend("--ft-reader-toc-text-color",gt.colorOnSurface),hoverColor:xt.extend("--ft-reader-toc-hover-color",gt.colorPrimary),highlightedTextColor:xt.extend("--ft-reader-toc-highlighted-text-color",gt.colorPrimary),highlightedFontWeight:xt.create("--ft-reader-toc-highlighted-font-weight","UNKNOWN","bold"),highlightedBackgroundColor:xt.create("--ft-reader-toc-highlighted-background-color","COLOR","transparent"),iconFontSize:xt.create("--ft-reader-toc-icon-font-size","SIZE","16px")},yo=b`
|
|
712
712
|
.ft-reader-toc {
|
|
713
|
-
color: ${
|
|
713
|
+
color: ${vo.textColor};
|
|
714
714
|
}
|
|
715
715
|
|
|
716
716
|
.ft-reader-toc--node-highlighted > .ft-reader-toc--link-container {
|
|
717
|
-
background-color: ${
|
|
718
|
-
color: ${
|
|
719
|
-
${bt(
|
|
717
|
+
background-color: ${vo.highlightedBackgroundColor};
|
|
718
|
+
color: ${vo.highlightedTextColor};
|
|
719
|
+
${bt(oe.fontWeight,vo.highlightedFontWeight)}
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
.ft-reader-toc--link-container {
|
|
723
723
|
display: flex;
|
|
724
724
|
gap: 4px;
|
|
725
|
-
padding: ${
|
|
725
|
+
padding: ${vo.verticalSpacing} 4px; /* left padding is override on inline style */
|
|
726
726
|
align-items: center;
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
.ft-reader-toc--link-container ft-reader-internal-link:hover {
|
|
730
|
-
color: ${
|
|
730
|
+
color: ${vo.hoverColor};
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
ft-button {
|
|
734
|
-
${bt(
|
|
734
|
+
${bt(eo.iconSize,vo.iconFontSize)};
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
.ft-reader-toc--toggle-container {
|
|
@@ -739,11 +739,11 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
.ft-reader-toc-mobile .ft-reader-toc--toggle-container {
|
|
742
|
-
width: calc(${
|
|
742
|
+
width: calc(${vo.iconFontSize} + 12px); /*--ft-button-internal-horizontal-padding: 8px; in ft-button NOT dense*/
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
.ft-reader-toc-desktop .ft-reader-toc--toggle-container {
|
|
746
|
-
width: calc(${
|
|
746
|
+
width: calc(${vo.iconFontSize} + 4px); /*--ft-button-internal-horizontal-padding: 4px; in ft-button dense*/
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
.ft-reader-toc-expanded .ft-reader-toc--toggle-container {
|
|
@@ -766,7 +766,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
766
766
|
.ft-reader-toc-expand-collapse-all-justify ft-button {
|
|
767
767
|
flex-grow: 1;
|
|
768
768
|
}
|
|
769
|
-
`;var
|
|
769
|
+
`;var xo=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class bo extends Xt{constructor(){super(...arguments),this.expanded=!1,this.iconVariant=Ei.fluid_topics,this.collapseIcon="MINUS",this.expandIcon="PLUS",this.expandCollapseAll=!1,this.expandCollapseAllHideLabel=!1,this.expandCollapseAllTrailingIcon=!1,this.expandCollapseAllAlignment="left",this.expandCollapseAllHideIcon=!1,this.expandCollapseAllIconVariant=Ei.fluid_topics,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 Ot(uo,{}),this.automaticallyExpandedNodes=new Set,this.manuallyExpandedNodes=new Set,this.manuallyCollapsedNodes=new Set,this.expandAll=!1,this.viewportSize=so.M,this.nodesToExpandExist=!1}get isCurrentPageToc(){return"current-page"===this.scope}update(t){var e,i,o;super.update(t),t.has("toc")&&(this.nodesToExpandExist=(null!==(e=this.toc)&&void 0!==e?e:[]).some((t=>t.children.length>0))),t.has("labels")&&(this.labelResolver=new Ot(uo,this.labels)),t.has("highlightedTocIds")&&!this.expanded&&(this.automaticallyExpandedNodes=this.buildAutomaticallyExpandedNodes(null!==(i=this.highlightedTocIds)&&void 0!==i?i:[])),this.empty=0===(null!==(o=this.toc)&&void 0!==o?o:[]).length}render(){var t;const e={"ft-reader-toc":!0,"ft-reader-toc-mobile":this.viewportSize===so.S,"ft-reader-toc-desktop":this.viewportSize!==so.S,"ft-reader-toc-loaded":null!=this.currentPage,"ft-reader-toc-expanded":this.expanded};return J`
|
|
770
770
|
${this.hideIfEmpty&&this.empty?J`
|
|
771
771
|
<style>
|
|
772
772
|
:host {
|
|
@@ -774,10 +774,10 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
774
774
|
}
|
|
775
775
|
</style>
|
|
776
776
|
`:Y}
|
|
777
|
-
<div class=${
|
|
777
|
+
<div class=${Ht(e)}>
|
|
778
778
|
<ft-size-watcher @change=${this.onViewportSizeChange}></ft-size-watcher>
|
|
779
779
|
${this.renderExpandCollapseAll()}
|
|
780
|
-
${
|
|
780
|
+
${Wt(null!==(t=this.toc)&&void 0!==t?t:[],(t=>t.tocId),(t=>this.renderNode(t)))}
|
|
781
781
|
</div>
|
|
782
782
|
`}renderExpandCollapseAll(){return this.expandCollapseAll&&!this.expanded&&this.nodesToExpandExist?J`
|
|
783
783
|
<div part="expand-collapse-all-container"
|
|
@@ -794,16 +794,16 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
794
794
|
${this.expandCollapseAllHideLabel?"":this.labelResolver.resolve(this.expandAll?"collapseAll":"expandAll")}
|
|
795
795
|
</ft-button>
|
|
796
796
|
</div>
|
|
797
|
-
`:Y}renderNode(t){var e,i,o;const n=null===(e=this.highlightedTocIds)||void 0===e?void 0:e.includes(t.tocId),r=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),s=t.children.length>0,a=this.isCurrentPageToc?(null!==(o=null===(i=this.currentPage)||void 0===i?void 0:i.breadcrumb.length)&&void 0!==o?o:0)+1:0,l=t.depth-1-a,h={"padding-left":`calc( ${
|
|
797
|
+
`:Y}renderNode(t){var e,i,o;const n=null===(e=this.highlightedTocIds)||void 0===e?void 0:e.includes(t.tocId),r=this.expanded||this.manuallyExpandedNodes.has(t.tocId)||(this.expandAll||this.automaticallyExpandedNodes.has(t.tocId))&&!this.manuallyCollapsedNodes.has(t.tocId),s=t.children.length>0,a=this.isCurrentPageToc?(null!==(o=null===(i=this.currentPage)||void 0===i?void 0:i.breadcrumb.length)&&void 0!==o?o:0)+1:0,l=t.depth-1-a,h={"padding-left":`calc( ${vo.tabulationSize} * ${l} + 4px)`};return J`
|
|
798
798
|
<div class="ft-reader-toc--node ${n?"ft-reader-toc--node-highlighted":""}">
|
|
799
|
-
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${
|
|
799
|
+
<div class="ft-reader-toc--link-container" data-depth="${t.depth}" style=${Kt(h)}>
|
|
800
800
|
${this.nodesToExpandExist&&!this.expanded?J`
|
|
801
801
|
<div class="ft-reader-toc--toggle-container">
|
|
802
802
|
${s?J`
|
|
803
803
|
<ft-button
|
|
804
804
|
part="expand-collapse-node"
|
|
805
805
|
round hideTooltip
|
|
806
|
-
?dense=${this.viewportSize!==
|
|
806
|
+
?dense=${this.viewportSize!==so.S}
|
|
807
807
|
label="${this.labelResolver.resolve(r?"collapse":"expand",t.title)}"
|
|
808
808
|
iconVariant="${this.iconVariant}"
|
|
809
809
|
icon="${r?this.collapseIcon||"MINUS":this.expandIcon||"PLUS"}"
|
|
@@ -826,8 +826,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
826
826
|
${s?J`
|
|
827
827
|
<div class="ft-reader-toc--node-children" id="${t.tocId}-children"
|
|
828
828
|
?hidden=${!r}>
|
|
829
|
-
${r?
|
|
829
|
+
${r?Wt(t.children,(t=>t.tocId),(t=>this.renderNode(t))):Y}
|
|
830
830
|
</div>
|
|
831
831
|
`:Y}
|
|
832
832
|
</div>
|
|
833
|
-
`}buildAutomaticallyExpandedNodes(t){var e,i;let o=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let n of t){let t=n;for(;t&&!o.has(t);)o.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(i=null===(e=this.service)||void 0===e?void 0:e.getTocNodeNow(t))||void 0===i?void 0:i.parentTocId}return o}manuallyToggle(t,e){e?(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"}}}
|
|
833
|
+
`}buildAutomaticallyExpandedNodes(t){var e,i;let o=new Set(this.autoCollapse?[]:this.automaticallyExpandedNodes);for(let n of t){let t=n;for(;t&&!o.has(t);)o.add(t),this.manuallyCollapsedNodes.delete(t),t=null===(i=null===(e=this.service)||void 0===e?void 0:e.getTocNodeNow(t))||void 0===i?void 0:i.parentTocId}return o}manuallyToggle(t,e){e?(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"}}}bo.elementDefinitions={"ft-button":lo,"ft-reader-internal-link":wi,"ft-size-watcher":fo,"ft-typography":xi},bo.styles=yo,xo([o({type:Boolean})],bo.prototype,"expanded",void 0),xo([o()],bo.prototype,"iconVariant",void 0),xo([o()],bo.prototype,"collapseIcon",void 0),xo([o()],bo.prototype,"expandIcon",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAll",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAllHideLabel",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAllTrailingIcon",void 0),xo([o()],bo.prototype,"expandCollapseAllAlignment",void 0),xo([o({type:Boolean})],bo.prototype,"expandCollapseAllHideIcon",void 0),xo([o()],bo.prototype,"expandCollapseAllIconVariant",void 0),xo([o()],bo.prototype,"collapseAllIcon",void 0),xo([o()],bo.prototype,"expandAllIcon",void 0),xo([o({type:Boolean})],bo.prototype,"autoCollapse",void 0),xo([o()],bo.prototype,"scope",void 0),xo([o({type:Boolean})],bo.prototype,"hideIfEmpty",void 0),xo([o({type:Boolean,reflect:!0})],bo.prototype,"empty",void 0),xo([c({})],bo.prototype,"labels",void 0),xo([kt(((t,e)=>{var i,o,n;return e.isCurrentPageToc?(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)?null===(o=t.currentPage)||void 0===o?void 0:o.toc:void 0:(null===(n=t.paginationConfiguration)||void 0===n?void 0:n.splitCurrentPageToc)?t.pagesToc:t.toc}))],bo.prototype,"toc",void 0),xo([kt((t=>{var e;return null===(e=t.paginationConfiguration)||void 0===e?void 0:e.splitCurrentPageToc}))],bo.prototype,"splitToc",void 0),xo([kt()],bo.prototype,"currentPage",void 0),xo([kt(((t,e)=>{var i,o;return(null===(i=t.paginationConfiguration)||void 0===i?void 0:i.splitCurrentPageToc)&&!e.isCurrentPageToc?[null===(o=t.currentPage)||void 0===o?void 0:o.rootTocId]:t.visibleTopics}))],bo.prototype,"highlightedTocIds",void 0),xo([n({hasChanged:(t,e)=>!p(t,e)})],bo.prototype,"automaticallyExpandedNodes",void 0),xo([n({hasChanged:(t,e)=>!p(t,e)})],bo.prototype,"manuallyExpandedNodes",void 0),xo([n({hasChanged:(t,e)=>!p(t,e)})],bo.prototype,"manuallyCollapsedNodes",void 0),xo([n()],bo.prototype,"expandAll",void 0),xo([n()],bo.prototype,"viewportSize",void 0),h("ft-reader-toc")(bo),t.DEFAULT_LABELS=uo,t.FtReaderToc=bo,t.FtReaderTocCssVariables=vo,t.styles=yo,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-toc",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.54",
|
|
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": "0.3.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "0.3.
|
|
24
|
-
"@fluid-topics/ft-size-watcher": "0.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.54",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "0.3.54",
|
|
24
|
+
"@fluid-topics/ft-size-watcher": "0.3.54",
|
|
25
|
+
"@fluid-topics/ft-typography": "0.3.54",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "0.3.54",
|
|
27
27
|
"lit": "2.2.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a44cb80b87fa9a6a35c255f4e37a75af484b443a"
|
|
30
30
|
}
|