@fluid-topics/ft-reader-navigation-button 0.3.53 → 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-navigation-button.min.js +147 -147
- 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||[]);f(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 d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)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)}},f=(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)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(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}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(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(x(Element,"innerHTML"),x(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||[]);f(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 d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)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)}},f=(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)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(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}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const x=(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(x(Element,"innerHTML"),x(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(Ni){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
|
|
@@ -92,34 +92,34 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
92
92
|
-webkit-hyphens: auto;
|
|
93
93
|
hyphens: auto
|
|
94
94
|
}
|
|
95
|
-
`;
|
|
95
|
+
`;const mt=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged);class wt extends xt{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:$t(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:$t(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 $t(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}var Ot,St,kt;const Ct=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(kt=null===(St=null===(Ot=window.safari)||void 0===Ot?void 0:Ot.pushNotification)||void 0===St?void 0:St.toString())&&void 0!==kt?kt:""),Nt={outlineColor:ut.extend("--ft-reader-internal-link-outline-color",yt.colorPrimary)},Et=b`
|
|
96
96
|
:host {
|
|
97
97
|
display: contents;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
a:focus {
|
|
101
|
-
outline-color: ${
|
|
101
|
+
outline-color: ${Nt.outlineColor};
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ft-reader-link--remove-style {
|
|
105
105
|
text-decoration: none;
|
|
106
106
|
color: inherit;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,Rt=b`
|
|
109
109
|
ft-reader-internal-link {
|
|
110
|
-
${vt(
|
|
110
|
+
${vt(Nt.outlineColor,"transparent")}
|
|
111
111
|
}
|
|
112
112
|
`
|
|
113
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2017 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/,
|
|
117
|
+
*/,Mt=1,jt=2,Ft=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{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)}}
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
120
120
|
* Copyright 2018 Google LLC
|
|
121
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
|
-
*/const
|
|
122
|
+
*/const zt=Ft(class extends Ut{constructor(t){var e;if(super(t),t.type!==Mt||"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 J}}),Bt=ut.extend("--ft-ripple-color",yt.colorContent),Tt={color:Bt,backgroundColor:ut.extend("--ft-ripple-background-color",Bt),opacityContentOnSurfacePressed:ut.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(yt.opacityContentOnSurfaceSelected,"Design system")},At=ut.extend("--ft-ripple-color",yt.colorPrimary),Lt=At,Pt=ut.extend("--ft-ripple-background-color",At),_t=ut.extend("--ft-ripple-color",yt.colorSecondary),Dt=_t,It=ut.extend("--ft-ripple-background-color",_t),Wt=b`
|
|
123
123
|
:host {
|
|
124
124
|
display: contents;
|
|
125
125
|
}
|
|
@@ -141,27 +141,27 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.ft-ripple .ft-ripple--background {
|
|
144
|
-
background-color: ${
|
|
144
|
+
background-color: ${Tt.backgroundColor};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-ripple .ft-ripple--effect {
|
|
148
|
-
background-color: ${
|
|
148
|
+
background-color: ${Tt.color};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
152
|
-
background-color: ${
|
|
152
|
+
background-color: ${It};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
156
|
-
background-color: ${
|
|
156
|
+
background-color: ${Dt};
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
160
|
-
background-color: ${
|
|
160
|
+
background-color: ${Pt};
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
164
|
-
background-color: ${
|
|
164
|
+
background-color: ${Lt};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.ft-ripple .ft-ripple--background {
|
|
@@ -193,22 +193,22 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
196
|
-
opacity: ${
|
|
196
|
+
opacity: ${Tt.opacityContentOnSurfaceHover};
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
200
|
-
opacity: ${
|
|
200
|
+
opacity: ${Tt.opacityContentOnSurfaceSelected};
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
204
|
-
opacity: ${
|
|
204
|
+
opacity: ${Tt.opacityContentOnSurfaceFocused};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
208
|
-
opacity: ${
|
|
208
|
+
opacity: ${Tt.opacityContentOnSurfacePressed};
|
|
209
209
|
transform: translate(-50%, -50%) scale(1);
|
|
210
210
|
}
|
|
211
|
-
`;var
|
|
211
|
+
`;var Ht=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 Kt extends xt{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 V`
|
|
212
212
|
<style>
|
|
213
213
|
.ft-ripple .ft-ripple--effect,
|
|
214
214
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -221,119 +221,119 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
221
221
|
top: ${this.originY}px;
|
|
222
222
|
}
|
|
223
223
|
</style>
|
|
224
|
-
<div class="${
|
|
224
|
+
<div class="${zt(t)}">
|
|
225
225
|
<div class="ft-ripple--background"></div>
|
|
226
226
|
<div class="ft-ripple--effect"></div>
|
|
227
227
|
</div>
|
|
228
|
-
`}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()}}
|
|
228
|
+
`}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()}}Kt.elementDefinitions={},Kt.styles=Wt,Ht([o({type:Boolean})],Kt.prototype,"primary",void 0),Ht([o({type:Boolean})],Kt.prototype,"secondary",void 0),Ht([o({type:Boolean})],Kt.prototype,"unbounded",void 0),Ht([o({type:Boolean})],Kt.prototype,"activated",void 0),Ht([o({type:Boolean})],Kt.prototype,"selected",void 0),Ht([o({type:Boolean})],Kt.prototype,"disabled",void 0),Ht([n()],Kt.prototype,"hovered",void 0),Ht([n()],Kt.prototype,"focused",void 0),Ht([n()],Kt.prototype,"pressed",void 0),Ht([n()],Kt.prototype,"rippling",void 0),Ht([n()],Kt.prototype,"rippleSize",void 0),Ht([n()],Kt.prototype,"originX",void 0),Ht([n()],Kt.prototype,"originY",void 0),Ht([s(".ft-ripple")],Kt.prototype,"ripple",void 0),Ht([s(".ft-ripple--effect")],Kt.prototype,"rippleEffect",void 0),h("ft-ripple")(Kt);
|
|
229
229
|
/**
|
|
230
230
|
* @license
|
|
231
231
|
* Copyright 2020 Google LLC
|
|
232
232
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
233
233
|
*/
|
|
234
|
-
const
|
|
234
|
+
const Zt=Symbol.for(""),Vt=t=>{if((null==t?void 0:t.r)===Zt)return null==t?void 0:t._$litStatic$},Jt=t=>({_$litStatic$:t,r:Zt}),qt=new Map,Xt=(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=Vt(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=qt.get(t))&&(s.raw=s,qt.set(t,e=s)),i=a}return t(e,...i)})(V);var Yt;!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"}(Yt||(Yt={}));const Gt=ut.extend("--ft-typography-font-family",yt.titleFont),Qt=ut.extend("--ft-typography-font-family",yt.contentFont),te={fontFamily:Qt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},ee=ut.extend("--ft-typography-title-font-family",Gt),ie=ut.extend("--ft-typography-title-font-size",te.fontSize,"20px"),oe=ut.extend("--ft-typography-title-font-weight",te.fontWeight,"normal"),ne=ut.extend("--ft-typography-title-letter-spacing",te.letterSpacing,"0.15px"),re=ut.extend("--ft-typography-title-line-height",te.lineHeight,"1.2"),se=ut.extend("--ft-typography-title-text-transform",te.textTransform,"inherit"),ae=ut.extend("--ft-typography-title-dense-font-family",Gt),le=ut.extend("--ft-typography-title-dense-font-size",te.fontSize,"14px"),he=ut.extend("--ft-typography-title-dense-font-weight",te.fontWeight,"normal"),ce=ut.extend("--ft-typography-title-dense-letter-spacing",te.letterSpacing,"0.105px"),pe=ut.extend("--ft-typography-title-dense-line-height",te.lineHeight,"1.7"),fe=ut.extend("--ft-typography-title-dense-text-transform",te.textTransform,"inherit"),de=ut.extend("--ft-typography-subtitle1-font-family",Qt),ue=ut.extend("--ft-typography-subtitle1-font-size",te.fontSize,"16px"),ve=ut.extend("--ft-typography-subtitle1-font-weight",te.fontWeight,"600"),ye=ut.extend("--ft-typography-subtitle1-letter-spacing",te.letterSpacing,"0.144px"),be=ut.extend("--ft-typography-subtitle1-line-height",te.lineHeight,"1.5"),xe=ut.extend("--ft-typography-subtitle1-text-transform",te.textTransform,"inherit"),ge=ut.extend("--ft-typography-subtitle2-font-family",Qt),me=ut.extend("--ft-typography-subtitle2-font-size",te.fontSize,"14px"),we=ut.extend("--ft-typography-subtitle2-font-weight",te.fontWeight,"normal"),$e=ut.extend("--ft-typography-subtitle2-letter-spacing",te.letterSpacing,"0.098px"),Oe=ut.extend("--ft-typography-subtitle2-line-height",te.lineHeight,"1.7"),Se=ut.extend("--ft-typography-subtitle2-text-transform",te.textTransform,"inherit"),ke=ut.extend("--ft-typography-body1-font-family",Qt),Ce=ut.extend("--ft-typography-body1-font-size",te.fontSize,"16px"),Ne=ut.extend("--ft-typography-body1-font-weight",te.fontWeight,"normal"),Ee=ut.extend("--ft-typography-body1-letter-spacing",te.letterSpacing,"0.496px"),Re=ut.extend("--ft-typography-body1-line-height",te.lineHeight,"1.5"),Me=ut.extend("--ft-typography-body1-text-transform",te.textTransform,"inherit"),je=ut.extend("--ft-typography-body2-font-family",Qt),Fe=ut.extend("--ft-typography-body2-font-size",te.fontSize,"14px"),Ue=ut.extend("--ft-typography-body2-font-weight",te.fontWeight,"normal"),ze=ut.extend("--ft-typography-body2-letter-spacing",te.letterSpacing,"0.252px"),Be=ut.extend("--ft-typography-body2-line-height",te.lineHeight,"1.4"),Te=ut.extend("--ft-typography-body2-text-transform",te.textTransform,"inherit"),Ae=ut.extend("--ft-typography-caption-font-family",Qt),Le=ut.extend("--ft-typography-caption-font-size",te.fontSize,"12px"),Pe=ut.extend("--ft-typography-caption-font-weight",te.fontWeight,"normal"),_e=ut.extend("--ft-typography-caption-letter-spacing",te.letterSpacing,"0.396px"),De=ut.extend("--ft-typography-caption-line-height",te.lineHeight,"1.33"),Ie=ut.extend("--ft-typography-caption-text-transform",te.textTransform,"inherit"),We=ut.extend("--ft-typography-breadcrumb-font-family",Qt),He=ut.extend("--ft-typography-breadcrumb-font-size",te.fontSize,"10px"),Ke=ut.extend("--ft-typography-breadcrumb-font-weight",te.fontWeight,"normal"),Ze=ut.extend("--ft-typography-breadcrumb-letter-spacing",te.letterSpacing,"0.33px"),Ve=ut.extend("--ft-typography-breadcrumb-line-height",te.lineHeight,"1.6"),Je=ut.extend("--ft-typography-breadcrumb-text-transform",te.textTransform,"inherit"),qe=ut.extend("--ft-typography-overline-font-family",Qt),Xe=ut.extend("--ft-typography-overline-font-size",te.fontSize,"10px"),Ye=ut.extend("--ft-typography-overline-font-weight",te.fontWeight,"normal"),Ge=ut.extend("--ft-typography-overline-letter-spacing",te.letterSpacing,"1.5px"),Qe=ut.extend("--ft-typography-overline-line-height",te.lineHeight,"1.6"),ti=ut.extend("--ft-typography-overline-text-transform",te.textTransform,"uppercase"),ei={fontFamily:ut.extend("--ft-typography-button-font-family",Qt),fontSize:ut.extend("--ft-typography-button-font-size",te.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",te.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",te.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",te.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",te.textTransform,"uppercase")},ii=b`
|
|
235
235
|
.ft-typography--title {
|
|
236
|
-
font-family: ${
|
|
237
|
-
font-size: ${
|
|
238
|
-
font-weight: ${
|
|
239
|
-
letter-spacing: ${
|
|
240
|
-
line-height: ${
|
|
241
|
-
text-transform: ${
|
|
242
|
-
}
|
|
243
|
-
`,ii=b`
|
|
244
|
-
.ft-typography--title-dense {
|
|
245
|
-
font-family: ${se};
|
|
246
|
-
font-size: ${ae};
|
|
247
|
-
font-weight: ${le};
|
|
248
|
-
letter-spacing: ${he};
|
|
249
|
-
line-height: ${ce};
|
|
250
|
-
text-transform: ${pe};
|
|
236
|
+
font-family: ${ee};
|
|
237
|
+
font-size: ${ie};
|
|
238
|
+
font-weight: ${oe};
|
|
239
|
+
letter-spacing: ${ne};
|
|
240
|
+
line-height: ${re};
|
|
241
|
+
text-transform: ${se};
|
|
251
242
|
}
|
|
252
243
|
`,oi=b`
|
|
253
|
-
.ft-typography--
|
|
254
|
-
font-family: ${
|
|
255
|
-
font-size: ${
|
|
256
|
-
font-weight: ${
|
|
257
|
-
letter-spacing: ${
|
|
258
|
-
line-height: ${
|
|
259
|
-
text-transform: ${
|
|
244
|
+
.ft-typography--title-dense {
|
|
245
|
+
font-family: ${ae};
|
|
246
|
+
font-size: ${le};
|
|
247
|
+
font-weight: ${he};
|
|
248
|
+
letter-spacing: ${ce};
|
|
249
|
+
line-height: ${pe};
|
|
250
|
+
text-transform: ${fe};
|
|
260
251
|
}
|
|
261
252
|
`,ni=b`
|
|
262
|
-
.ft-typography--
|
|
263
|
-
font-family: ${
|
|
264
|
-
font-size: ${
|
|
265
|
-
font-weight: ${
|
|
266
|
-
letter-spacing: ${
|
|
267
|
-
line-height: ${
|
|
268
|
-
text-transform: ${
|
|
253
|
+
.ft-typography--subtitle1 {
|
|
254
|
+
font-family: ${de};
|
|
255
|
+
font-size: ${ue};
|
|
256
|
+
font-weight: ${ve};
|
|
257
|
+
letter-spacing: ${ye};
|
|
258
|
+
line-height: ${be};
|
|
259
|
+
text-transform: ${xe};
|
|
269
260
|
}
|
|
270
|
-
|
|
271
261
|
`,ri=b`
|
|
272
|
-
.ft-typography--
|
|
273
|
-
font-family: ${
|
|
274
|
-
font-size: ${
|
|
275
|
-
font-weight: ${
|
|
276
|
-
letter-spacing: ${
|
|
277
|
-
line-height: ${
|
|
278
|
-
text-transform: ${
|
|
262
|
+
.ft-typography--subtitle2 {
|
|
263
|
+
font-family: ${ge};
|
|
264
|
+
font-size: ${me};
|
|
265
|
+
font-weight: ${we};
|
|
266
|
+
letter-spacing: ${$e};
|
|
267
|
+
line-height: ${Oe};
|
|
268
|
+
text-transform: ${Se};
|
|
279
269
|
}
|
|
270
|
+
|
|
280
271
|
`,si=b`
|
|
281
|
-
.ft-typography--
|
|
282
|
-
font-family: ${
|
|
283
|
-
font-size: ${
|
|
284
|
-
font-weight: ${
|
|
285
|
-
letter-spacing: ${
|
|
286
|
-
line-height: ${
|
|
287
|
-
text-transform: ${
|
|
272
|
+
.ft-typography--body1 {
|
|
273
|
+
font-family: ${ke};
|
|
274
|
+
font-size: ${Ce};
|
|
275
|
+
font-weight: ${Ne};
|
|
276
|
+
letter-spacing: ${Ee};
|
|
277
|
+
line-height: ${Re};
|
|
278
|
+
text-transform: ${Me};
|
|
288
279
|
}
|
|
289
280
|
`,ai=b`
|
|
290
|
-
.ft-typography--
|
|
291
|
-
font-family: ${
|
|
292
|
-
font-size: ${
|
|
293
|
-
font-weight: ${
|
|
294
|
-
letter-spacing: ${
|
|
295
|
-
line-height: ${
|
|
296
|
-
text-transform: ${
|
|
281
|
+
.ft-typography--body2 {
|
|
282
|
+
font-family: ${je};
|
|
283
|
+
font-size: ${Fe};
|
|
284
|
+
font-weight: ${Ue};
|
|
285
|
+
letter-spacing: ${ze};
|
|
286
|
+
line-height: ${Be};
|
|
287
|
+
text-transform: ${Te};
|
|
297
288
|
}
|
|
298
289
|
`,li=b`
|
|
299
|
-
.ft-typography--
|
|
300
|
-
font-family: ${
|
|
301
|
-
font-size: ${
|
|
302
|
-
font-weight: ${
|
|
303
|
-
letter-spacing: ${
|
|
304
|
-
line-height: ${
|
|
305
|
-
text-transform: ${
|
|
290
|
+
.ft-typography--caption {
|
|
291
|
+
font-family: ${Ae};
|
|
292
|
+
font-size: ${Le};
|
|
293
|
+
font-weight: ${Pe};
|
|
294
|
+
letter-spacing: ${_e};
|
|
295
|
+
line-height: ${De};
|
|
296
|
+
text-transform: ${Ie};
|
|
306
297
|
}
|
|
307
298
|
`,hi=b`
|
|
308
|
-
.ft-typography--
|
|
309
|
-
font-family: ${
|
|
310
|
-
font-size: ${
|
|
311
|
-
font-weight: ${
|
|
312
|
-
letter-spacing: ${
|
|
313
|
-
line-height: ${
|
|
314
|
-
text-transform: ${
|
|
299
|
+
.ft-typography--breadcrumb {
|
|
300
|
+
font-family: ${We};
|
|
301
|
+
font-size: ${He};
|
|
302
|
+
font-weight: ${Ke};
|
|
303
|
+
letter-spacing: ${Ze};
|
|
304
|
+
line-height: ${Ve};
|
|
305
|
+
text-transform: ${Je};
|
|
315
306
|
}
|
|
316
307
|
`,ci=b`
|
|
317
|
-
.ft-typography--
|
|
318
|
-
font-family: ${
|
|
319
|
-
font-size: ${
|
|
320
|
-
font-weight: ${
|
|
321
|
-
letter-spacing: ${
|
|
322
|
-
line-height: ${
|
|
323
|
-
text-transform: ${ti
|
|
308
|
+
.ft-typography--overline {
|
|
309
|
+
font-family: ${qe};
|
|
310
|
+
font-size: ${Xe};
|
|
311
|
+
font-weight: ${Ye};
|
|
312
|
+
letter-spacing: ${Ge};
|
|
313
|
+
line-height: ${Qe};
|
|
314
|
+
text-transform: ${ti};
|
|
324
315
|
}
|
|
325
316
|
`,pi=b`
|
|
317
|
+
.ft-typography--button {
|
|
318
|
+
font-family: ${ei.fontFamily};
|
|
319
|
+
font-size: ${ei.fontSize};
|
|
320
|
+
font-weight: ${ei.fontWeight};
|
|
321
|
+
letter-spacing: ${ei.letterSpacing};
|
|
322
|
+
line-height: ${ei.lineHeight};
|
|
323
|
+
text-transform: ${ei.textTransform};
|
|
324
|
+
}
|
|
325
|
+
`,fi=b`
|
|
326
326
|
.ft-typography {
|
|
327
327
|
vertical-align: inherit;
|
|
328
328
|
}
|
|
329
|
-
`;var
|
|
330
|
-
<${
|
|
329
|
+
`;var di=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 ui extends xt{constructor(){super(...arguments),this.variant=Yt.body1}render(){return this.element?Xt`
|
|
330
|
+
<${Jt(this.element)}
|
|
331
331
|
class="ft-typography ft-typography--${this.variant}">
|
|
332
332
|
<slot></slot>
|
|
333
|
-
</${
|
|
334
|
-
`:
|
|
333
|
+
</${Jt(this.element)}>
|
|
334
|
+
`:Xt`
|
|
335
335
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
336
|
-
`}}
|
|
336
|
+
`}}ui.styles=[ii,oi,ni,ri,si,ai,li,hi,ci,pi,fi],di([o()],ui.prototype,"element",void 0),di([o()],ui.prototype,"variant",void 0),h("ft-typography")(ui);const vi=ut.create("--ft-tooltip-distance","SIZE","4px"),yi=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),bi=ut.create("--ft-tooltip-background-color","COLOR","#666666"),xi=ut.create("--ft-tooltip-z-index","NUMBER","1"),gi=ut.external(yt.borderRadiusS,"Design system"),mi=ut.create("--ft-tooltip-max-width","SIZE","150px"),wi=b`
|
|
337
337
|
.ft-tooltip--container {
|
|
338
338
|
display: block;
|
|
339
339
|
position: relative;
|
|
@@ -349,23 +349,23 @@ const Kt=Symbol.for(""),Zt=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
|
|
|
349
349
|
box-sizing: border-box;
|
|
350
350
|
overflow: hidden;
|
|
351
351
|
width: max-content;
|
|
352
|
-
max-width: ${
|
|
352
|
+
max-width: ${mi};
|
|
353
353
|
text-align: center;
|
|
354
|
-
padding: ${
|
|
355
|
-
z-index: ${
|
|
354
|
+
padding: ${vi};
|
|
355
|
+
z-index: ${xi};
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
.ft-tooltip--content {
|
|
359
359
|
padding: 4px 8px;
|
|
360
|
-
border-radius: ${
|
|
361
|
-
background-color: ${
|
|
362
|
-
color: ${
|
|
360
|
+
border-radius: ${gi};
|
|
361
|
+
background-color: ${bi};
|
|
362
|
+
color: ${yi};
|
|
363
363
|
top: -500px;
|
|
364
364
|
left: -500px;
|
|
365
365
|
position: relative;
|
|
366
366
|
word-break: break-word;
|
|
367
367
|
}
|
|
368
|
-
`;var
|
|
368
|
+
`;var $i=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 Oi extends xt{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 V`
|
|
369
369
|
<div part="container"
|
|
370
370
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
371
371
|
@mouseenter=${this.onHover}
|
|
@@ -383,13 +383,13 @@ const Kt=Symbol.for(""),Zt=t=>{if((null==t?void 0:t.r)===Kt)return null==t?void
|
|
|
383
383
|
</div>
|
|
384
384
|
</div>
|
|
385
385
|
</div>
|
|
386
|
-
`}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, ${
|
|
386
|
+
`}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, ${mi})`}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())}}Oi.elementDefinitions={"ft-typography":ui},Oi.styles=wi,$i([o()],Oi.prototype,"text",void 0),$i([o({type:Boolean})],Oi.prototype,"manual",void 0),$i([o({type:Boolean})],Oi.prototype,"inline",void 0),$i([o({type:Number})],Oi.prototype,"delay",void 0),$i([o()],Oi.prototype,"position",void 0),$i([
|
|
387
387
|
/**
|
|
388
388
|
* @license
|
|
389
389
|
* Copyright 2017 Google LLC
|
|
390
390
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
391
391
|
*/
|
|
392
|
-
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)]
|
|
392
|
+
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)],Oi.prototype,"slotNodes",void 0),$i([s(".ft-tooltip--container")],Oi.prototype,"container",void 0),$i([s("slot")],Oi.prototype,"target",void 0),$i([s(".ft-tooltip")],Oi.prototype,"tooltip",void 0),$i([s(".ft-tooltip--content")],Oi.prototype,"tooltipContent",void 0),$i([n()],Oi.prototype,"visible",void 0),h("ft-tooltip")(Oi);const Si={color:ut.extend("--ft-loader-color",yt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},ki=b`
|
|
393
393
|
:host {
|
|
394
394
|
line-height: 0;
|
|
395
395
|
}
|
|
@@ -398,8 +398,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
398
398
|
display: inline-block;
|
|
399
399
|
position: relative;
|
|
400
400
|
|
|
401
|
-
width: ${
|
|
402
|
-
height: ${
|
|
401
|
+
width: ${Si.size};
|
|
402
|
+
height: ${Si.size};
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
.ft-loader div {
|
|
@@ -408,7 +408,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
408
408
|
width: 25%;
|
|
409
409
|
height: 25%;
|
|
410
410
|
border-radius: 50%;
|
|
411
|
-
background: ${
|
|
411
|
+
background: ${Si.color};
|
|
412
412
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
413
413
|
}
|
|
414
414
|
|
|
@@ -455,23 +455,23 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
455
455
|
transform: translate(0, 0);
|
|
456
456
|
}
|
|
457
457
|
100% {
|
|
458
|
-
transform: translate(calc(0.35 * ${
|
|
458
|
+
transform: translate(calc(0.35 * ${Si.size}), 0);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
`;class
|
|
461
|
+
`;class Ci extends xt{render(){return V`
|
|
462
462
|
<div class="ft-loader">
|
|
463
463
|
<div></div>
|
|
464
464
|
<div></div>
|
|
465
465
|
<div></div>
|
|
466
466
|
<div></div>
|
|
467
467
|
</div>
|
|
468
|
-
`}}
|
|
468
|
+
`}}Ci.styles=ki,h("ft-loader")(Ci);
|
|
469
469
|
/**
|
|
470
470
|
* @license
|
|
471
471
|
* Copyright 2017 Google LLC
|
|
472
472
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
473
473
|
*/
|
|
474
|
-
class
|
|
474
|
+
class Ni extends Ut{constructor(t){if(super(t),this.it=q,t.type!==jt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ni.directiveName="unsafeHTML",Ni.resultType=1;const Ei=Ft(Ni);var Ri,Mi;!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=""}(Ri||(Ri={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Mi||(Mi={})),new Map([...["abw"].map((t=>[t,Mi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Mi.AUDIO])),...["avi"].map((t=>[t,Mi.AVI])),...["chm","xhs"].map((t=>[t,Mi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Mi.CODE])),...["csv"].map((t=>[t,Mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mi.DITA])),...["epub"].map((t=>[t,Mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mi.EXCEL])),...["flac"].map((t=>[t,Mi.FLAC])),...["gif"].map((t=>[t,Mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mi.JPEG])),...["json"].map((t=>[t,Mi.JSON])),...["m4a","m4p"].map((t=>[t,Mi.M4A])),...["mov","qt"].map((t=>[t,Mi.MOV])),...["mp3"].map((t=>[t,Mi.MP3])),...["mp4","m4v"].map((t=>[t,Mi.MP4])),...["ogg","oga"].map((t=>[t,Mi.OGG])),...["pdf","ps"].map((t=>[t,Mi.PDF])),...["png"].map((t=>[t,Mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mi.POWERPOINT])),...["rar"].map((t=>[t,Mi.RAR])),...["stp"].map((t=>[t,Mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Mi.VIDEO])),...["wav"].map((t=>[t,Mi.WAV])),...["wma"].map((t=>[t,Mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mi.YAML])),...["zip"].map((t=>[t,Mi.ZIP]))]);const ji={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Fi=b`
|
|
475
475
|
:host, i.ft-icon {
|
|
476
476
|
display: inline-flex;
|
|
477
477
|
align-items: center;
|
|
@@ -480,14 +480,14 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
:host {
|
|
483
|
-
width: ${
|
|
484
|
-
height: ${
|
|
483
|
+
width: ${ji.size};
|
|
484
|
+
height: ${ji.size};
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
i.ft-icon {
|
|
488
488
|
width: 100%;
|
|
489
489
|
height: 100%;
|
|
490
|
-
font-size: ${
|
|
490
|
+
font-size: ${ji.size};
|
|
491
491
|
line-height: 1;
|
|
492
492
|
font-weight: normal;
|
|
493
493
|
text-transform: none;
|
|
@@ -498,32 +498,32 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
498
498
|
text-rendering: auto;
|
|
499
499
|
-webkit-font-smoothing: antialiased;
|
|
500
500
|
-moz-osx-font-smoothing: grayscale;
|
|
501
|
-
vertical-align: ${
|
|
501
|
+
vertical-align: ${ji.verticalAlign};
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
i.ft-icon.ft-icon--fluid-topics {
|
|
505
|
-
font-family: ${
|
|
505
|
+
font-family: ${ji.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
506
506
|
|
|
507
507
|
/* Ugly fix because font is broken */
|
|
508
|
-
font-size: calc(0.9 * ${
|
|
508
|
+
font-size: calc(0.9 * ${ji.size});
|
|
509
509
|
position: relative;
|
|
510
510
|
top: -5%;
|
|
511
511
|
justify-content: center;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
.ft-icon--file-format {
|
|
515
|
-
font-family: ${
|
|
515
|
+
font-family: ${ji.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
518
|
.ft-icon--material {
|
|
519
|
-
font-family: ${
|
|
519
|
+
font-family: ${ji.materialFontFamily}, "Material Icons", sans-serif;
|
|
520
520
|
}
|
|
521
|
-
`;var
|
|
521
|
+
`;var Ui;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ui||(Ui={}));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 Bi extends xt{constructor(){super(...arguments),this.variant=Ui.fluid_topics,this.resolvedIcon=q}render(){const t="material"!==this.variant||this.value;return V`
|
|
522
522
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
523
|
-
${
|
|
523
|
+
${Ei(this.resolvedIcon)}
|
|
524
524
|
<slot ?hidden=${t}></slot>
|
|
525
525
|
</i>
|
|
526
|
-
`}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
|
|
526
|
+
`}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 Ui.file_format:this.resolvedIcon=null!==(t=Mi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ui.fluid_topics:this.resolvedIcon=null!==(e=Ri[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Bi.elementDefinitions={},Bi.styles=Fi,zi([o()],Bi.prototype,"variant",void 0),zi([o()],Bi.prototype,"value",void 0),zi([n()],Bi.prototype,"resolvedIcon",void 0),zi([s("slot")],Bi.prototype,"slottedContent",void 0),h("ft-icon")(Bi);const Ti=ut.extend("--ft-button-color",yt.colorPrimary),Ai={backgroundColor:ut.extend("--ft-button-background-color",yt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",yt.borderRadiusL),color:Ti,fontSize:ut.extend("--ft-button-font-size",ei.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Ti),opacityDisabled:ut.external(yt.colorOpacityDisabled,"Design system")},Li=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",yt.colorOnPrimary)),Pi={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",yt.colorPrimary)),color:Li,rippleColor:ut.extend("--ft-button-primary-ripple-color",Li)},_i=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",yt.borderRadiusM)),Di=[gt,b`
|
|
527
527
|
:host {
|
|
528
528
|
display: inline-block;
|
|
529
529
|
max-width: 100%;
|
|
@@ -534,7 +534,7 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
534
534
|
box-shadow: 0px 0px 0px transparent;
|
|
535
535
|
border: 0px solid transparent;
|
|
536
536
|
text-shadow: 0px 0px 0px transparent;
|
|
537
|
-
font-size: ${
|
|
537
|
+
font-size: ${Ai.fontSize};
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
button:hover {
|
|
@@ -563,17 +563,17 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
563
563
|
border: none;
|
|
564
564
|
pointer-events: auto;
|
|
565
565
|
|
|
566
|
-
--ft-button-internal-line-height: calc(${
|
|
567
|
-
--ft-button-internal-color: ${
|
|
568
|
-
${vt(
|
|
566
|
+
--ft-button-internal-line-height: calc(${Ai.fontSize} + 2px);
|
|
567
|
+
--ft-button-internal-color: ${Ai.color};
|
|
568
|
+
${vt(ji.size,Ai.iconSize)};
|
|
569
569
|
--ft-button-internal-vertical-padding: 6px;
|
|
570
570
|
--ft-button-internal-horizontal-padding: 8px;
|
|
571
|
-
${vt(
|
|
572
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
571
|
+
${vt(Tt.color,Ai.rippleColor)};
|
|
572
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ai.iconSize});
|
|
573
573
|
|
|
574
|
-
border-radius: ${
|
|
574
|
+
border-radius: ${Ai.borderRadius};
|
|
575
575
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
576
|
-
background-color: ${
|
|
576
|
+
background-color: ${Ai.backgroundColor};
|
|
577
577
|
color: var(--ft-button-internal-color);
|
|
578
578
|
-webkit-mask-image: radial-gradient(white, black);
|
|
579
579
|
}
|
|
@@ -585,7 +585,7 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
585
585
|
.ft-button--dense {
|
|
586
586
|
--ft-button-internal-vertical-padding: 2px;
|
|
587
587
|
--ft-button-internal-horizontal-padding: 4px;
|
|
588
|
-
border-radius: ${
|
|
588
|
+
border-radius: ${_i};
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
.ft-button--round {
|
|
@@ -594,13 +594,13 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
594
594
|
|
|
595
595
|
.ft-button[disabled] {
|
|
596
596
|
filter: grayscale(1);
|
|
597
|
-
opacity: ${
|
|
597
|
+
opacity: ${Ai.opacityDisabled};
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
.ft-button.ft-button--primary {
|
|
601
|
-
background-color: ${
|
|
602
|
-
--ft-button-internal-color: ${
|
|
603
|
-
${vt(
|
|
601
|
+
background-color: ${Pi.backgroundColor};
|
|
602
|
+
--ft-button-internal-color: ${Pi.color};
|
|
603
|
+
${vt(Tt.color,Pi.rippleColor)};
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
.ft-button.ft-button--outlined {
|
|
@@ -619,8 +619,8 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
619
619
|
text-overflow: ellipsis;
|
|
620
620
|
display: block;
|
|
621
621
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
622
|
-
${vt(
|
|
623
|
-
${vt(
|
|
622
|
+
${vt(ei.fontSize,"1em")};
|
|
623
|
+
${vt(ei.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
624
624
|
}
|
|
625
625
|
|
|
626
626
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -653,12 +653,12 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
653
653
|
}
|
|
654
654
|
|
|
655
655
|
ft-loader {
|
|
656
|
-
${vt(
|
|
657
|
-
${vt(
|
|
656
|
+
${vt(Si.size,Ai.iconSize)};
|
|
657
|
+
${vt(Si.color,"var(--ft-button-internal-color)")};
|
|
658
658
|
}
|
|
659
|
-
`];var
|
|
659
|
+
`];var Ii=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.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Ui.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":Ct,"ft-no-text-select":!0};return this.addTooltipIfNeeded(V`
|
|
660
660
|
<button part="button"
|
|
661
|
-
class="${
|
|
661
|
+
class="${zt(t)}"
|
|
662
662
|
aria-label="${this.getLabel()}"
|
|
663
663
|
?disabled=${this.isDisabled()}>
|
|
664
664
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -679,13 +679,13 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
679
679
|
</ft-tooltip>
|
|
680
680
|
`:t}resolveIcon(){return this.loading?V`
|
|
681
681
|
<ft-loader></ft-loader> `:this.icon?V`
|
|
682
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}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}}
|
|
682
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:q}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}}Wi.elementDefinitions={"ft-ripple":Kt,"ft-tooltip":Oi,"ft-typography":ui,"ft-icon":Bi,"ft-loader":Ci},Wi.styles=Di,Ii([o({type:Boolean})],Wi.prototype,"primary",void 0),Ii([o({type:Boolean})],Wi.prototype,"outlined",void 0),Ii([o({type:Boolean})],Wi.prototype,"disabled",void 0),Ii([o({type:Boolean})],Wi.prototype,"dense",void 0),Ii([o({type:Boolean})],Wi.prototype,"round",void 0),Ii([o({type:String})],Wi.prototype,"label",void 0),Ii([o({type:String})],Wi.prototype,"icon",void 0),Ii([o({type:String})],Wi.prototype,"iconVariant",void 0),Ii([o({type:Boolean})],Wi.prototype,"trailingIcon",void 0),Ii([o({type:Boolean})],Wi.prototype,"loading",void 0),Ii([o({type:String})],Wi.prototype,"tooltipPosition",void 0),Ii([o({type:Boolean})],Wi.prototype,"hideTooltip",void 0),Ii([o({type:Boolean})],Wi.prototype,"forceTooltip",void 0),Ii([s(".ft-button")],Wi.prototype,"button",void 0),Ii([s(".ft-button--label slot")],Wi.prototype,"slottedContent",void 0),h("ft-button")(Wi);var Hi=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 Ki extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class Zi 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 Ki)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Hi([n()],e.prototype,"stateManager",void 0),e}(wt)){}var Vi=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 Ji extends Zi{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=zt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return V`
|
|
683
683
|
<a class=${e}
|
|
684
684
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
685
685
|
@click=${t=>this.onLinkClick(t)}>
|
|
686
686
|
<slot></slot>
|
|
687
687
|
</a>
|
|
688
|
-
`}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())}}
|
|
688
|
+
`}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())}}Ji.styles=Et,Vi([o()],Ji.prototype,"tocId",void 0),Vi([o()],Ji.prototype,"section",void 0),Vi([o({type:Number})],Ji.prototype,"pageNumber",void 0),Vi([o({type:Boolean})],Ji.prototype,"removeStyle",void 0),h("ft-reader-internal-link")(Ji);var qi=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 Zi{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.iconVariant=Ui.fluid_topics,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Ri.THIN_ARROW_RIGHT:Ri.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return q;const r=V`
|
|
689
689
|
<ft-button ?forceTooltip=${!this.hideTooltip}
|
|
690
690
|
?hideTooltip=${this.hideTooltip}
|
|
691
691
|
?trailingIcon=${this.trailingIcon}
|
|
@@ -699,4 +699,4 @@ class Ci extends Ft{constructor(t){if(super(t),this.it=q,t.type!==Mt)throw Error
|
|
|
699
699
|
<ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
|
|
700
700
|
${r}
|
|
701
701
|
</ft-reader-internal-link>
|
|
702
|
-
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}
|
|
702
|
+
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Xi.elementDefinitions={"ft-button":Wi,"ft-reader-internal-link":Ji},Xi.styles=Rt,qi([o()],Xi.prototype,"target",void 0),qi([o()],Xi.prototype,"content",void 0),qi([o()],Xi.prototype,"tooltipPosition",void 0),qi([o({type:Boolean})],Xi.prototype,"hideTooltip",void 0),qi([o()],Xi.prototype,"iconVariant",void 0),qi([o()],Xi.prototype,"icon",void 0),qi([o({type:Boolean})],Xi.prototype,"trailingIcon",void 0),qi([o({type:Boolean,attribute:!1})],Xi.prototype,"editorMode",void 0),qi([((t,e)=>{var i;const o=mt(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!c(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=mt(t)?o.selector:t)&&void 0!==r?r:t=>t[n];s.reduxProperties.set(n,{selector:a,store:o.store})}})()],Xi.prototype,"currentPage",void 0),qi([n()],Xi.prototype,"targetPage",void 0),h("ft-reader-navigation-button")(Xi),t.FtReaderNavigationButton=Xi,t.FtReaderNavigationButtonCssVariables={},t.styles=Rt,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-navigation-button",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.54",
|
|
4
4
|
"description": "Button used to navigate between pages in an integrated reader context.",
|
|
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-button": "0.3.
|
|
23
|
-
"@fluid-topics/ft-reader-context": "0.3.
|
|
24
|
-
"@fluid-topics/ft-reader-internal-link": "0.3.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-button": "0.3.54",
|
|
23
|
+
"@fluid-topics/ft-reader-context": "0.3.54",
|
|
24
|
+
"@fluid-topics/ft-reader-internal-link": "0.3.54",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "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
|
}
|