@fluid-topics/ft-notice 0.2.15 → 0.2.16
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.inline-styles.js +12 -10
- package/build/ft-notice.light.js +32 -30
- package/build/ft-notice.min.js +17 -15
- package/package.json +5 -5
|
@@ -46,13 +46,13 @@ var i;null===(i=window.HTMLSlotElement)||void 0===i||i.prototype.assignedElement
|
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
var b;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:v}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f:globalThis.reactiveElementVersions=[]).push("1.3.2");const w=globalThis.trustedTypes,$=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,O=`lit$${(Math.random()+"").slice(9)}$`,S="?"+O,N=`<${S}>`,C=document,E=(t="")=>C.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,k=/>/g,z=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,L=/'/g,j=/"/g,A=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),B=new WeakMap,D=C.createTreeWalker(C,129,null,!1),W=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=U;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===U?"!--"===l[1]?r=F:void 0!==l[1]?r=k:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=z):void 0!==l[3]&&(r=z):r===z?">"===l[0]?(r=null!=n?n:U,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?z:'"'===l[3]?j:L):r===j||r===L?r=z:r===F||r===k?r=U:(r=z,n=void 0);const p=r===z&&t[e+1].startsWith("/>")?" ":"";s+=r===U?i+N:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+O+p):i+O+(-2===c?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,c]=W(t,e);if(this.el=K.createElement(l,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(O)){const i=c[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(O),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?X:"@"===e[1]?G:
|
|
49
|
+
var b;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:v}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f:globalThis.reactiveElementVersions=[]).push("1.3.2");const w=globalThis.trustedTypes,$=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,O=`lit$${(Math.random()+"").slice(9)}$`,S="?"+O,N=`<${S}>`,C=document,E=(t="")=>C.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,k=/>/g,z=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,L=/'/g,j=/"/g,A=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),B=new WeakMap,D=C.createTreeWalker(C,129,null,!1),W=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=U;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===U?"!--"===l[1]?r=F:void 0!==l[1]?r=k:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=z):void 0!==l[3]&&(r=z):r===z?">"===l[0]?(r=null!=n?n:U,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?z:'"'===l[3]?j:L):r===j||r===L?r=z:r===F||r===k?r=U:(r=z,n=void 0);const p=r===z&&t[e+1].startsWith("/>")?" ":"";s+=r===U?i+N:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+O+p):i+O+(-2===c?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,c]=W(t,e);if(this.el=K.createElement(l,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(O)){const i=c[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(O),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?X:"@"===e[1]?G:Z})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split(O),e=t.length-1;if(e>0){o.textContent=w?w.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],E()),D.nextNode(),a.push({type:2,index:++n});o.append(t[e],E())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(O,t+1));)a.push({type:7,index:n}),t+=O.length-1}n++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}}function H(t,e,i=t,o){var n,s,r,a;if(e===_)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const c=R(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=H(t,l._$AS(t,e.values),l,o)),e}class I{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:C).importNode(i,!0);D.currentNode=n;let s=D.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new V(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Q(s,this,t)),this.v.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=D.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,o){var n;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),R(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return M(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==P&&R(this._$AH)?this._$AA.nextSibling.data=t:this.k(C.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new I(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=B.get(t.strings);return void 0===e&&B.set(t.strings,e=new K(t)),e}S(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new V(this.M(E()),this.M(E()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,o,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=H(this,t,e,0),s=!R(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=H(this,o[i+r],e,r),a===_&&(a=this._$AH[r]),s||(s=!R(a)||a!==this._$AH[r]),a===P?t=P:t!==P&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.C(t)}C(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends Z{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===P?void 0:t}}const J=w?w.emptyScript:"";class X extends Z{constructor(){super(...arguments),this.type=4}C(t){t&&t!==P?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class G extends Z{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=H(this,t,e,0))&&void 0!==i?i:P)===_)return;const o=this._$AH,n=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==P&&(o===P||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const Y=window.litHtmlPolyfillSupport;
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
var tt,et;null==Y||Y(K,
|
|
55
|
+
var tt,et;null==Y||Y(K,V),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.2.4");class it extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new V(e.insertBefore(E(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return _}}it.finalized=!0,it._$litElement$=!0,null===(tt=globalThis.litElementHydrateSupport)||void 0===tt||tt.call(globalThis,{LitElement:it});const ot=globalThis.litElementPolyfillSupport;null==ot||ot({LitElement:it}),(null!==(et=globalThis.litElementVersions)&&void 0!==et?et:globalThis.litElementVersions=[]).push("3.2.0");class nt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new nt(t,e,void 0,i)}static extend(t,e,i){return new nt(t,e.category,e,i)}static external(t,e){return new nt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return c`var(${l(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):l(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const st={colorPrimary:nt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:nt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:nt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:nt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:nt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:nt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:nt.create("--ft-color-error","COLOR","#B00020"),colorOutline:nt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:nt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:nt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:nt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:nt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:nt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:nt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:nt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:nt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:nt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:nt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:nt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:nt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:nt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:nt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:nt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:nt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:nt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:nt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:nt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:nt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:nt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:nt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:nt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:nt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:nt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:nt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:nt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:nt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:nt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:nt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:nt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:nt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:nt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:nt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:nt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:nt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:nt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:nt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:nt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:nt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:nt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:nt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:nt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:nt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:nt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:nt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:nt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:nt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:nt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:nt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:nt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:nt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:nt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:nt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
56
56
|
/**
|
|
57
57
|
* @license
|
|
58
58
|
* Copyright 2021 Google LLC
|
|
@@ -89,8 +89,10 @@ class ht extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
|
|
|
89
89
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
90
90
|
</i>
|
|
91
91
|
`}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:""}getIcon(){var t,e;let i=this.textContent;return this.variant===ut.file_format?null!==(t=dt[i.toUpperCase()])&&void 0!==t?t:i:this.variant===ut.fluid_topics?null!==(e=ft[i.toUpperCase()])&&void 0!==e?e:i:P}}gt.elementDefinitions={},gt.styles=c`
|
|
92
|
-
:host
|
|
92
|
+
:host {
|
|
93
93
|
display: inline-block;
|
|
94
|
+
}
|
|
95
|
+
:host, i.ft-icon {
|
|
94
96
|
width: ${xt.size};
|
|
95
97
|
height: ${xt.size};
|
|
96
98
|
text-align: center;
|
|
@@ -133,7 +135,7 @@ function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){c
|
|
|
133
135
|
* Copyright 2020 Google LLC
|
|
134
136
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
137
|
*/
|
|
136
|
-
const mt=Symbol.for(""),vt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===mt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},bt=t=>({_$litStatic$:t,r:mt}),wt=new Map,$t=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(s=i[c],n=vt(s));)l+=n+e[++c],h=!0;a.push(s),r.push(l),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=wt.get(t))&&(r.raw=r,wt.set(t,e=r)),i=a}return t(e,...i)})(T);var Ot,St=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Ot||(Ot={}));const Nt=nt.extend("--ft-typography-font-family",st.titleFont),Ct=nt.extend("--ft-typography-font-family",st.contentFont),Et={fontFamily:Ct,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","
|
|
138
|
+
const mt=Symbol.for(""),vt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===mt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},bt=t=>({_$litStatic$:t,r:mt}),wt=new Map,$t=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(s=i[c],n=vt(s));)l+=n+e[++c],h=!0;a.push(s),r.push(l),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=wt.get(t))&&(r.raw=r,wt.set(t,e=r)),i=a}return t(e,...i)})(T);var Ot,St=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Ot||(Ot={}));const Nt=nt.extend("--ft-typography-font-family",st.titleFont),Ct=nt.extend("--ft-typography-font-family",st.contentFont),Et={fontFamily:Ct,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Rt=nt.extend("--ft-typography-title-font-family",Nt),Mt=nt.extend("--ft-typography-title-font-size",Et.fontSize,"20px"),Ut=nt.extend("--ft-typography-title-font-weight",Et.fontWeight,"normal"),Ft=nt.extend("--ft-typography-title-letter-spacing",Et.letterSpacing,"0.15px"),kt=nt.extend("--ft-typography-title-line-height",Et.lineHeight,"1.2"),zt=nt.extend("--ft-typography-title-text-transform",Et.textTransform,"inherit"),Lt=nt.extend("--ft-typography-title-dense-font-family",Nt),jt=nt.extend("--ft-typography-title-dense-font-size",Et.fontSize,"14px"),At=nt.extend("--ft-typography-title-dense-font-weight",Et.fontWeight,"normal"),Tt=nt.extend("--ft-typography-title-dense-letter-spacing",Et.letterSpacing,"0.105px"),_t=nt.extend("--ft-typography-title-dense-line-height",Et.lineHeight,"1.7"),Pt=nt.extend("--ft-typography-title-dense-text-transform",Et.textTransform,"inherit"),Bt=nt.extend("--ft-typography-subtitle1-font-family",Ct),Dt=nt.extend("--ft-typography-subtitle1-font-size",Et.fontSize,"16px"),Wt=nt.extend("--ft-typography-subtitle1-font-weight",Et.fontWeight,"600"),Kt=nt.extend("--ft-typography-subtitle1-letter-spacing",Et.letterSpacing,"0.144px"),Ht=nt.extend("--ft-typography-subtitle1-line-height",Et.lineHeight,"1.5"),It=nt.extend("--ft-typography-subtitle1-text-transform",Et.textTransform,"inherit"),Vt=nt.extend("--ft-typography-subtitle2-font-family",Ct),Zt=nt.extend("--ft-typography-subtitle2-font-size",Et.fontSize,"14px"),qt=nt.extend("--ft-typography-subtitle2-font-weight",Et.fontWeight,"normal"),Jt=nt.extend("--ft-typography-subtitle2-letter-spacing",Et.letterSpacing,"0.098px"),Xt=nt.extend("--ft-typography-subtitle2-line-height",Et.lineHeight,"1.7"),Gt=nt.extend("--ft-typography-subtitle2-text-transform",Et.textTransform,"inherit"),Qt=nt.extend("--ft-typography-body1-font-family",Ct),Yt=nt.extend("--ft-typography-body1-font-size",Et.fontSize,"16px"),te=nt.extend("--ft-typography-body1-font-weight",Et.fontWeight,"normal"),ee=nt.extend("--ft-typography-body1-letter-spacing",Et.letterSpacing,"0.496px"),ie=nt.extend("--ft-typography-body1-line-height",Et.lineHeight,"1.5"),oe=nt.extend("--ft-typography-body1-text-transform",Et.textTransform,"inherit"),ne=nt.extend("--ft-typography-body2-font-family",Ct),se=nt.extend("--ft-typography-body2-font-size",Et.fontSize,"14px"),re=nt.extend("--ft-typography-body2-font-weight",Et.fontWeight,"normal"),ae=nt.extend("--ft-typography-body2-letter-spacing",Et.letterSpacing,"0.252px"),le=nt.extend("--ft-typography-body2-line-height",Et.lineHeight,"1.4"),ce=nt.extend("--ft-typography-body2-text-transform",Et.textTransform,"inherit"),he=nt.extend("--ft-typography-caption-font-family",Ct),pe=nt.extend("--ft-typography-caption-font-size",Et.fontSize,"12px"),fe=nt.extend("--ft-typography-caption-font-weight",Et.fontWeight,"normal"),de=nt.extend("--ft-typography-caption-letter-spacing",Et.letterSpacing,"0.396px"),ue=nt.extend("--ft-typography-caption-line-height",Et.lineHeight,"1.33"),ye=nt.extend("--ft-typography-caption-text-transform",Et.textTransform,"inherit"),xe=nt.extend("--ft-typography-breadcrumb-font-family",Ct),ge=nt.extend("--ft-typography-breadcrumb-font-size",Et.fontSize,"10px"),me=nt.extend("--ft-typography-breadcrumb-font-weight",Et.fontWeight,"normal"),ve=nt.extend("--ft-typography-breadcrumb-letter-spacing",Et.letterSpacing,"0.33px"),be=nt.extend("--ft-typography-breadcrumb-line-height",Et.lineHeight,"1.6"),we=nt.extend("--ft-typography-breadcrumb-text-transform",Et.textTransform,"inherit"),$e=nt.extend("--ft-typography-overline-font-family",Ct),Oe=nt.extend("--ft-typography-overline-font-size",Et.fontSize,"10px"),Se=nt.extend("--ft-typography-overline-font-weight",Et.fontWeight,"normal"),Ne=nt.extend("--ft-typography-overline-letter-spacing",Et.letterSpacing,"1.5px"),Ce=nt.extend("--ft-typography-overline-line-height",Et.lineHeight,"1.6"),Ee=nt.extend("--ft-typography-overline-text-transform",Et.textTransform,"uppercase"),Re=nt.extend("--ft-typography-button-font-family",Ct),Me=nt.extend("--ft-typography-button-font-size",Et.fontSize,"14px"),Ue=nt.extend("--ft-typography-button-font-weight",Et.fontWeight,"600"),Fe=nt.extend("--ft-typography-button-letter-spacing",Et.letterSpacing,"1.246px"),ke=nt.extend("--ft-typography-button-line-height",Et.lineHeight,"1.15"),ze=nt.extend("--ft-typography-button-text-transform",Et.textTransform,"uppercase"),Le=c`
|
|
137
139
|
.ft-typography--title {
|
|
138
140
|
font-family: ${Rt};
|
|
139
141
|
font-size: ${Mt};
|
|
@@ -162,8 +164,8 @@ const mt=Symbol.for(""),vt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
162
164
|
}
|
|
163
165
|
`,Te=c`
|
|
164
166
|
.ft-typography--subtitle2 {
|
|
165
|
-
font-family: ${
|
|
166
|
-
font-size: ${
|
|
167
|
+
font-family: ${Vt};
|
|
168
|
+
font-size: ${Zt};
|
|
167
169
|
font-weight: ${qt};
|
|
168
170
|
letter-spacing: ${Jt};
|
|
169
171
|
line-height: ${Xt};
|
|
@@ -235,7 +237,7 @@ const mt=Symbol.for(""),vt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
235
237
|
.ft-typography {
|
|
236
238
|
vertical-align: inherit;
|
|
237
239
|
}
|
|
238
|
-
`],St([e()],He.prototype,"element",void 0),St([e()],He.prototype,"variant",void 0),o("ft-typography")(He);var Ie=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const
|
|
240
|
+
`],St([e()],He.prototype,"element",void 0),St([e()],He.prototype,"variant",void 0),o("ft-typography")(He);var Ie=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ve=nt.extend("--ft-notice-color",st.colorPrimary),Ze=nt.extend("--ft-notice-icon-color",st.colorOnPrimary),qe=nt.external(st.borderRadiusS,"Design System");class Je extends rt{constructor(){super(...arguments),this.icon="info"}static get styles(){return c`
|
|
239
241
|
.ft-notice {
|
|
240
242
|
display: inline-flex;
|
|
241
243
|
align-items: stretch;
|
|
@@ -250,8 +252,8 @@ const mt=Symbol.for(""),vt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
250
252
|
}
|
|
251
253
|
|
|
252
254
|
.ft-icon {
|
|
253
|
-
color: ${
|
|
254
|
-
background-color: ${
|
|
255
|
+
color: ${Ze};
|
|
256
|
+
background-color: ${Ve};
|
|
255
257
|
display: flex;
|
|
256
258
|
align-items: center;
|
|
257
259
|
border-top-left-radius: ${qe};
|
|
@@ -262,7 +264,7 @@ const mt=Symbol.for(""),vt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
262
264
|
padding: 8px;
|
|
263
265
|
border-top-right-radius: ${qe};
|
|
264
266
|
border-bottom-right-radius: ${qe};
|
|
265
|
-
border: 1px solid ${
|
|
267
|
+
border: 1px solid ${Ve};
|
|
266
268
|
}
|
|
267
269
|
`;var t,e}render(){return T`
|
|
268
270
|
<div class="ft-notice">
|
package/build/ft-notice.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e,i,o,n){var s,r;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",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=""}(s||(s={})),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=""}(r||(r={})),new Map([...["abw"].map((t=>[t,r.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,r.AUDIO])),...["avi"].map((t=>[t,r.AVI])),...["chm","xhs"].map((t=>[t,r.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,r.CODE])),...["csv"].map((t=>[t,r.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,r.DITA])),...["epub"].map((t=>[t,r.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,r.EXCEL])),...["flac"].map((t=>[t,r.FLAC])),...["gif"].map((t=>[t,r.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,r.GZIP])),...["html","htm","xhtml"].map((t=>[t,r.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,r.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,r.JPEG])),...["json"].map((t=>[t,r.JSON])),...["m4a","m4p"].map((t=>[t,r.M4A])),...["mov","qt"].map((t=>[t,r.MOV])),...["mp3"].map((t=>[t,r.MP3])),...["mp4","m4v"].map((t=>[t,r.MP4])),...["ogg","oga"].map((t=>[t,r.OGG])),...["pdf","ps"].map((t=>[t,r.PDF])),...["png"].map((t=>[t,r.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,r.POWERPOINT])),...["rar"].map((t=>[t,r.RAR])),...["stp"].map((t=>[t,r.STP])),...["txt","rtf","md","mdown"].map((t=>[t,r.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,r.VIDEO])),...["wav"].map((t=>[t,r.WAV])),...["wma"].map((t=>[t,r.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,r.WORD])),...["xml","xsl","rdf"].map((t=>[t,r.XML])),...["yaml","yml","x-yaml"].map((t=>[t,r.YAML])),...["zip"].map((t=>[t,r.ZIP]))]);var l,a=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(l||(l={}));const
|
|
1
|
+
!function(t,e,i,o,n){var s,r;!function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",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=""}(s||(s={})),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=""}(r||(r={})),new Map([...["abw"].map((t=>[t,r.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,r.AUDIO])),...["avi"].map((t=>[t,r.AVI])),...["chm","xhs"].map((t=>[t,r.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,r.CODE])),...["csv"].map((t=>[t,r.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,r.DITA])),...["epub"].map((t=>[t,r.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,r.EXCEL])),...["flac"].map((t=>[t,r.FLAC])),...["gif"].map((t=>[t,r.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,r.GZIP])),...["html","htm","xhtml"].map((t=>[t,r.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,r.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,r.JPEG])),...["json"].map((t=>[t,r.JSON])),...["m4a","m4p"].map((t=>[t,r.M4A])),...["mov","qt"].map((t=>[t,r.MOV])),...["mp3"].map((t=>[t,r.MP3])),...["mp4","m4v"].map((t=>[t,r.MP4])),...["ogg","oga"].map((t=>[t,r.OGG])),...["pdf","ps"].map((t=>[t,r.PDF])),...["png"].map((t=>[t,r.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,r.POWERPOINT])),...["rar"].map((t=>[t,r.RAR])),...["stp"].map((t=>[t,r.STP])),...["txt","rtf","md","mdown"].map((t=>[t,r.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,r.VIDEO])),...["wav"].map((t=>[t,r.WAV])),...["wma"].map((t=>[t,r.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,r.WORD])),...["xml","xsl","rdf"].map((t=>[t,r.XML])),...["yaml","yml","x-yaml"].map((t=>[t,r.YAML])),...["zip"].map((t=>[t,r.ZIP]))]);var l,a=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(l||(l={}));const f={size:e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class p extends e.FtLitElement{constructor(){super(...arguments),this.variant=l.fluid_topics}render(){return i.html`
|
|
2
2
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
3
3
|
${n.unsafeHTML(this.getIcon())}
|
|
4
4
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
@@ -9,16 +9,18 @@
|
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
var h;
|
|
13
|
-
:host
|
|
12
|
+
var h;p.elementDefinitions={},p.styles=i.css`
|
|
13
|
+
:host {
|
|
14
14
|
display: inline-block;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
}
|
|
16
|
+
:host, i.ft-icon {
|
|
17
|
+
width: ${f.size};
|
|
18
|
+
height: ${f.size};
|
|
17
19
|
text-align: center;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
i.ft-icon {
|
|
21
|
-
font-size: ${
|
|
23
|
+
font-size: ${f.size};
|
|
22
24
|
line-height: 1;
|
|
23
25
|
font-weight: normal;
|
|
24
26
|
text-transform: none;
|
|
@@ -32,23 +34,23 @@ var h;f.elementDefinitions={},f.styles=i.css`
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
.ft-icon--fluid-topics {
|
|
35
|
-
font-family: ${
|
|
37
|
+
font-family: ${f.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
.ft-icon--file-format {
|
|
39
|
-
font-family: ${
|
|
41
|
+
font-family: ${f.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
40
42
|
}
|
|
41
43
|
|
|
42
44
|
.ft-icon--material {
|
|
43
|
-
font-family: ${
|
|
45
|
+
font-family: ${f.materialFontFamily}, "Material Icons", sans-serif;
|
|
44
46
|
}
|
|
45
|
-
`,a([o.property()],
|
|
47
|
+
`,a([o.property()],p.prototype,"variant",void 0),a([o.query("slot")],p.prototype,"slottedContent",void 0),e.customElement("ft-icon")(p);const x=globalThis.trustedTypes,y=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,c=`lit$${(Math.random()+"").slice(9)}$`,g="?"+c,d=`<${g}>`,m=document,u=(t="")=>m.createComment(t),v=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,z=/>/g,N=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,j=/'/g,_=/"/g,A=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),I=new WeakMap,C=m.createTreeWalker(m,129,null,!1),M=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=$;for(let e=0;e<i;e++){const i=t[e];let l,a,f=-1,p=0;for(;p<i.length&&(r.lastIndex=p,a=r.exec(i),null!==a);)p=r.lastIndex,r===$?"!--"===a[1]?r=w:void 0!==a[1]?r=z:void 0!==a[2]?(A.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=N):void 0!==a[3]&&(r=N):r===N?">"===a[0]?(r=null!=n?n:$,f=-1):void 0===a[1]?f=-2:(f=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?N:'"'===a[3]?_:j):r===_||r===j?r=N:r===w||r===z?r=$:(r=N,n=void 0);const h=r===N&&t[e+1].startsWith("/>")?" ":"";s+=r===$?i+d:f>=0?(o.push(l),i.slice(0,f)+"$lit$"+i.slice(f)+c+h):i+c+(-2===f?(o.push(void 0),e):h)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,o]};class T{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,f]=M(t,e);if(this.el=T.createElement(a,i),C.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=C.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(c)){const i=f[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(c),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?G:"@"===e[1]?R:W})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split(c),e=t.length-1;if(e>0){o.textContent=x?x.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),C.nextNode(),l.push({type:2,index:++n});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===g)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(c,t+1));)l.push({type:7,index:n}),t+=c.length-1}n++}}static createElement(t,e){const i=m.createElement("template");return i.innerHTML=t,i}}function U(t,e,i=t,o){var n,s,r,l;if(e===O)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const f=v(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==f&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===f?a=void 0:(a=new f(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=U(t,a._$AS(t,e.values),a,o)),e}class E{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:m).importNode(i,!0);C.currentNode=n;let s=C.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new F(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new q(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=C.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class F{constructor(t,e,i,o){var n;this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),v(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return b(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==k&&v(this._$AH)?this._$AA.nextSibling.data=t:this.k(m.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=T.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new E(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new T(t)),e}S(t){b(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new F(this.M(u()),this.M(u()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class W{constructor(t,e,i,o,n){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=k}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=U(this,t,e,0),s=!v(t)||t!==this._$AH&&t!==O,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=U(this,o[i+r],e,r),l===O&&(l=this._$AH[r]),s||(s=!v(l)||l!==this._$AH[r]),l===k?t=k:t!==k&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.C(t)}C(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends W{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===k?void 0:t}}const Z=x?x.emptyScript:"";class G extends W{constructor(){super(...arguments),this.type=4}C(t){t&&t!==k?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class R extends W{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=U(this,t,e,0))&&void 0!==i?i:k)===O)return;const o=this._$AH,n=t===k&&o!==k||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==k&&(o===k||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class q{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(T,F),(null!==(h=globalThis.litHtmlVersions)&&void 0!==h?h:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
46
48
|
/**
|
|
47
49
|
* @license
|
|
48
50
|
* Copyright 2020 Google LLC
|
|
49
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
50
52
|
*/
|
|
51
|
-
const
|
|
53
|
+
const B=Symbol.for(""),D=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===B)return null===(i=t)||void 0===i?void 0:i._$litStatic$},L=t=>({_$litStatic$:t,r:B}),J=new Map,P=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],l=[];let a,f=0,p=!1;for(;f<o;){for(a=e[f];f<o&&void 0!==(s=i[f],n=D(s));)a+=n+e[++f],p=!0;l.push(s),r.push(a),f++}if(f===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=J.get(t))&&(r.raw=r,J.set(t,e=r)),i=l}return t(e,...i)})(S);var Q,V=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(Q||(Q={}));const X=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),Y=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),tt={fontFamily:Y,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=e.FtCssVariable.extend("--ft-typography-title-font-family",X),it=e.FtCssVariable.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=e.FtCssVariable.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),nt=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),st=e.FtCssVariable.extend("--ft-typography-title-line-height",tt.lineHeight,"1.2"),rt=e.FtCssVariable.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",X),at=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),ft=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),pt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),ht=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"1.7"),xt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),yt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Y),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),mt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"1.5"),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),vt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Y),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),zt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"1.7"),Nt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),jt=e.FtCssVariable.extend("--ft-typography-body1-font-family",Y),_t=e.FtCssVariable.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),At=e.FtCssVariable.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),St=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),Ot=e.FtCssVariable.extend("--ft-typography-body1-line-height",tt.lineHeight,"1.5"),kt=e.FtCssVariable.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit"),It=e.FtCssVariable.extend("--ft-typography-body2-font-family",Y),Ct=e.FtCssVariable.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),Mt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),Tt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),Ut=e.FtCssVariable.extend("--ft-typography-body2-line-height",tt.lineHeight,"1.4"),Et=e.FtCssVariable.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit"),Ft=e.FtCssVariable.extend("--ft-typography-caption-font-family",Y),Wt=e.FtCssVariable.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),Kt=e.FtCssVariable.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),Gt=e.FtCssVariable.extend("--ft-typography-caption-line-height",tt.lineHeight,"1.33"),Rt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit"),qt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Y),Ht=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Lt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"1.6"),Jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),Pt=e.FtCssVariable.extend("--ft-typography-overline-font-family",Y),Qt=e.FtCssVariable.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Vt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Xt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Yt=e.FtCssVariable.extend("--ft-typography-overline-line-height",tt.lineHeight,"1.6"),te=e.FtCssVariable.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),ee=e.FtCssVariable.extend("--ft-typography-button-font-family",Y),ie=e.FtCssVariable.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),oe=e.FtCssVariable.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),ne=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),se=e.FtCssVariable.extend("--ft-typography-button-line-height",tt.lineHeight,"1.15"),re=e.FtCssVariable.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase"),le=i.css`
|
|
52
54
|
.ft-typography--title {
|
|
53
55
|
font-family: ${et};
|
|
54
56
|
font-size: ${it};
|
|
@@ -61,12 +63,12 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
61
63
|
.ft-typography--title-dense {
|
|
62
64
|
font-family: ${lt};
|
|
63
65
|
font-size: ${at};
|
|
64
|
-
font-weight: ${
|
|
65
|
-
letter-spacing: ${
|
|
66
|
+
font-weight: ${ft};
|
|
67
|
+
letter-spacing: ${pt};
|
|
66
68
|
line-height: ${ht};
|
|
67
69
|
text-transform: ${xt};
|
|
68
70
|
}
|
|
69
|
-
`,
|
|
71
|
+
`,fe=i.css`
|
|
70
72
|
.ft-typography--subtitle1 {
|
|
71
73
|
font-family: ${yt};
|
|
72
74
|
font-size: ${ct};
|
|
@@ -75,7 +77,7 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
75
77
|
line-height: ${mt};
|
|
76
78
|
text-transform: ${ut};
|
|
77
79
|
}
|
|
78
|
-
`,
|
|
80
|
+
`,pe=i.css`
|
|
79
81
|
.ft-typography--subtitle2 {
|
|
80
82
|
font-family: ${vt};
|
|
81
83
|
font-size: ${bt};
|
|
@@ -91,15 +93,15 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
91
93
|
font-size: ${_t};
|
|
92
94
|
font-weight: ${At};
|
|
93
95
|
letter-spacing: ${St};
|
|
94
|
-
line-height: ${
|
|
95
|
-
text-transform: ${
|
|
96
|
+
line-height: ${Ot};
|
|
97
|
+
text-transform: ${kt};
|
|
96
98
|
}
|
|
97
99
|
`,xe=i.css`
|
|
98
100
|
.ft-typography--body2 {
|
|
99
|
-
font-family: ${
|
|
101
|
+
font-family: ${It};
|
|
100
102
|
font-size: ${Ct};
|
|
101
|
-
font-weight: ${
|
|
102
|
-
letter-spacing: ${
|
|
103
|
+
font-weight: ${Mt};
|
|
104
|
+
letter-spacing: ${Tt};
|
|
103
105
|
line-height: ${Ut};
|
|
104
106
|
text-transform: ${Et};
|
|
105
107
|
}
|
|
@@ -107,8 +109,8 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
107
109
|
.ft-typography--caption {
|
|
108
110
|
font-family: ${Ft};
|
|
109
111
|
font-size: ${Wt};
|
|
110
|
-
font-weight: ${
|
|
111
|
-
letter-spacing: ${
|
|
112
|
+
font-weight: ${Kt};
|
|
113
|
+
letter-spacing: ${Zt};
|
|
112
114
|
line-height: ${Gt};
|
|
113
115
|
text-transform: ${Rt};
|
|
114
116
|
}
|
|
@@ -116,9 +118,9 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
116
118
|
.ft-typography--breadcrumb {
|
|
117
119
|
font-family: ${qt};
|
|
118
120
|
font-size: ${Ht};
|
|
119
|
-
font-weight: ${
|
|
120
|
-
letter-spacing: ${
|
|
121
|
-
line-height: ${
|
|
121
|
+
font-weight: ${Bt};
|
|
122
|
+
letter-spacing: ${Dt};
|
|
123
|
+
line-height: ${Lt};
|
|
122
124
|
text-transform: ${Jt};
|
|
123
125
|
}
|
|
124
126
|
`,ge=i.css`
|
|
@@ -140,13 +142,13 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
140
142
|
text-transform: ${re};
|
|
141
143
|
}
|
|
142
144
|
`;class me extends e.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?P`
|
|
143
|
-
<${
|
|
145
|
+
<${L(this.element)}
|
|
144
146
|
class="ft-typography ft-typography--${this.variant}">
|
|
145
147
|
<slot></slot>
|
|
146
|
-
</${
|
|
148
|
+
</${L(this.element)}>
|
|
147
149
|
`:P`
|
|
148
150
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
149
|
-
`}}me.styles=[le,ae,pe,
|
|
151
|
+
`}}me.styles=[le,ae,fe,pe,he,xe,ye,ce,ge,de,i.css`
|
|
150
152
|
.ft-typography {
|
|
151
153
|
vertical-align: inherit;
|
|
152
154
|
}
|
|
@@ -158,7 +160,7 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
ft-icon {
|
|
161
|
-
${e.setVariable(
|
|
163
|
+
${e.setVariable(f.size,"20px")};
|
|
162
164
|
padding: 0 8px;
|
|
163
165
|
display: flex;
|
|
164
166
|
align-self: center;
|
|
@@ -188,4 +190,4 @@ const D=Symbol.for(""),L=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
188
190
|
<slot></slot>
|
|
189
191
|
</ft-typography>
|
|
190
192
|
</div>
|
|
191
|
-
`}}be.elementDefinitions={"ft-icon":
|
|
193
|
+
`}}be.elementDefinitions={"ft-icon":p,"ft-typography":me},ue([o.property({type:String})],be.prototype,"icon",void 0),e.customElement("ft-notice")(be),t.FtNotice=be,t.FtNoticeCssVariables=ve,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
package/build/ft-notice.min.js
CHANGED
|
@@ -46,13 +46,13 @@ var o;null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElement
|
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
var w;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:b}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.2");const $=globalThis.trustedTypes,O=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,N="?"+S,C=`<${N}>`,E=document,R=(t="")=>E.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,z=/>/g,j=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,L=/'/g,T=/"/g,A=/^(?:script|style|textarea|title)$/i,_=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),W=new WeakMap,D=E.createTreeWalker(E,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=F;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===F?"!--"===l[1]?r=k:void 0!==l[1]?r=z:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=j):void 0!==l[3]&&(r=j):r===j?">"===l[0]?(r=null!=n?n:F,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?j:'"'===l[3]?T:L):r===T||r===L?r=j:r===k||r===z?r=F:(r=j,n=void 0);const p=r===j&&t[e+1].startsWith("/>")?" ":"";s+=r===F?i+C:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+S+p):i+S+(-2===c?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==O?O.createHTML(a):a,o]};class H{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,c]=K(t,e);if(this.el=H.createElement(l,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const i=c[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?G:"@"===e[1]?Q:q})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split(S),e=t.length-1;if(e>0){o.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],R()),D.nextNode(),a.push({type:2,index:++n});o.append(t[e],R())}}}else if(8===o.nodeType)if(o.data===N)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var n,s,r,a;if(e===P)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const c=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=I(t,l._$AS(t,e.values),l,o)),e}class
|
|
49
|
+
var w;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:b}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.2");const $=globalThis.trustedTypes,O=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,N="?"+S,C=`<${N}>`,E=document,R=(t="")=>E.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,z=/>/g,j=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,L=/'/g,T=/"/g,A=/^(?:script|style|textarea|title)$/i,_=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),W=new WeakMap,D=E.createTreeWalker(E,129,null,!1),K=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=F;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===F?"!--"===l[1]?r=k:void 0!==l[1]?r=z:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=j):void 0!==l[3]&&(r=j):r===j?">"===l[0]?(r=null!=n?n:F,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?j:'"'===l[3]?T:L):r===T||r===L?r=j:r===k||r===z?r=F:(r=j,n=void 0);const p=r===j&&t[e+1].startsWith("/>")?" ":"";s+=r===F?i+C:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+S+p):i+S+(-2===c?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==O?O.createHTML(a):a,o]};class H{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,c]=K(t,e);if(this.el=H.createElement(l,i),D.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=D.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const i=c[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?G:"@"===e[1]?Q:q})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.test(o.tagName)){const t=o.textContent.split(S),e=t.length-1;if(e>0){o.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],R()),D.nextNode(),a.push({type:2,index:++n});o.append(t[e],R())}}}else if(8===o.nodeType)if(o.data===N)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var n,s,r,a;if(e===P)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const c=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=I(t,l._$AS(t,e.values),l,o)),e}class V{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:E).importNode(i,!0);D.currentNode=n;let s=D.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Z(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Y(s,this,t)),this.v.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=D.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var n;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),M(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==P&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return U(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==B&&M(this._$AH)?this._$AA.nextSibling.data=t:this.k(E.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new V(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new H(t)),e}S(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Z(this.M(R()),this.M(R()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class q{constructor(t,e,i,o,n){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=B}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=I(this,t,e,0),s=!M(t)||t!==this._$AH&&t!==P,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=I(this,o[i+r],e,r),a===P&&(a=this._$AH[r]),s||(s=!M(a)||a!==this._$AH[r]),a===B?t=B:t!==B&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.C(t)}C(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends q{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===B?void 0:t}}const X=$?$.emptyScript:"";class G extends q{constructor(){super(...arguments),this.type=4}C(t){t&&t!==B?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class Q extends q{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:B)===P)return;const o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Y{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const tt=window.litHtmlPolyfillSupport;
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2017 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
54
54
|
*/
|
|
55
|
-
var et,it;null==tt||tt(H,
|
|
55
|
+
var et,it;null==tt||tt(H,Z),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.2.4");class ot extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new Z(e.insertBefore(R(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return P}}ot.finalized=!0,ot._$litElement$=!0,null===(et=globalThis.litElementHydrateSupport)||void 0===et||et.call(globalThis,{LitElement:ot});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:ot}),(null!==(it=globalThis.litElementVersions)&&void 0!==it?it:globalThis.litElementVersions=[]).push("3.2.0");class st{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new st(t,e,void 0,i)}static extend(t,e,i){return new st(t,e.category,e,i)}static external(t,e){return new st(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return h`var(${c(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):c(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const rt={colorPrimary:st.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:st.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:st.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:st.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:st.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:st.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:st.create("--ft-color-error","COLOR","#B00020"),colorOutline:st.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:st.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:st.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:st.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:st.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:st.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:st.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:st.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:st.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:st.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:st.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:st.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:st.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:st.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:st.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:st.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:st.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:st.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:st.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:st.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:st.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:st.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:st.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:st.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:st.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:st.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:st.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:st.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:st.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:st.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:st.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:st.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:st.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:st.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:st.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:st.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:st.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:st.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:st.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:st.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:st.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:st.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:st.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:st.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:st.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:st.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:st.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:st.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:st.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:st.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:st.create("--ft-border-radius-XL","SIZE","16px"),titleFont:st.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:st.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:st.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:st.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
56
56
|
/**
|
|
57
57
|
* @license
|
|
58
58
|
* Copyright 2021 Google LLC
|
|
@@ -89,8 +89,10 @@ class pt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e
|
|
|
89
89
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
90
90
|
</i>
|
|
91
91
|
`}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:""}getIcon(){var t,e;let i=this.textContent;return this.variant===yt.file_format?null!==(t=ut[i.toUpperCase()])&&void 0!==t?t:i:this.variant===yt.fluid_topics?null!==(e=dt[i.toUpperCase()])&&void 0!==e?e:i:B}}mt.elementDefinitions={},mt.styles=h`
|
|
92
|
-
:host
|
|
92
|
+
:host {
|
|
93
93
|
display: inline-block;
|
|
94
|
+
}
|
|
95
|
+
:host, i.ft-icon {
|
|
94
96
|
width: ${gt.size};
|
|
95
97
|
height: ${gt.size};
|
|
96
98
|
text-align: center;
|
|
@@ -133,7 +135,7 @@ function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){c
|
|
|
133
135
|
* Copyright 2020 Google LLC
|
|
134
136
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
137
|
*/
|
|
136
|
-
const vt=Symbol.for(""),bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===vt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},wt=t=>({_$litStatic$:t,r:vt}),$t=new Map,Ot=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(s=i[c],n=bt(s));)l+=n+e[++c],h=!0;a.push(s),r.push(l),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=$t.get(t))&&(r.raw=r,$t.set(t,e=r)),i=a}return t(e,...i)})(_);var St,Nt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(St||(St={}));const Ct=st.extend("--ft-typography-font-family",rt.titleFont),Et=st.extend("--ft-typography-font-family",rt.contentFont),Rt={fontFamily:Et,fontSize:st.create("--ft-typography-font-size","SIZE","16px"),fontWeight:st.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:st.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:st.create("--ft-typography-line-height","
|
|
138
|
+
const vt=Symbol.for(""),bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===vt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},wt=t=>({_$litStatic$:t,r:vt}),$t=new Map,Ot=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(s=i[c],n=bt(s));)l+=n+e[++c],h=!0;a.push(s),r.push(l),c++}if(c===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=$t.get(t))&&(r.raw=r,$t.set(t,e=r)),i=a}return t(e,...i)})(_);var St,Nt=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(St||(St={}));const Ct=st.extend("--ft-typography-font-family",rt.titleFont),Et=st.extend("--ft-typography-font-family",rt.contentFont),Rt={fontFamily:Et,fontSize:st.create("--ft-typography-font-size","SIZE","16px"),fontWeight:st.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:st.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:st.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:st.create("--ft-typography-text-transform","UNKNOWN","inherit")},Mt=st.extend("--ft-typography-title-font-family",Ct),Ut=st.extend("--ft-typography-title-font-size",Rt.fontSize,"20px"),Ft=st.extend("--ft-typography-title-font-weight",Rt.fontWeight,"normal"),kt=st.extend("--ft-typography-title-letter-spacing",Rt.letterSpacing,"0.15px"),zt=st.extend("--ft-typography-title-line-height",Rt.lineHeight,"1.2"),jt=st.extend("--ft-typography-title-text-transform",Rt.textTransform,"inherit"),Lt=st.extend("--ft-typography-title-dense-font-family",Ct),Tt=st.extend("--ft-typography-title-dense-font-size",Rt.fontSize,"14px"),At=st.extend("--ft-typography-title-dense-font-weight",Rt.fontWeight,"normal"),_t=st.extend("--ft-typography-title-dense-letter-spacing",Rt.letterSpacing,"0.105px"),Pt=st.extend("--ft-typography-title-dense-line-height",Rt.lineHeight,"1.7"),Bt=st.extend("--ft-typography-title-dense-text-transform",Rt.textTransform,"inherit"),Wt=st.extend("--ft-typography-subtitle1-font-family",Et),Dt=st.extend("--ft-typography-subtitle1-font-size",Rt.fontSize,"16px"),Kt=st.extend("--ft-typography-subtitle1-font-weight",Rt.fontWeight,"600"),Ht=st.extend("--ft-typography-subtitle1-letter-spacing",Rt.letterSpacing,"0.144px"),It=st.extend("--ft-typography-subtitle1-line-height",Rt.lineHeight,"1.5"),Vt=st.extend("--ft-typography-subtitle1-text-transform",Rt.textTransform,"inherit"),Zt=st.extend("--ft-typography-subtitle2-font-family",Et),qt=st.extend("--ft-typography-subtitle2-font-size",Rt.fontSize,"14px"),Jt=st.extend("--ft-typography-subtitle2-font-weight",Rt.fontWeight,"normal"),Xt=st.extend("--ft-typography-subtitle2-letter-spacing",Rt.letterSpacing,"0.098px"),Gt=st.extend("--ft-typography-subtitle2-line-height",Rt.lineHeight,"1.7"),Qt=st.extend("--ft-typography-subtitle2-text-transform",Rt.textTransform,"inherit"),Yt=st.extend("--ft-typography-body1-font-family",Et),te=st.extend("--ft-typography-body1-font-size",Rt.fontSize,"16px"),ee=st.extend("--ft-typography-body1-font-weight",Rt.fontWeight,"normal"),ie=st.extend("--ft-typography-body1-letter-spacing",Rt.letterSpacing,"0.496px"),oe=st.extend("--ft-typography-body1-line-height",Rt.lineHeight,"1.5"),ne=st.extend("--ft-typography-body1-text-transform",Rt.textTransform,"inherit"),se=st.extend("--ft-typography-body2-font-family",Et),re=st.extend("--ft-typography-body2-font-size",Rt.fontSize,"14px"),ae=st.extend("--ft-typography-body2-font-weight",Rt.fontWeight,"normal"),le=st.extend("--ft-typography-body2-letter-spacing",Rt.letterSpacing,"0.252px"),ce=st.extend("--ft-typography-body2-line-height",Rt.lineHeight,"1.4"),he=st.extend("--ft-typography-body2-text-transform",Rt.textTransform,"inherit"),pe=st.extend("--ft-typography-caption-font-family",Et),fe=st.extend("--ft-typography-caption-font-size",Rt.fontSize,"12px"),de=st.extend("--ft-typography-caption-font-weight",Rt.fontWeight,"normal"),ue=st.extend("--ft-typography-caption-letter-spacing",Rt.letterSpacing,"0.396px"),ye=st.extend("--ft-typography-caption-line-height",Rt.lineHeight,"1.33"),xe=st.extend("--ft-typography-caption-text-transform",Rt.textTransform,"inherit"),ge=st.extend("--ft-typography-breadcrumb-font-family",Et),me=st.extend("--ft-typography-breadcrumb-font-size",Rt.fontSize,"10px"),ve=st.extend("--ft-typography-breadcrumb-font-weight",Rt.fontWeight,"normal"),be=st.extend("--ft-typography-breadcrumb-letter-spacing",Rt.letterSpacing,"0.33px"),we=st.extend("--ft-typography-breadcrumb-line-height",Rt.lineHeight,"1.6"),$e=st.extend("--ft-typography-breadcrumb-text-transform",Rt.textTransform,"inherit"),Oe=st.extend("--ft-typography-overline-font-family",Et),Se=st.extend("--ft-typography-overline-font-size",Rt.fontSize,"10px"),Ne=st.extend("--ft-typography-overline-font-weight",Rt.fontWeight,"normal"),Ce=st.extend("--ft-typography-overline-letter-spacing",Rt.letterSpacing,"1.5px"),Ee=st.extend("--ft-typography-overline-line-height",Rt.lineHeight,"1.6"),Re=st.extend("--ft-typography-overline-text-transform",Rt.textTransform,"uppercase"),Me=st.extend("--ft-typography-button-font-family",Et),Ue=st.extend("--ft-typography-button-font-size",Rt.fontSize,"14px"),Fe=st.extend("--ft-typography-button-font-weight",Rt.fontWeight,"600"),ke=st.extend("--ft-typography-button-letter-spacing",Rt.letterSpacing,"1.246px"),ze=st.extend("--ft-typography-button-line-height",Rt.lineHeight,"1.15"),je=st.extend("--ft-typography-button-text-transform",Rt.textTransform,"uppercase"),Le=h`
|
|
137
139
|
.ft-typography--title {
|
|
138
140
|
font-family: ${Mt};
|
|
139
141
|
font-size: ${Ut};
|
|
@@ -158,11 +160,11 @@ const vt=Symbol.for(""),bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
158
160
|
font-weight: ${Kt};
|
|
159
161
|
letter-spacing: ${Ht};
|
|
160
162
|
line-height: ${It};
|
|
161
|
-
text-transform: ${
|
|
163
|
+
text-transform: ${Vt};
|
|
162
164
|
}
|
|
163
165
|
`,_e=h`
|
|
164
166
|
.ft-typography--subtitle2 {
|
|
165
|
-
font-family: ${
|
|
167
|
+
font-family: ${Zt};
|
|
166
168
|
font-size: ${qt};
|
|
167
169
|
font-weight: ${Jt};
|
|
168
170
|
letter-spacing: ${Xt};
|
|
@@ -235,7 +237,7 @@ const vt=Symbol.for(""),bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
235
237
|
.ft-typography {
|
|
236
238
|
vertical-align: inherit;
|
|
237
239
|
}
|
|
238
|
-
`],Nt([i()],Ie.prototype,"element",void 0),Nt([i()],Ie.prototype,"variant",void 0),n("ft-typography")(Ie);var
|
|
240
|
+
`],Nt([i()],Ie.prototype,"element",void 0),Nt([i()],Ie.prototype,"variant",void 0),n("ft-typography")(Ie);var Ve=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ze={noticeColor:st.extend("--ft-notice-color",rt.colorPrimary),noticeIconColor:st.extend("--ft-notice-icon-color",rt.colorOnPrimary),borderRadius:st.external(rt.borderRadiusS,"Design System")};class qe extends at{constructor(){super(...arguments),this.icon="info"}static get styles(){return h`
|
|
239
241
|
.ft-notice {
|
|
240
242
|
display: inline-flex;
|
|
241
243
|
align-items: stretch;
|
|
@@ -250,19 +252,19 @@ const vt=Symbol.for(""),bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
250
252
|
}
|
|
251
253
|
|
|
252
254
|
.ft-icon {
|
|
253
|
-
color: ${
|
|
254
|
-
background-color: ${
|
|
255
|
+
color: ${Ze.noticeIconColor};
|
|
256
|
+
background-color: ${Ze.noticeColor};
|
|
255
257
|
display: flex;
|
|
256
258
|
align-items: center;
|
|
257
|
-
border-top-left-radius: ${
|
|
258
|
-
border-bottom-left-radius: ${
|
|
259
|
+
border-top-left-radius: ${Ze.borderRadius};
|
|
260
|
+
border-bottom-left-radius: ${Ze.borderRadius};
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
.ft-notice-label {
|
|
262
264
|
padding: 8px;
|
|
263
|
-
border-top-right-radius: ${
|
|
264
|
-
border-bottom-right-radius: ${
|
|
265
|
-
border: 1px solid ${
|
|
265
|
+
border-top-right-radius: ${Ze.borderRadius};
|
|
266
|
+
border-bottom-right-radius: ${Ze.borderRadius};
|
|
267
|
+
border: 1px solid ${Ze.noticeColor};
|
|
266
268
|
}
|
|
267
269
|
`;var t,e}render(){return _`
|
|
268
270
|
<div class="ft-notice">
|
|
@@ -273,4 +275,4 @@ const vt=Symbol.for(""),bt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)=
|
|
|
273
275
|
<slot></slot>
|
|
274
276
|
</ft-typography>
|
|
275
277
|
</div>
|
|
276
|
-
`}}qe.elementDefinitions={"ft-icon":mt,"ft-typography":Ie},
|
|
278
|
+
`}}qe.elementDefinitions={"ft-icon":mt,"ft-typography":Ie},Ve([i({type:String})],qe.prototype,"icon",void 0),n("ft-notice")(qe),t.FtNotice=qe,t.FtNoticeCssVariables=Ze,Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.16",
|
|
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": "^0.2.
|
|
23
|
-
"@fluid-topics/ft-typography": "^0.2.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "^0.2.
|
|
22
|
+
"@fluid-topics/ft-icon": "^0.2.16",
|
|
23
|
+
"@fluid-topics/ft-typography": "^0.2.16",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "^0.2.16",
|
|
25
25
|
"lit": "2.1.3"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "d57a682474d27df7e667d8616a2fbca7643d51c2"
|
|
28
28
|
}
|