@fluid-topics/ft-notice 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-notice.min.js +108 -104
- package/package.json +5 -5
package/build/ft-notice.min.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* subject to an additional IP rights grant found at
|
|
13
13
|
* http://polymer.github.io/PATENTS.txt
|
|
14
14
|
*/
|
|
15
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
15
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(jo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
16
16
|
/**
|
|
17
17
|
* @license
|
|
18
18
|
* Copyright 2019 Google LLC
|
|
@@ -78,7 +78,11 @@ class yo extends $t{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
78
78
|
* @license
|
|
79
79
|
* Copyright 2019 Google LLC
|
|
80
80
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
|
-
*/class wo extends yo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{vo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=So.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Co,Ro=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Uo=Symbol("constructorPrototype"),Eo=Symbol("constructorName"),Io=Symbol("exportpartsDebouncer");class Wo extends wo{constructor(){super(),this[Co]=new o(5),this[Eo]=this.constructor.name,this[Uo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eo]&&Object.setPrototypeOf(this,this[Uo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Io].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}
|
|
81
|
+
*/class wo extends yo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{vo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=So.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Co,Ro=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Uo=Symbol("constructorPrototype"),Eo=Symbol("constructorName"),Io=Symbol("exportpartsDebouncer");class Wo extends wo{constructor(){super(),this[Co]=new o(5),this[Eo]=this.constructor.name,this[Uo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eo]&&Object.setPrototypeOf(this,this[Uo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Io].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Co=Io,Ro([C()],Wo.prototype,"exportpartsPrefix",void 0),Ro([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Wo.prototype,"exportpartsPrefixes",void 0),Ro([C()],Wo.prototype,"customStylesheet",void 0);const $o=bo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Lo,ko;gt`
|
|
82
|
+
.highlight-html-match {
|
|
83
|
+
background: ${$o};
|
|
84
|
+
}
|
|
85
|
+
`,gt`
|
|
82
86
|
.ft-no-text-select {
|
|
83
87
|
-webkit-touch-callout: none;
|
|
84
88
|
-webkit-user-select: none;
|
|
@@ -110,18 +114,18 @@ class yo extends $t{constructor(){super(...arguments),this.renderOptions={host:t
|
|
|
110
114
|
display: inline-block;
|
|
111
115
|
width: 0;
|
|
112
116
|
}
|
|
113
|
-
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
117
|
+
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ko=null===(Lo=window.safari)||void 0===Lo?void 0:Lo.pushNotification)||void 0===ko||ko.toString());
|
|
114
118
|
/**
|
|
115
119
|
* @license
|
|
116
120
|
* Copyright 2017 Google LLC
|
|
117
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
122
|
*/
|
|
119
|
-
const
|
|
123
|
+
const Ko=2;let Zo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}},zo=class extends Zo{constructor(t){if(super(t),this.et=V,t.type!==Ko)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this.vt=void 0,this.et=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}};
|
|
120
124
|
/**
|
|
121
125
|
* @license
|
|
122
126
|
* Copyright 2017 Google LLC
|
|
123
127
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
124
|
-
*/
|
|
128
|
+
*/zo.directiveName="unsafeHTML",zo.resultType=1;const Fo=(t=>(...o)=>({_$litDirective$:t,values:o}))(zo);var Ao,Mo;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ao||(Ao={})),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=""}(Mo||(Mo={})),new Map([...["abw"].map((t=>[t,Mo.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,Mo.AUDIO])),...["avi"].map((t=>[t,Mo.AVI])),...["chm","xhs"].map((t=>[t,Mo.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,Mo.CODE])),...["csv"].map((t=>[t,Mo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mo.DITA])),...["epub"].map((t=>[t,Mo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mo.EXCEL])),...["flac"].map((t=>[t,Mo.FLAC])),...["gif"].map((t=>[t,Mo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mo.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,Mo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mo.JPEG])),...["json"].map((t=>[t,Mo.JSON])),...["m4a","m4p"].map((t=>[t,Mo.M4A])),...["mov","qt"].map((t=>[t,Mo.MOV])),...["mp3"].map((t=>[t,Mo.MP3])),...["mp4","m4v"].map((t=>[t,Mo.MP4])),...["ogg","oga"].map((t=>[t,Mo.OGG])),...["pdf","ps"].map((t=>[t,Mo.PDF])),...["png"].map((t=>[t,Mo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mo.POWERPOINT])),...["rar"].map((t=>[t,Mo.RAR])),...["stp"].map((t=>[t,Mo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mo.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,Mo.VIDEO])),...["wav"].map((t=>[t,Mo.WAV])),...["wma"].map((t=>[t,Mo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mo.YAML])),...["zip"].map((t=>[t,Mo.ZIP]))]);const Do={size:bo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:bo.extend("--ft-icon-fluid-topics-font-family","",bo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:bo.extend("--ft-icon-file-format-font-family","",bo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:bo.extend("--ft-icon-material-font-family","",bo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:bo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Bo=gt`
|
|
125
129
|
:host, i.ft-icon {
|
|
126
130
|
display: inline-flex;
|
|
127
131
|
align-items: center;
|
|
@@ -130,14 +134,14 @@ const ko=2;let Ko=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
|
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
:host {
|
|
133
|
-
width: ${
|
|
134
|
-
height: ${
|
|
137
|
+
width: ${Do.size};
|
|
138
|
+
height: ${Do.size};
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
i.ft-icon {
|
|
138
142
|
width: 100%;
|
|
139
143
|
height: 100%;
|
|
140
|
-
font-size: ${
|
|
144
|
+
font-size: ${Do.size};
|
|
141
145
|
line-height: 1;
|
|
142
146
|
font-weight: normal;
|
|
143
147
|
text-transform: none;
|
|
@@ -148,134 +152,134 @@ const ko=2;let Ko=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
|
|
|
148
152
|
text-rendering: auto;
|
|
149
153
|
-webkit-font-smoothing: antialiased;
|
|
150
154
|
-moz-osx-font-smoothing: grayscale;
|
|
151
|
-
vertical-align: ${
|
|
155
|
+
vertical-align: ${Do.verticalAlign};
|
|
152
156
|
}
|
|
153
157
|
|
|
154
158
|
i.ft-icon.ft-icon--fluid-topics {
|
|
155
|
-
font-family: ${
|
|
159
|
+
font-family: ${Do.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
156
160
|
|
|
157
161
|
/* Ugly fix because font is broken */
|
|
158
|
-
font-size: calc(0.75 * ${
|
|
159
|
-
line-height: ${
|
|
162
|
+
font-size: calc(0.75 * ${Do.size});
|
|
163
|
+
line-height: ${Do.size};
|
|
160
164
|
position: relative;
|
|
161
165
|
top: -4%;
|
|
162
166
|
justify-content: center;
|
|
163
167
|
}
|
|
164
168
|
|
|
165
169
|
.ft-icon--file-format {
|
|
166
|
-
font-family: ${
|
|
170
|
+
font-family: ${Do.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
.ft-icon--material {
|
|
170
|
-
font-family: ${
|
|
174
|
+
font-family: ${Do.materialFontFamily}, "Material Icons", sans-serif;
|
|
171
175
|
}
|
|
172
|
-
`;var
|
|
176
|
+
`;var Po;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Po||(Po={}));var Ho=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class _o extends Wo{constructor(){super(...arguments),this.resolvedIcon=Qt}render(){const t=this.variant&&Object.values(Po).includes(this.variant)?this.variant:Po.fluid_topics,o=t!==Po.material||!!this.value;return qt`
|
|
173
177
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
174
|
-
${
|
|
178
|
+
${Fo(this.resolvedIcon)}
|
|
175
179
|
<slot ?hidden=${o}></slot>
|
|
176
180
|
</i>
|
|
177
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case
|
|
181
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case Po.file_format:this.resolvedIcon=null!==(t=Mo[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Po.material:this.resolvedIcon=this.value||Qt;break;default:this.resolvedIcon=null!==(o=Ao[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_o.elementDefinitions={},_o.styles=Bo,Ho([C()],_o.prototype,"variant",void 0),Ho([C()],_o.prototype,"value",void 0),Ho([function(t){return C({...t,state:!0,attribute:!1})}()],_o.prototype,"resolvedIcon",void 0),Ho([function(t,o){return(e,r,i)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof r?e:i??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return R(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return R(0,0,{get(){return a(this)}})}}("slot")],_o.prototype,"slottedContent",void 0),E("ft-icon")(_o);
|
|
178
182
|
/**
|
|
179
183
|
* @license
|
|
180
184
|
* Copyright 2020 Google LLC
|
|
181
185
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
182
186
|
*/
|
|
183
|
-
const
|
|
187
|
+
const jo=Symbol.for(""),To=t=>{if(t?.r===jo)return t?._$litStatic$},Go=t=>({_$litStatic$:t,r:jo}),Yo=new Map,Jo=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=To(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=Yo.get(t))&&(n.raw=n,Yo.set(t,o=n)),e=s}return t(o,...e)})(Y);var Vo;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Vo||(Vo={}));const qo=bo.extend("--ft-typography-font-family","",No.titleFont),Xo=bo.extend("--ft-typography-font-family","",No.contentFont),Qo={fontFamily:Xo,fontSize:bo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:bo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:bo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:bo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:bo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},te=bo.extend("--ft-typography-title-font-family","",qo),oe=bo.extend("--ft-typography-title-font-size","",Qo.fontSize,"20px"),ee=bo.extend("--ft-typography-title-font-weight","",Qo.fontWeight,"normal"),re=bo.extend("--ft-typography-title-letter-spacing","",Qo.letterSpacing,"0.15px"),ie=bo.extend("--ft-typography-title-line-height","",Qo.lineHeight,"1.2"),ae=bo.extend("--ft-typography-title-text-transform","",Qo.textTransform,"inherit"),ne=bo.extend("--ft-typography-title-dense-font-family","",qo),se=bo.extend("--ft-typography-title-dense-font-size","",Qo.fontSize,"14px"),ce=bo.extend("--ft-typography-title-dense-font-weight","",Qo.fontWeight,"normal"),le=bo.extend("--ft-typography-title-dense-letter-spacing","",Qo.letterSpacing,"0.105px"),pe=bo.extend("--ft-typography-title-dense-line-height","",Qo.lineHeight,"1.7"),fe=bo.extend("--ft-typography-title-dense-text-transform","",Qo.textTransform,"inherit"),he=bo.extend("--ft-typography-subtitle1-font-family","",Xo),de=bo.extend("--ft-typography-subtitle1-font-size","",Qo.fontSize,"16px"),ye=bo.extend("--ft-typography-subtitle1-font-weight","",Qo.fontWeight,"600"),ge=bo.extend("--ft-typography-subtitle1-letter-spacing","",Qo.letterSpacing,"0.144px"),ue=bo.extend("--ft-typography-subtitle1-line-height","",Qo.lineHeight,"1.5"),be=bo.extend("--ft-typography-subtitle1-text-transform","",Qo.textTransform,"inherit"),me=bo.extend("--ft-typography-subtitle2-font-family","",Xo),Oe=bo.extend("--ft-typography-subtitle2-font-size","",Qo.fontSize,"14px"),xe=bo.extend("--ft-typography-subtitle2-font-weight","",Qo.fontWeight,"normal"),Ne=bo.extend("--ft-typography-subtitle2-letter-spacing","",Qo.letterSpacing,"0.098px"),Se=bo.extend("--ft-typography-subtitle2-line-height","",Qo.lineHeight,"1.7"),ve=bo.extend("--ft-typography-subtitle2-text-transform","",Qo.textTransform,"inherit"),we=bo.extend("--ft-typography-body1-font-family","",Xo),Ce=bo.extend("--ft-typography-body1-font-size","",Qo.fontSize,"16px"),Re=bo.extend("--ft-typography-body1-font-weight","",Qo.fontWeight,"normal"),Ue=bo.extend("--ft-typography-body1-letter-spacing","",Qo.letterSpacing,"0.496px"),Ee=bo.extend("--ft-typography-body1-line-height","",Qo.lineHeight,"1.5"),Ie=bo.extend("--ft-typography-body1-text-transform","",Qo.textTransform,"inherit"),We=bo.extend("--ft-typography-body2-font-family","",Xo),$e=bo.extend("--ft-typography-body2-font-size","",Qo.fontSize,"14px"),Le=bo.extend("--ft-typography-body2-font-weight","",Qo.fontWeight,"normal"),ke=bo.extend("--ft-typography-body2-letter-spacing","",Qo.letterSpacing,"0.252px"),Ke=bo.extend("--ft-typography-body2-line-height","",Qo.lineHeight,"1.4"),Ze=bo.extend("--ft-typography-body2-text-transform","",Qo.textTransform,"inherit"),ze=bo.extend("--ft-typography-caption-font-family","",Xo),Fe=bo.extend("--ft-typography-caption-font-size","",Qo.fontSize,"12px"),Ae=bo.extend("--ft-typography-caption-font-weight","",Qo.fontWeight,"normal"),Me=bo.extend("--ft-typography-caption-letter-spacing","",Qo.letterSpacing,"0.396px"),De=bo.extend("--ft-typography-caption-line-height","",Qo.lineHeight,"1.33"),Be=bo.extend("--ft-typography-caption-text-transform","",Qo.textTransform,"inherit"),Pe=bo.extend("--ft-typography-breadcrumb-font-family","",Xo),He=bo.extend("--ft-typography-breadcrumb-font-size","",Qo.fontSize,"10px"),_e=bo.extend("--ft-typography-breadcrumb-font-weight","",Qo.fontWeight,"normal"),je=bo.extend("--ft-typography-breadcrumb-letter-spacing","",Qo.letterSpacing,"0.33px"),Te=bo.extend("--ft-typography-breadcrumb-line-height","",Qo.lineHeight,"1.6"),Ge=bo.extend("--ft-typography-breadcrumb-text-transform","",Qo.textTransform,"inherit"),Ye=bo.extend("--ft-typography-overline-font-family","",Xo),Je=bo.extend("--ft-typography-overline-font-size","",Qo.fontSize,"10px"),Ve=bo.extend("--ft-typography-overline-font-weight","",Qo.fontWeight,"normal"),qe=bo.extend("--ft-typography-overline-letter-spacing","",Qo.letterSpacing,"1.5px"),Xe=bo.extend("--ft-typography-overline-line-height","",Qo.lineHeight,"1.6"),Qe=bo.extend("--ft-typography-overline-text-transform","",Qo.textTransform,"uppercase"),tr=bo.extend("--ft-typography-button-font-family","",Xo),or=bo.extend("--ft-typography-button-font-size","",Qo.fontSize,"14px"),er=bo.extend("--ft-typography-button-font-weight","",Qo.fontWeight,"600"),rr=bo.extend("--ft-typography-button-letter-spacing","",Qo.letterSpacing,"1.246px"),ir=bo.extend("--ft-typography-button-line-height","",Qo.lineHeight,"1.15"),ar=bo.extend("--ft-typography-button-text-transform","",Qo.textTransform,"uppercase"),nr=gt`
|
|
184
188
|
.ft-typography--title {
|
|
185
|
-
font-family: ${
|
|
186
|
-
font-size: ${
|
|
187
|
-
font-weight: ${
|
|
188
|
-
letter-spacing: ${
|
|
189
|
-
line-height: ${
|
|
190
|
-
text-transform: ${
|
|
189
|
+
font-family: ${te};
|
|
190
|
+
font-size: ${oe};
|
|
191
|
+
font-weight: ${ee};
|
|
192
|
+
letter-spacing: ${re};
|
|
193
|
+
line-height: ${ie};
|
|
194
|
+
text-transform: ${ae};
|
|
191
195
|
}
|
|
192
|
-
`,
|
|
196
|
+
`,sr=gt`
|
|
193
197
|
.ft-typography--title-dense {
|
|
194
|
-
font-family: ${
|
|
195
|
-
font-size: ${
|
|
196
|
-
font-weight: ${
|
|
197
|
-
letter-spacing: ${
|
|
198
|
-
line-height: ${
|
|
199
|
-
text-transform: ${
|
|
198
|
+
font-family: ${ne};
|
|
199
|
+
font-size: ${se};
|
|
200
|
+
font-weight: ${ce};
|
|
201
|
+
letter-spacing: ${le};
|
|
202
|
+
line-height: ${pe};
|
|
203
|
+
text-transform: ${fe};
|
|
200
204
|
}
|
|
201
|
-
`,
|
|
205
|
+
`,cr=gt`
|
|
202
206
|
.ft-typography--subtitle1 {
|
|
203
|
-
font-family: ${
|
|
204
|
-
font-size: ${
|
|
205
|
-
font-weight: ${
|
|
206
|
-
letter-spacing: ${
|
|
207
|
-
line-height: ${
|
|
208
|
-
text-transform: ${
|
|
207
|
+
font-family: ${he};
|
|
208
|
+
font-size: ${de};
|
|
209
|
+
font-weight: ${ye};
|
|
210
|
+
letter-spacing: ${ge};
|
|
211
|
+
line-height: ${ue};
|
|
212
|
+
text-transform: ${be};
|
|
209
213
|
}
|
|
210
|
-
`,
|
|
214
|
+
`,lr=gt`
|
|
211
215
|
.ft-typography--subtitle2 {
|
|
212
|
-
font-family: ${
|
|
213
|
-
font-size: ${
|
|
214
|
-
font-weight: ${
|
|
215
|
-
letter-spacing: ${
|
|
216
|
-
line-height: ${
|
|
217
|
-
text-transform: ${
|
|
216
|
+
font-family: ${me};
|
|
217
|
+
font-size: ${Oe};
|
|
218
|
+
font-weight: ${xe};
|
|
219
|
+
letter-spacing: ${Ne};
|
|
220
|
+
line-height: ${Se};
|
|
221
|
+
text-transform: ${ve};
|
|
218
222
|
}
|
|
219
223
|
|
|
220
|
-
`,
|
|
224
|
+
`,pr=gt`
|
|
221
225
|
.ft-typography--body1 {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
225
|
-
letter-spacing: ${
|
|
226
|
-
line-height: ${
|
|
227
|
-
text-transform: ${
|
|
226
|
+
font-family: ${we};
|
|
227
|
+
font-size: ${Ce};
|
|
228
|
+
font-weight: ${Re};
|
|
229
|
+
letter-spacing: ${Ue};
|
|
230
|
+
line-height: ${Ee};
|
|
231
|
+
text-transform: ${Ie};
|
|
228
232
|
}
|
|
229
|
-
`,
|
|
233
|
+
`,fr=gt`
|
|
230
234
|
.ft-typography--body2 {
|
|
231
|
-
font-family: ${
|
|
232
|
-
font-size: ${
|
|
233
|
-
font-weight: ${
|
|
234
|
-
letter-spacing: ${
|
|
235
|
-
line-height: ${
|
|
236
|
-
text-transform: ${
|
|
235
|
+
font-family: ${We};
|
|
236
|
+
font-size: ${$e};
|
|
237
|
+
font-weight: ${Le};
|
|
238
|
+
letter-spacing: ${ke};
|
|
239
|
+
line-height: ${Ke};
|
|
240
|
+
text-transform: ${Ze};
|
|
237
241
|
}
|
|
238
|
-
`,
|
|
242
|
+
`,hr=gt`
|
|
239
243
|
.ft-typography--caption {
|
|
240
|
-
font-family: ${
|
|
241
|
-
font-size: ${
|
|
242
|
-
font-weight: ${
|
|
243
|
-
letter-spacing: ${
|
|
244
|
-
line-height: ${
|
|
245
|
-
text-transform: ${
|
|
244
|
+
font-family: ${ze};
|
|
245
|
+
font-size: ${Fe};
|
|
246
|
+
font-weight: ${Ae};
|
|
247
|
+
letter-spacing: ${Me};
|
|
248
|
+
line-height: ${De};
|
|
249
|
+
text-transform: ${Be};
|
|
246
250
|
}
|
|
247
|
-
`,
|
|
251
|
+
`,dr=gt`
|
|
248
252
|
.ft-typography--breadcrumb {
|
|
249
|
-
font-family: ${
|
|
250
|
-
font-size: ${
|
|
251
|
-
font-weight: ${
|
|
252
|
-
letter-spacing: ${
|
|
253
|
-
line-height: ${
|
|
254
|
-
text-transform: ${
|
|
253
|
+
font-family: ${Pe};
|
|
254
|
+
font-size: ${He};
|
|
255
|
+
font-weight: ${_e};
|
|
256
|
+
letter-spacing: ${je};
|
|
257
|
+
line-height: ${Te};
|
|
258
|
+
text-transform: ${Ge};
|
|
255
259
|
}
|
|
256
|
-
`,
|
|
260
|
+
`,yr=gt`
|
|
257
261
|
.ft-typography--overline {
|
|
258
|
-
font-family: ${
|
|
259
|
-
font-size: ${
|
|
260
|
-
font-weight: ${
|
|
261
|
-
letter-spacing: ${
|
|
262
|
-
line-height: ${
|
|
263
|
-
text-transform: ${
|
|
262
|
+
font-family: ${Ye};
|
|
263
|
+
font-size: ${Je};
|
|
264
|
+
font-weight: ${Ve};
|
|
265
|
+
letter-spacing: ${qe};
|
|
266
|
+
line-height: ${Xe};
|
|
267
|
+
text-transform: ${Qe};
|
|
264
268
|
}
|
|
265
|
-
`,
|
|
269
|
+
`,gr=gt`
|
|
266
270
|
.ft-typography--button {
|
|
267
|
-
font-family: ${
|
|
268
|
-
font-size: ${
|
|
269
|
-
font-weight: ${
|
|
270
|
-
letter-spacing: ${
|
|
271
|
-
line-height: ${
|
|
272
|
-
text-transform: ${
|
|
271
|
+
font-family: ${tr};
|
|
272
|
+
font-size: ${or};
|
|
273
|
+
font-weight: ${er};
|
|
274
|
+
letter-spacing: ${rr};
|
|
275
|
+
line-height: ${ir};
|
|
276
|
+
text-transform: ${ar};
|
|
273
277
|
}
|
|
274
|
-
`,
|
|
278
|
+
`,ur=gt`
|
|
275
279
|
.ft-typography {
|
|
276
280
|
vertical-align: inherit;
|
|
277
281
|
}
|
|
278
|
-
`,
|
|
282
|
+
`,br=[Object.keys(Oo).map((t=>function(t){const o=Oo[t];return gt`
|
|
279
283
|
.ft-typography--${yt(t)} {
|
|
280
284
|
font-family: ${o.fontFamily};
|
|
281
285
|
font-size: ${o.fontSize};
|
|
@@ -284,14 +288,14 @@ const _o=Symbol.for(""),jo=t=>{if(t?.r===_o)return t?._$litStatic$},To=t=>({_$li
|
|
|
284
288
|
line-height: ${o.lineHeight};
|
|
285
289
|
text-transform: ${o.textCase};
|
|
286
290
|
}
|
|
287
|
-
`}(t)))];var
|
|
288
|
-
<${
|
|
291
|
+
`}(t)))];var mr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Or extends Wo{constructor(){super(...arguments),this.variant=Vo.body1}render(){return this.element?Jo`
|
|
292
|
+
<${Go(this.element)}
|
|
289
293
|
class="ft-typography ft-typography--${this.variant}">
|
|
290
294
|
<slot></slot>
|
|
291
|
-
</${
|
|
292
|
-
`:
|
|
295
|
+
</${Go(this.element)}>
|
|
296
|
+
`:Jo`
|
|
293
297
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
294
|
-
`}}
|
|
298
|
+
`}}Or.styles=[nr,sr,cr,lr,pr,fr,hr,dr,yr,gr,ur,...br],mr([C()],Or.prototype,"element",void 0),mr([C()],Or.prototype,"variant",void 0),E("ft-typography")(Or);const xr={noticeColor:bo.extend("--ft-notice-color","",No.colorPrimary),noticeIconColor:bo.extend("--ft-notice-icon-color","",No.colorOnPrimary),borderRadius:bo.external(No.borderRadiusS,"Design System")},Nr=gt`
|
|
295
299
|
.ft-notice {
|
|
296
300
|
display: inline-flex;
|
|
297
301
|
align-items: stretch;
|
|
@@ -299,28 +303,28 @@ const _o=Symbol.for(""),jo=t=>{if(t?.r===_o)return t?._$litStatic$},To=t=>({_$li
|
|
|
299
303
|
}
|
|
300
304
|
|
|
301
305
|
ft-icon {
|
|
302
|
-
${
|
|
306
|
+
${Sr=Do.size,vr="24px",uo(`${Sr.name}: ${vr}`)};
|
|
303
307
|
padding: 0 8px;
|
|
304
308
|
display: flex;
|
|
305
309
|
align-self: center;
|
|
306
310
|
}
|
|
307
311
|
|
|
308
312
|
.ft-icon {
|
|
309
|
-
color: ${
|
|
310
|
-
background-color: ${
|
|
313
|
+
color: ${xr.noticeIconColor};
|
|
314
|
+
background-color: ${xr.noticeColor};
|
|
311
315
|
display: flex;
|
|
312
316
|
align-items: center;
|
|
313
|
-
border-top-left-radius: ${
|
|
314
|
-
border-bottom-left-radius: ${
|
|
317
|
+
border-top-left-radius: ${xr.borderRadius};
|
|
318
|
+
border-bottom-left-radius: ${xr.borderRadius};
|
|
315
319
|
}
|
|
316
320
|
|
|
317
321
|
.ft-notice-label {
|
|
318
322
|
padding: 8px;
|
|
319
|
-
border-top-right-radius: ${
|
|
320
|
-
border-bottom-right-radius: ${
|
|
321
|
-
border: 1px solid ${
|
|
323
|
+
border-top-right-radius: ${xr.borderRadius};
|
|
324
|
+
border-bottom-right-radius: ${xr.borderRadius};
|
|
325
|
+
border: 1px solid ${xr.noticeColor};
|
|
322
326
|
}
|
|
323
|
-
`;var
|
|
327
|
+
`;var Sr,vr,wr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Cr extends Wo{constructor(){super(...arguments),this.icon="info"}render(){return qt`
|
|
324
328
|
<div class="ft-notice">
|
|
325
329
|
<div class="ft-icon">
|
|
326
330
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -329,4 +333,4 @@ const _o=Symbol.for(""),jo=t=>{if(t?.r===_o)return t?._$litStatic$},To=t=>({_$li
|
|
|
329
333
|
<slot></slot>
|
|
330
334
|
</ft-typography>
|
|
331
335
|
</div>
|
|
332
|
-
`}}
|
|
336
|
+
`}}Cr.elementDefinitions={"ft-icon":_o,"ft-typography":Or},Cr.styles=Nr,wr([C({type:String})],Cr.prototype,"icon",void 0),E("ft-notice")(Cr),t.FtNotice=Cr,t.FtNoticeCssVariables=xr,t.styles=Nr}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Notice to display different messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "1.1.
|
|
23
|
-
"@fluid-topics/ft-typography": "1.1.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.1.2",
|
|
23
|
+
"@fluid-topics/ft-typography": "1.1.2",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.1.2",
|
|
25
25
|
"lit": "3.1.0"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
|
|
28
28
|
}
|