@fluid-topics/ft-notice 0.1.18 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-notice.inline-styles.js +127 -129
- package/build/ft-notice.light.js +124 -126
- package/build/ft-notice.min.js +126 -128
- package/package.json +5 -5
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.2.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,
|
|
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.2.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,A=/"/g,T=/^(?: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]?(T.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]?A:L):r===A||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(T.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 Z{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 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 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 V{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.S(t):(t=>{var e;return U(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==B&&M(this._$AH)?this._$AA.nextSibling.data=t:this.S(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 Z(n,this),e=t.p(this.options);t.m(i),this.S(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}A(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 V(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.k(t)}k(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}k(t){this.element[this.name]=t===B?void 0:t}}const X=$?$.emptyScript:"";class G extends q{constructor(){super(...arguments),this.type=4}k(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(
|
|
55
|
+
var et,it;null==tt||tt(H,V),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.1.3");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 V(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.1.2");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
|
|
@@ -83,161 +83,159 @@ const ht=2;
|
|
|
83
83
|
* Copyright 2017 Google LLC
|
|
84
84
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
85
85
|
*/
|
|
86
|
-
class pt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=B,t.type!==ht)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||null==t)return this.vt=void 0,this.it=t;if(t===P)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var dt,ut;!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=""}(dt||(dt={})),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=""}(ut||(ut={})),new Map([...["abw"].map((t=>[t,ut.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,ut.AUDIO])),...["avi"].map((t=>[t,ut.AVI])),...["chm","xhs"].map((t=>[t,ut.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,ut.CODE])),...["csv"].map((t=>[t,ut.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ut.DITA])),...["epub"].map((t=>[t,ut.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ut.EXCEL])),...["flac"].map((t=>[t,ut.FLAC])),...["gif"].map((t=>[t,ut.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ut.GZIP])),...["html","htm","xhtml"].map((t=>[t,ut.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,ut.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ut.JPEG])),...["json"].map((t=>[t,ut.JSON])),...["m4a","m4p"].map((t=>[t,ut.M4A])),...["mov","qt"].map((t=>[t,ut.MOV])),...["mp3"].map((t=>[t,ut.MP3])),...["mp4","m4v"].map((t=>[t,ut.MP4])),...["ogg","oga"].map((t=>[t,ut.OGG])),...["pdf","ps"].map((t=>[t,ut.PDF])),...["png"].map((t=>[t,ut.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ut.POWERPOINT])),...["rar"].map((t=>[t,ut.RAR])),...["stp"].map((t=>[t,ut.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ut.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,ut.VIDEO])),...["wav"].map((t=>[t,ut.WAV])),...["wma"].map((t=>[t,ut.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ut.WORD])),...["xml","xsl","rdf"].map((t=>[t,ut.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ut.YAML])),...["zip"].map((t=>[t,ut.ZIP]))]);var yt,xt=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.fluid_topics="fluid-topics",t.file_format="file-format"}(yt||(yt={}));const gt={size:st.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:st.extend("--ft-icon-fluid-topics-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:st.extend("--ft-icon-file-format-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-mime"))},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
`],xt([i()],bt.prototype,"variant",void 0),xt([
|
|
86
|
+
class pt extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=B,t.type!==ht)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||null==t)return this.vt=void 0,this.it=t;if(t===P)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}pt.directiveName="unsafeHTML",pt.resultType=1;const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(pt);var dt,ut;!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=""}(dt||(dt={})),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=""}(ut||(ut={})),new Map([...["abw"].map((t=>[t,ut.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,ut.AUDIO])),...["avi"].map((t=>[t,ut.AVI])),...["chm","xhs"].map((t=>[t,ut.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,ut.CODE])),...["csv"].map((t=>[t,ut.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ut.DITA])),...["epub"].map((t=>[t,ut.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ut.EXCEL])),...["flac"].map((t=>[t,ut.FLAC])),...["gif"].map((t=>[t,ut.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ut.GZIP])),...["html","htm","xhtml"].map((t=>[t,ut.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,ut.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ut.JPEG])),...["json"].map((t=>[t,ut.JSON])),...["m4a","m4p"].map((t=>[t,ut.M4A])),...["mov","qt"].map((t=>[t,ut.MOV])),...["mp3"].map((t=>[t,ut.MP3])),...["mp4","m4v"].map((t=>[t,ut.MP4])),...["ogg","oga"].map((t=>[t,ut.OGG])),...["pdf","ps"].map((t=>[t,ut.PDF])),...["png"].map((t=>[t,ut.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ut.POWERPOINT])),...["rar"].map((t=>[t,ut.RAR])),...["stp"].map((t=>[t,ut.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ut.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,ut.VIDEO])),...["wav"].map((t=>[t,ut.WAV])),...["wma"].map((t=>[t,ut.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ut.WORD])),...["xml","xsl","rdf"].map((t=>[t,ut.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ut.YAML])),...["zip"].map((t=>[t,ut.ZIP]))]);var yt,xt=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.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(yt||(yt={}));const gt={size:st.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:st.extend("--ft-icon-fluid-topics-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:st.extend("--ft-icon-file-format-font-family",st.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:st.extend("--ft-icon-material-font-family",st.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class mt extends at{constructor(){super(...arguments),this.variant=yt.fluid_topics}render(){return _`
|
|
87
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
88
|
+
${ft(this.getIcon())}
|
|
89
|
+
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
90
|
+
</i>
|
|
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, i.ft-icon {
|
|
93
|
+
display: inline-block;
|
|
94
|
+
width: ${gt.size};
|
|
95
|
+
height: ${gt.size};
|
|
96
|
+
text-align: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
i.ft-icon {
|
|
100
|
+
font-size: ${gt.size};
|
|
101
|
+
line-height: 1;
|
|
102
|
+
font-weight: normal;
|
|
103
|
+
text-transform: none;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
font-variant: normal;
|
|
106
|
+
speak: none;
|
|
107
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
108
|
+
text-rendering: auto;
|
|
109
|
+
-webkit-font-smoothing: antialiased;
|
|
110
|
+
-moz-osx-font-smoothing: grayscale;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.ft-icon--fluid-topics {
|
|
114
|
+
font-family: ${gt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ft-icon--file-format {
|
|
118
|
+
font-family: ${gt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ft-icon--material {
|
|
122
|
+
font-family: ${gt.materialFontFamily}, "Material Icons", sans-serif;
|
|
123
|
+
}
|
|
124
|
+
`,xt([i()],mt.prototype,"variant",void 0),xt([
|
|
127
125
|
/**
|
|
128
126
|
* @license
|
|
129
127
|
* Copyright 2017 Google LLC
|
|
130
128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
131
129
|
*/
|
|
132
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],
|
|
130
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],mt.prototype,"slottedContent",void 0),n("ft-icon")(mt);
|
|
133
131
|
/**
|
|
134
132
|
* @license
|
|
135
133
|
* Copyright 2020 Google LLC
|
|
136
134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
137
135
|
*/
|
|
138
|
-
const
|
|
136
|
+
const vt=t=>({_$litStatic$:t}),bt=new Map,wt=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const a=[],l=[];let c,h=0,p=!1;for(;h<n;){for(c=e[h];h<n&&void 0!==(r=i[h],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)c+=s+e[++h],p=!0;l.push(r),a.push(c),h++}if(h===n&&a.push(e[n]),p){const t=a.join("$$lit$$");void 0===(e=bt.get(t))&&(a.raw=a,bt.set(t,e=a)),i=l}return t(e,...i)})(_);var $t,Ot=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"}($t||($t={}));const St=st.extend("--ft-typography-font-family",rt.titleFont),Nt=st.extend("--ft-typography-font-family",rt.contentFont),Ct={fontFamily:Nt,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","SIZE","24px"),textTransform:st.create("--ft-typography-text-transform","UNKNOWN","inherit")},Et=st.extend("--ft-typography-title-font-family",St),Rt=st.extend("--ft-typography-title-font-size",Ct.fontSize,"20px"),Mt=st.extend("--ft-typography-title-font-weight",Ct.fontWeight,"normal"),Ut=st.extend("--ft-typography-title-letter-spacing",Ct.letterSpacing,"0.15px"),Ft=st.extend("--ft-typography-title-line-height",Ct.lineHeight,"24px"),kt=st.extend("--ft-typography-title-text-transform",Ct.textTransform,"inherit"),zt=st.extend("--ft-typography-title-dense-font-family",St),jt=st.extend("--ft-typography-title-dense-font-size",Ct.fontSize,"14px"),Lt=st.extend("--ft-typography-title-dense-font-weight",Ct.fontWeight,"normal"),At=st.extend("--ft-typography-title-dense-letter-spacing",Ct.letterSpacing,"0.105px"),Tt=st.extend("--ft-typography-title-dense-line-height",Ct.lineHeight,"24px"),_t=st.extend("--ft-typography-title-dense-text-transform",Ct.textTransform,"inherit"),Pt=st.extend("--ft-typography-subtitle1-font-family",Nt),Bt=st.extend("--ft-typography-subtitle1-font-size",Ct.fontSize,"16px"),Wt=st.extend("--ft-typography-subtitle1-font-weight",Ct.fontWeight,"600"),Dt=st.extend("--ft-typography-subtitle1-letter-spacing",Ct.letterSpacing,"0.144px"),Kt=st.extend("--ft-typography-subtitle1-line-height",Ct.lineHeight,"24px"),Ht=st.extend("--ft-typography-subtitle1-text-transform",Ct.textTransform,"inherit"),It=st.extend("--ft-typography-subtitle2-font-family",Nt),Zt=st.extend("--ft-typography-subtitle2-font-size",Ct.fontSize,"14px"),Vt=st.extend("--ft-typography-subtitle2-font-weight",Ct.fontWeight,"normal"),qt=st.extend("--ft-typography-subtitle2-letter-spacing",Ct.letterSpacing,"0.098px"),Jt=st.extend("--ft-typography-subtitle2-line-height",Ct.lineHeight,"24px"),Xt=st.extend("--ft-typography-subtitle2-text-transform",Ct.textTransform,"inherit"),Gt=st.extend("--ft-typography-body1-font-family",Nt),Qt=st.extend("--ft-typography-body1-font-size",Ct.fontSize,"16px"),Yt=st.extend("--ft-typography-body1-font-weight",Ct.fontWeight,"normal"),te=st.extend("--ft-typography-body1-letter-spacing",Ct.letterSpacing,"0.496px"),ee=st.extend("--ft-typography-body1-line-height",Ct.lineHeight,"24px"),ie=st.extend("--ft-typography-body1-text-transform",Ct.textTransform,"inherit"),oe=st.extend("--ft-typography-body2-font-family",Nt),ne=st.extend("--ft-typography-body2-font-size",Ct.fontSize,"14px"),se=st.extend("--ft-typography-body2-font-weight",Ct.fontWeight,"normal"),re=st.extend("--ft-typography-body2-letter-spacing",Ct.letterSpacing,"0.252px"),ae=st.extend("--ft-typography-body2-line-height",Ct.lineHeight,"20px"),le=st.extend("--ft-typography-body2-text-transform",Ct.textTransform,"inherit"),ce=st.extend("--ft-typography-caption-font-family",Nt),he=st.extend("--ft-typography-caption-font-size",Ct.fontSize,"12px"),pe=st.extend("--ft-typography-caption-font-weight",Ct.fontWeight,"normal"),fe=st.extend("--ft-typography-caption-letter-spacing",Ct.letterSpacing,"0.396px"),de=st.extend("--ft-typography-caption-line-height",Ct.lineHeight,"16px"),ue=st.extend("--ft-typography-caption-text-transform",Ct.textTransform,"inherit"),ye=st.extend("--ft-typography-breadcrumb-font-family",Nt),xe=st.extend("--ft-typography-breadcrumb-font-size",Ct.fontSize,"10px"),ge=st.extend("--ft-typography-breadcrumb-font-weight",Ct.fontWeight,"normal"),me=st.extend("--ft-typography-breadcrumb-letter-spacing",Ct.letterSpacing,"0.33px"),ve=st.extend("--ft-typography-breadcrumb-line-height",Ct.lineHeight,"16px"),be=st.extend("--ft-typography-breadcrumb-text-transform",Ct.textTransform,"inherit"),we=st.extend("--ft-typography-overline-font-family",Nt),$e=st.extend("--ft-typography-overline-font-size",Ct.fontSize,"10px"),Oe=st.extend("--ft-typography-overline-font-weight",Ct.fontWeight,"normal"),Se=st.extend("--ft-typography-overline-letter-spacing",Ct.letterSpacing,"1.5px"),Ne=st.extend("--ft-typography-overline-line-height",Ct.lineHeight,"16px"),Ce=st.extend("--ft-typography-overline-text-transform",Ct.textTransform,"uppercase"),Ee=st.extend("--ft-typography-button-font-family",Nt),Re=st.extend("--ft-typography-button-font-size",Ct.fontSize,"14px"),Me=st.extend("--ft-typography-button-font-weight",Ct.fontWeight,"600"),Ue=st.extend("--ft-typography-button-letter-spacing",Ct.letterSpacing,"1.246px"),Fe=st.extend("--ft-typography-button-line-height",Ct.lineHeight,"16px"),ke=st.extend("--ft-typography-button-text-transform",Ct.textTransform,"uppercase"),ze=h`
|
|
139
137
|
.ft-typography--title {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
138
|
+
font-family: ${Et};
|
|
139
|
+
font-size: ${Rt};
|
|
140
|
+
font-weight: ${Mt};
|
|
141
|
+
letter-spacing: ${Ut};
|
|
142
|
+
line-height: ${Ft};
|
|
143
|
+
text-transform: ${kt};
|
|
146
144
|
}
|
|
147
|
-
`,
|
|
145
|
+
`,je=h`
|
|
148
146
|
.ft-typography--title-dense {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
147
|
+
font-family: ${zt};
|
|
148
|
+
font-size: ${jt};
|
|
149
|
+
font-weight: ${Lt};
|
|
150
|
+
letter-spacing: ${At};
|
|
151
|
+
line-height: ${Tt};
|
|
152
|
+
text-transform: ${_t};
|
|
155
153
|
}
|
|
156
|
-
`,
|
|
154
|
+
`,Le=h`
|
|
157
155
|
.ft-typography--subtitle1 {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
156
|
+
font-family: ${Pt};
|
|
157
|
+
font-size: ${Bt};
|
|
158
|
+
font-weight: ${Wt};
|
|
159
|
+
letter-spacing: ${Dt};
|
|
160
|
+
line-height: ${Kt};
|
|
161
|
+
text-transform: ${Ht};
|
|
164
162
|
}
|
|
165
|
-
`,
|
|
163
|
+
`,Ae=h`
|
|
166
164
|
.ft-typography--subtitle2 {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
165
|
+
font-family: ${It};
|
|
166
|
+
font-size: ${Zt};
|
|
167
|
+
font-weight: ${Vt};
|
|
168
|
+
letter-spacing: ${qt};
|
|
169
|
+
line-height: ${Jt};
|
|
170
|
+
text-transform: ${Xt};
|
|
173
171
|
}
|
|
174
172
|
|
|
175
|
-
`,
|
|
173
|
+
`,Te=h`
|
|
176
174
|
.ft-typography--body1 {
|
|
177
|
-
font-family: ${
|
|
178
|
-
font-size: ${
|
|
179
|
-
font-weight: ${
|
|
180
|
-
letter-spacing: ${
|
|
181
|
-
line-height: ${
|
|
182
|
-
text-transform: ${
|
|
175
|
+
font-family: ${Gt};
|
|
176
|
+
font-size: ${Qt};
|
|
177
|
+
font-weight: ${Yt};
|
|
178
|
+
letter-spacing: ${te};
|
|
179
|
+
line-height: ${ee};
|
|
180
|
+
text-transform: ${ie};
|
|
183
181
|
}
|
|
184
|
-
`,
|
|
182
|
+
`,_e=h`
|
|
185
183
|
.ft-typography--body2 {
|
|
186
|
-
font-family: ${
|
|
187
|
-
font-size: ${
|
|
188
|
-
font-weight: ${
|
|
189
|
-
letter-spacing: ${
|
|
190
|
-
line-height: ${
|
|
191
|
-
text-transform: ${
|
|
184
|
+
font-family: ${oe};
|
|
185
|
+
font-size: ${ne};
|
|
186
|
+
font-weight: ${se};
|
|
187
|
+
letter-spacing: ${re};
|
|
188
|
+
line-height: ${ae};
|
|
189
|
+
text-transform: ${le};
|
|
192
190
|
}
|
|
193
|
-
`,
|
|
191
|
+
`,Pe=h`
|
|
194
192
|
.ft-typography--caption {
|
|
195
|
-
font-family: ${
|
|
196
|
-
font-size: ${
|
|
197
|
-
font-weight: ${
|
|
198
|
-
letter-spacing: ${
|
|
199
|
-
line-height: ${
|
|
200
|
-
text-transform: ${
|
|
193
|
+
font-family: ${ce};
|
|
194
|
+
font-size: ${he};
|
|
195
|
+
font-weight: ${pe};
|
|
196
|
+
letter-spacing: ${fe};
|
|
197
|
+
line-height: ${de};
|
|
198
|
+
text-transform: ${ue};
|
|
201
199
|
}
|
|
202
|
-
`,
|
|
200
|
+
`,Be=h`
|
|
203
201
|
.ft-typography--breadcrumb {
|
|
204
|
-
font-family: ${
|
|
205
|
-
font-size: ${
|
|
206
|
-
font-weight: ${
|
|
207
|
-
letter-spacing: ${
|
|
208
|
-
line-height: ${
|
|
209
|
-
text-transform: ${
|
|
202
|
+
font-family: ${ye};
|
|
203
|
+
font-size: ${xe};
|
|
204
|
+
font-weight: ${ge};
|
|
205
|
+
letter-spacing: ${me};
|
|
206
|
+
line-height: ${ve};
|
|
207
|
+
text-transform: ${be};
|
|
210
208
|
}
|
|
211
|
-
`,
|
|
209
|
+
`,We=h`
|
|
212
210
|
.ft-typography--overline {
|
|
213
|
-
font-family: ${
|
|
214
|
-
font-size: ${
|
|
215
|
-
font-weight: ${
|
|
216
|
-
letter-spacing: ${
|
|
217
|
-
line-height: ${
|
|
218
|
-
text-transform: ${
|
|
211
|
+
font-family: ${we};
|
|
212
|
+
font-size: ${$e};
|
|
213
|
+
font-weight: ${Oe};
|
|
214
|
+
letter-spacing: ${Se};
|
|
215
|
+
line-height: ${Ne};
|
|
216
|
+
text-transform: ${Ce};
|
|
219
217
|
}
|
|
220
|
-
`,
|
|
218
|
+
`,De=h`
|
|
221
219
|
.ft-typography--button {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
225
|
-
letter-spacing: ${
|
|
226
|
-
line-height: ${
|
|
227
|
-
text-transform: ${
|
|
220
|
+
font-family: ${Ee};
|
|
221
|
+
font-size: ${Re};
|
|
222
|
+
font-weight: ${Me};
|
|
223
|
+
letter-spacing: ${Ue};
|
|
224
|
+
line-height: ${Fe};
|
|
225
|
+
text-transform: ${ke};
|
|
228
226
|
}
|
|
229
|
-
`;class
|
|
230
|
-
<${
|
|
227
|
+
`;class Ke extends at{constructor(){super(...arguments),this.variant=$t.body1}render(){return this.element?wt`
|
|
228
|
+
<${vt(this.element)}
|
|
231
229
|
class="ft-typography ft-typography--${this.variant}">
|
|
232
230
|
<slot></slot>
|
|
233
|
-
</${
|
|
234
|
-
`:
|
|
231
|
+
</${vt(this.element)}>
|
|
232
|
+
`:wt`
|
|
235
233
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
236
|
-
`}}
|
|
234
|
+
`}}Ke.styles=[ze,je,Le,Ae,Te,_e,Pe,Be,We,De,h`
|
|
237
235
|
.ft-typography {
|
|
238
236
|
vertical-align: inherit;
|
|
239
237
|
}
|
|
240
|
-
`],
|
|
238
|
+
`],Ot([i()],Ke.prototype,"element",void 0),Ot([i()],Ke.prototype,"variant",void 0),n("ft-typography")(Ke);var He=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 Ie={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 Ze extends at{constructor(){super(...arguments),this.icon="info"}static get styles(){return h`
|
|
241
239
|
.ft-notice {
|
|
242
240
|
display: inline-flex;
|
|
243
241
|
align-items: stretch;
|
|
@@ -252,19 +250,19 @@ const wt=t=>({_$litStatic$:t}),$t=new Map,Ot=(t=>(e,...i)=>{var o;const n=i.leng
|
|
|
252
250
|
}
|
|
253
251
|
|
|
254
252
|
.ft-icon {
|
|
255
|
-
color: ${
|
|
256
|
-
background-color: ${
|
|
253
|
+
color: ${Ie.noticeIconColor};
|
|
254
|
+
background-color: ${Ie.noticeColor};
|
|
257
255
|
display: flex;
|
|
258
256
|
align-items: center;
|
|
259
|
-
border-top-left-radius: ${
|
|
260
|
-
border-bottom-left-radius: ${
|
|
257
|
+
border-top-left-radius: ${Ie.borderRadius};
|
|
258
|
+
border-bottom-left-radius: ${Ie.borderRadius};
|
|
261
259
|
}
|
|
262
260
|
|
|
263
261
|
.ft-notice-label {
|
|
264
262
|
padding: 8px;
|
|
265
|
-
border-top-right-radius: ${
|
|
266
|
-
border-bottom-right-radius: ${
|
|
267
|
-
border: 1px solid ${
|
|
263
|
+
border-top-right-radius: ${Ie.borderRadius};
|
|
264
|
+
border-bottom-right-radius: ${Ie.borderRadius};
|
|
265
|
+
border: 1px solid ${Ie.noticeColor};
|
|
268
266
|
}
|
|
269
267
|
`;var t,e}render(){return _`
|
|
270
268
|
<div class="ft-notice">
|
|
@@ -275,4 +273,4 @@ const wt=t=>({_$litStatic$:t}),$t=new Map,Ot=(t=>(e,...i)=>{var o;const n=i.leng
|
|
|
275
273
|
<slot></slot>
|
|
276
274
|
</ft-typography>
|
|
277
275
|
</div>
|
|
278
|
-
`}}
|
|
276
|
+
`}}Ze.elementDefinitions={"ft-icon":mt,"ft-typography":Ke},He([i({type:String})],Ze.prototype,"icon",void 0),n("ft-notice")(Ze),t.FtNotice=Ze,t.FtNoticeCssVariables=Ie,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.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Notice to display different messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "^0.
|
|
23
|
-
"@fluid-topics/ft-typography": "^0.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "^0.
|
|
22
|
+
"@fluid-topics/ft-icon": "^0.2.2",
|
|
23
|
+
"@fluid-topics/ft-typography": "^0.2.2",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "^0.2.2",
|
|
25
25
|
"lit": "2.1.3"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "5b9b551c2b9274e6bebc9c7328f4597610db9872"
|
|
28
28
|
}
|