@fluid-topics/ft-notice 0.1.6 → 0.1.7

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.
@@ -0,0 +1,189 @@
1
+ !function(t,e,i,o,n){var s,r;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(s||(s={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(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"}(l||(l={}));const p={size:o.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",o.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariable.extend("--ft-icon-file-format-font-family",o.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime"))},h=e.css`
2
+ .ft-icon--fluid-topics {
3
+ font-family: ${p.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
4
+ font-size: ${p.size};
5
+ line-height: 1;
6
+ font-weight: normal;
7
+ text-transform: none;
8
+ font-style: normal;
9
+ font-variant: normal;
10
+ speak: none;
11
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
12
+ text-rendering: auto;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ }
16
+ `,f=e.css`
17
+ .ft-icon--file-format {
18
+ font-family: ${p.fileFormatFontFamily}, ft-mime, sans-serif;
19
+ font-size: ${p.size};
20
+ line-height: 1;
21
+ font-weight: normal;
22
+ text-transform: none;
23
+ font-style: normal;
24
+ font-variant: normal;
25
+ speak: none;
26
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
27
+ text-rendering: auto;
28
+ -webkit-font-smoothing: antialiased;
29
+ -moz-osx-font-smoothing: grayscale;
30
+ }
31
+ `;let x=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=l.fluid_topics}getStyles(){return[h,f,e.css`
32
+ :host, i.ft-icon {
33
+ display: inline-block;
34
+ width: ${p.size};
35
+ height: ${p.size};
36
+ text-align: center;
37
+ }
38
+ `]}getTemplate(){return e.html`
39
+ <slot @slotchange=${()=>this.requestUpdate()} hidden></slot>
40
+ <i class="ft-icon ${"ft-icon--"+this.variant}">${n.unsafeHTML(this.getIcon())}</i>
41
+ `}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;return this.variant===l.file_format?null!==(t=r[this.textContent.toUpperCase()])&&void 0!==t?t:this.textContent:null!==(e=s[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent}};
42
+ /**
43
+ * @license
44
+ * Copyright 2017 Google LLC
45
+ * SPDX-License-Identifier: BSD-3-Clause
46
+ */
47
+ var y;x.elementDefinitions={},a([i.property()],x.prototype,"variant",void 0),a([i.query("slot")],x.prototype,"slottedContent",void 0),x=a([o.customElement("ft-icon")],x);const g=globalThis.trustedTypes,c=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,d=`lit$${(Math.random()+"").slice(9)}$`,m="?"+d,u=`<${m}>`,v=document,b=(t="")=>v.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,N=/>/g,S=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,A=/'/g,_=/"/g,k=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),E=new WeakMap,U=v.createTreeWalker(v,129,null,!1),C=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=z;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===z?"!--"===a[1]?r=j:void 0!==a[1]?r=N:void 0!==a[2]?(k.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=S):void 0!==a[3]&&(r=S):r===S?">"===a[0]?(r=null!=n?n:z,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?S:'"'===a[3]?_:A):r===_||r===A?r=S:r===j||r===N?r=z:(r=S,n=void 0);const f=r===S&&t[e+1].startsWith("/>")?" ":"";s+=r===z?i+u:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+d+f):i+d+(-2===p?(o.push(void 0),e):f)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==c?c.createHTML(l):l,o]};class M{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=C(t,e);if(this.el=M.createElement(a,i),U.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=U.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(d)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(d),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?K:"?"===e[1]?q:"@"===e[1]?H:G})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(d),e=t.length-1;if(e>0){o.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],b()),U.nextNode(),l.push({type:2,index:++n});o.append(t[e],b())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(d,t+1));)l.push({type:7,index:n}),t+=d.length-1}n++}}static createElement(t,e){const i=v.createElement("template");return i.innerHTML=t,i}}function F(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 p=$(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(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=F(t,a._$AS(t,e.values),a,o)),e}class W{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:v).importNode(i,!0);U.currentNode=n;let s=U.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Z(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new D(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=U.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=I,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=F(this,t,e),$(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return w(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!==I&&$(this._$AH)?this._$AA.nextSibling.data=t:this.S(v.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=M.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 W(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new M(t)),e}A(t){w(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(b()),this.M(b()),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 G{constructor(t,e,i,o,n){this.type=1,this._$AH=I,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=I}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=F(this,t,e,0),s=!$(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=F(this,o[i+r],e,r),l===O&&(l=this._$AH[r]),s||(s=!$(l)||l!==this._$AH[r]),l===I?t=I:t!==I&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.k(t)}k(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class K extends G{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===I?void 0:t}}const R=g?g.emptyScript:"";class q extends G{constructor(){super(...arguments),this.type=4}k(t){t&&t!==I?this.element.setAttribute(this.name,R):this.element.removeAttribute(this.name)}}class H extends G{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=F(this,t,e,0))&&void 0!==i?i:I)===O)return;const o=this._$AH,n=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==I&&(o===I||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 D{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){F(this,t)}}const L=window.litHtmlPolyfillSupport;null==L||L(M,Z),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.1.3");
48
+ /**
49
+ * @license
50
+ * Copyright 2020 Google LLC
51
+ * SPDX-License-Identifier: BSD-3-Clause
52
+ */
53
+ const B=t=>({_$litStatic$:t}),J=new Map,P=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const l=[],a=[];let p,h=0,f=!1;for(;h<n;){for(p=e[h];h<n&&void 0!==(r=i[h],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++h],f=!0;a.push(r),l.push(p),h++}if(h===n&&l.push(e[n]),f){const t=l.join("$$lit$$");void 0===(e=J.get(t))&&(l.raw=l,J.set(t,e=l)),i=a}return t(e,...i)})(T);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=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.titleFont),Y=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.contentFont),tt={fontFamily:Y,fontSize:o.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:o.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:o.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:o.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:o.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},et=o.FtCssVariable.extend("--ft-typography-title-font-family",X),it=o.FtCssVariable.extend("--ft-typography-title-font-size",tt.fontSize,"20px"),ot=o.FtCssVariable.extend("--ft-typography-title-font-weight",tt.fontWeight,"normal"),nt=o.FtCssVariable.extend("--ft-typography-title-letter-spacing",tt.letterSpacing,"0.15px"),st=o.FtCssVariable.extend("--ft-typography-title-line-height",tt.lineHeight,"24px"),rt=o.FtCssVariable.extend("--ft-typography-title-text-transform",tt.textTransform,"inherit"),lt=o.FtCssVariable.extend("--ft-typography-title-dense-font-family",X),at=o.FtCssVariable.extend("--ft-typography-title-dense-font-size",tt.fontSize,"14px"),pt=o.FtCssVariable.extend("--ft-typography-title-dense-font-weight",tt.fontWeight,"normal"),ht=o.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",tt.letterSpacing,"0.105px"),ft=o.FtCssVariable.extend("--ft-typography-title-dense-line-height",tt.lineHeight,"24px"),xt=o.FtCssVariable.extend("--ft-typography-title-dense-text-transform",tt.textTransform,"inherit"),yt=o.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Y),gt=o.FtCssVariable.extend("--ft-typography-subtitle1-font-size",tt.fontSize,"16px"),ct=o.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",tt.fontWeight,"600"),dt=o.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",tt.letterSpacing,"0.144px"),mt=o.FtCssVariable.extend("--ft-typography-subtitle1-line-height",tt.lineHeight,"24px"),ut=o.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",tt.textTransform,"inherit"),vt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Y),bt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-size",tt.fontSize,"14px"),$t=o.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",tt.fontWeight,"normal"),wt=o.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",tt.letterSpacing,"0.098px"),zt=o.FtCssVariable.extend("--ft-typography-subtitle2-line-height",tt.lineHeight,"24px"),jt=o.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",tt.textTransform,"inherit"),Nt=o.FtCssVariable.extend("--ft-typography-body1-font-family",Y),St=o.FtCssVariable.extend("--ft-typography-body1-font-size",tt.fontSize,"16px"),At=o.FtCssVariable.extend("--ft-typography-body1-font-weight",tt.fontWeight,"normal"),_t=o.FtCssVariable.extend("--ft-typography-body1-letter-spacing",tt.letterSpacing,"0.496px"),kt=o.FtCssVariable.extend("--ft-typography-body1-line-height",tt.lineHeight,"24px"),Tt=o.FtCssVariable.extend("--ft-typography-body1-text-transform",tt.textTransform,"inherit"),Ot=o.FtCssVariable.extend("--ft-typography-body2-font-family",Y),It=o.FtCssVariable.extend("--ft-typography-body2-font-size",tt.fontSize,"14px"),Et=o.FtCssVariable.extend("--ft-typography-body2-font-weight",tt.fontWeight,"normal"),Ut=o.FtCssVariable.extend("--ft-typography-body2-letter-spacing",tt.letterSpacing,"0.252px"),Ct=o.FtCssVariable.extend("--ft-typography-body2-line-height",tt.lineHeight,"20px"),Mt=o.FtCssVariable.extend("--ft-typography-body2-text-transform",tt.textTransform,"inherit"),Ft=o.FtCssVariable.extend("--ft-typography-caption-font-family",Y),Wt=o.FtCssVariable.extend("--ft-typography-caption-font-size",tt.fontSize,"12px"),Zt=o.FtCssVariable.extend("--ft-typography-caption-font-weight",tt.fontWeight,"normal"),Gt=o.FtCssVariable.extend("--ft-typography-caption-letter-spacing",tt.letterSpacing,"0.396px"),Kt=o.FtCssVariable.extend("--ft-typography-caption-line-height",tt.lineHeight,"16px"),Rt=o.FtCssVariable.extend("--ft-typography-caption-text-transform",tt.textTransform,"inherit"),qt=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Y),Ht=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",tt.fontSize,"10px"),Dt=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",tt.fontWeight,"normal"),Lt=o.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",tt.letterSpacing,"0.33px"),Bt=o.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",tt.lineHeight,"16px"),Jt=o.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",tt.textTransform,"inherit"),Pt=o.FtCssVariable.extend("--ft-typography-overline-font-family",Y),Qt=o.FtCssVariable.extend("--ft-typography-overline-font-size",tt.fontSize,"10px"),Vt=o.FtCssVariable.extend("--ft-typography-overline-font-weight",tt.fontWeight,"normal"),Xt=o.FtCssVariable.extend("--ft-typography-overline-letter-spacing",tt.letterSpacing,"1.5px"),Yt=o.FtCssVariable.extend("--ft-typography-overline-line-height",tt.lineHeight,"16px"),te=o.FtCssVariable.extend("--ft-typography-overline-text-transform",tt.textTransform,"uppercase"),ee=o.FtCssVariable.extend("--ft-typography-button-font-family",Y),ie=o.FtCssVariable.extend("--ft-typography-button-font-size",tt.fontSize,"14px"),oe=o.FtCssVariable.extend("--ft-typography-button-font-weight",tt.fontWeight,"600"),ne=o.FtCssVariable.extend("--ft-typography-button-letter-spacing",tt.letterSpacing,"1.246px"),se=o.FtCssVariable.extend("--ft-typography-button-line-height",tt.lineHeight,"16px"),re=o.FtCssVariable.extend("--ft-typography-button-text-transform",tt.textTransform,"uppercase"),le=e.css`
54
+ .ft-typography--title {
55
+ font-family: ${et};
56
+ font-size: ${it};
57
+ font-weight: ${ot};
58
+ letter-spacing: ${nt};
59
+ line-height: ${st};
60
+ text-transform: ${rt};
61
+ }
62
+ `,ae=e.css`
63
+ .ft-typography--title-dense {
64
+ font-family: ${lt};
65
+ font-size: ${at};
66
+ font-weight: ${pt};
67
+ letter-spacing: ${ht};
68
+ line-height: ${ft};
69
+ text-transform: ${xt};
70
+ }
71
+ `,pe=e.css`
72
+ .ft-typography--subtitle1 {
73
+ font-family: ${yt};
74
+ font-size: ${gt};
75
+ font-weight: ${ct};
76
+ letter-spacing: ${dt};
77
+ line-height: ${mt};
78
+ text-transform: ${ut};
79
+ }
80
+ `,he=e.css`
81
+ .ft-typography--subtitle2 {
82
+ font-family: ${vt};
83
+ font-size: ${bt};
84
+ font-weight: ${$t};
85
+ letter-spacing: ${wt};
86
+ line-height: ${zt};
87
+ text-transform: ${jt};
88
+ }
89
+
90
+ `,fe=e.css`
91
+ .ft-typography--body1 {
92
+ font-family: ${Nt};
93
+ font-size: ${St};
94
+ font-weight: ${At};
95
+ letter-spacing: ${_t};
96
+ line-height: ${kt};
97
+ text-transform: ${Tt};
98
+ }
99
+ `,xe=e.css`
100
+ .ft-typography--body2 {
101
+ font-family: ${Ot};
102
+ font-size: ${It};
103
+ font-weight: ${Et};
104
+ letter-spacing: ${Ut};
105
+ line-height: ${Ct};
106
+ text-transform: ${Mt};
107
+ }
108
+ `,ye=e.css`
109
+ .ft-typography--caption {
110
+ font-family: ${Ft};
111
+ font-size: ${Wt};
112
+ font-weight: ${Zt};
113
+ letter-spacing: ${Gt};
114
+ line-height: ${Kt};
115
+ text-transform: ${Rt};
116
+ }
117
+ `,ge=e.css`
118
+ .ft-typography--breadcrumb {
119
+ font-family: ${qt};
120
+ font-size: ${Ht};
121
+ font-weight: ${Dt};
122
+ letter-spacing: ${Lt};
123
+ line-height: ${Bt};
124
+ text-transform: ${Jt};
125
+ }
126
+ `,ce=e.css`
127
+ .ft-typography--overline {
128
+ font-family: ${Pt};
129
+ font-size: ${Qt};
130
+ font-weight: ${Vt};
131
+ letter-spacing: ${Xt};
132
+ line-height: ${Yt};
133
+ text-transform: ${te};
134
+ }
135
+ `,de=e.css`
136
+ .ft-typography--button {
137
+ font-family: ${ee};
138
+ font-size: ${ie};
139
+ font-weight: ${oe};
140
+ letter-spacing: ${ne};
141
+ line-height: ${se};
142
+ text-transform: ${re};
143
+ }
144
+ `;let me=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}getStyles(){return[le,ae,pe,he,fe,xe,ye,ge,ce,de]}getTemplate(){return this.element?P`
145
+ <${B(this.element)}
146
+ class="ft-typography ft-typography--${this.variant}">
147
+ <slot></slot>
148
+ </${B(this.element)}>
149
+ `:P`
150
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
151
+ `}};V([i.property()],me.prototype,"element",void 0),V([i.property()],me.prototype,"variant",void 0),me=V([o.customElement("ft-typography")],me);var ue=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};const ve={noticeColor:o.FtCssVariable.extend("--ft-notice-color",o.designSystemVariables.colorPrimary),noticeIconColor:o.FtCssVariable.extend("--ft-notice-icon-color",o.designSystemVariables.colorOnPrimary),borderRadius:o.FtCssVariable.external(o.designSystemVariables.borderRadiusS,"Design System")};t.FtNotice=class extends o.FtLitElement{constructor(){super(...arguments),this.icon="info"}getStyles(){return e.css`
152
+ .ft-notice {
153
+ display: inline-flex;
154
+ align-items: stretch;
155
+ box-sizing: border-box;
156
+ }
157
+
158
+ ft-icon {
159
+ ${o.setVariable(p.size,"20px")};
160
+ padding: 0 8px;
161
+ display: flex;
162
+ align-self: center;
163
+ }
164
+
165
+ .ft-icon {
166
+ color: ${ve.noticeIconColor};
167
+ background-color: ${ve.noticeColor};
168
+ display: flex;
169
+ align-items: center;
170
+ border-top-left-radius: ${ve.borderRadius};
171
+ border-bottom-left-radius: ${ve.borderRadius};
172
+ }
173
+
174
+ .ft-notice-label {
175
+ padding: 8px;
176
+ border-top-right-radius: ${ve.borderRadius};
177
+ border-bottom-right-radius: ${ve.borderRadius};
178
+ border: 1px solid ${ve.noticeColor};
179
+ }
180
+ `}getTemplate(){return e.html`
181
+ <div class="ft-notice">
182
+ <div class="ft-icon">
183
+ <ft-icon>${this.icon}</ft-icon>
184
+ </div>
185
+ <ft-typography class="ft-notice-label" variant="body2">
186
+ <slot></slot>
187
+ </ft-typography>
188
+ </div>
189
+ `}},t.FtNotice.elementDefinitions={"ft-icon":x,"ft-typography":me},ue([i.property({type:String})],t.FtNotice.prototype,"icon",void 0),t.FtNotice=ue([o.customElement("ft-notice")],t.FtNotice),t.FtNoticeCssVariables=ve,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils,ftGlobals.litUnsafeHTML);
@@ -43,7 +43,21 @@ var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedEle
43
43
  * @license
44
44
  * Copyright 2021 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */class at extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return a(n,this.constructor.elementStyles),n}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),z`${t.map((t=>z`<style>${t}</style>`))} ${this.getTemplate()}`}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var lt,ct;s`.ft-no-text-select{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ct=null===(lt=window.safari)||void 0===lt?void 0:lt.pushNotification)||void 0===ct||ct.toString());
46
+ */class at extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return a(n,this.constructor.elementStyles),n}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),z`
47
+ ${t.map((t=>z`
48
+ <style>${t}</style>
49
+ `))}
50
+ ${this.getTemplate()}
51
+ `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var lt,ct;s`
52
+ .ft-no-text-select {
53
+ -webkit-touch-callout: none;
54
+ -webkit-user-select: none;
55
+ -khtml-user-select: none;
56
+ -moz-user-select: none;
57
+ -ms-user-select: none;
58
+ user-select: none;
59
+ }
60
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ct=null===(lt=window.safari)||void 0===lt?void 0:lt.pushNotification)||void 0===ct||ct.toString());
47
61
  /**
48
62
  * @license
49
63
  * Copyright 2017 Google LLC
@@ -205,4 +219,42 @@ const wt=t=>({_$litStatic$:t}),Ot=new Map,$t=(t=>(e,...i)=>{var o;const n=i.leng
205
219
  </${wt(this.element)}>
206
220
  `:$t`
207
221
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
208
- `}};Nt([it()],Ie.prototype,"element",void 0),Nt([it()],Ie.prototype,"variant",void 0),Ie=Nt([nt("ft-typography")],Ie);var Ze=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ve={noticeColor:rt.extend("--ft-notice-color",st.colorPrimary),noticeIconColor:rt.extend("--ft-notice-icon-color",st.colorOnPrimary),borderRadius:rt.external(st.borderRadiusS,"Design System")};t.FtNotice=class extends at{constructor(){super(...arguments),this.icon="info"}getStyles(){return s`.ft-notice{display:inline-flex;align-items:stretch;box-sizing:border-box}ft-icon{${t=gt.size,e="20px",r(`${t.name}: ${e}`)}padding:0 8px;display:flex;align-self:center}.ft-icon{color:${Ve.noticeIconColor};background-color:${Ve.noticeColor};display:flex;align-items:center;border-top-left-radius:${Ve.borderRadius};border-bottom-left-radius:${Ve.borderRadius}}.ft-notice-label{padding:8px;border-top-right-radius:${Ve.borderRadius};border-bottom-right-radius:${Ve.borderRadius};border:1px solid ${Ve.noticeColor}}`;var t,e}getTemplate(){return z`<div class="ft-notice"><div class="ft-icon"><ft-icon>${this.icon}</ft-icon></div><ft-typography class="ft-notice-label" variant="body2"><slot></slot></ft-typography></div>`}},t.FtNotice.elementDefinitions={"ft-icon":bt,"ft-typography":Ie},Ze([it({type:String})],t.FtNotice.prototype,"icon",void 0),t.FtNotice=Ze([nt("ft-notice")],t.FtNotice),t.FtNoticeCssVariables=Ve,Object.defineProperty(t,"t",{value:!0})}({});
222
+ `}};Nt([it()],Ie.prototype,"element",void 0),Nt([it()],Ie.prototype,"variant",void 0),Ie=Nt([nt("ft-typography")],Ie);var Ze=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ve={noticeColor:rt.extend("--ft-notice-color",st.colorPrimary),noticeIconColor:rt.extend("--ft-notice-icon-color",st.colorOnPrimary),borderRadius:rt.external(st.borderRadiusS,"Design System")};t.FtNotice=class extends at{constructor(){super(...arguments),this.icon="info"}getStyles(){return s`
223
+ .ft-notice {
224
+ display: inline-flex;
225
+ align-items: stretch;
226
+ box-sizing: border-box;
227
+ }
228
+
229
+ ft-icon {
230
+ ${t=gt.size,e="20px",r(`${t.name}: ${e}`)};
231
+ padding: 0 8px;
232
+ display: flex;
233
+ align-self: center;
234
+ }
235
+
236
+ .ft-icon {
237
+ color: ${Ve.noticeIconColor};
238
+ background-color: ${Ve.noticeColor};
239
+ display: flex;
240
+ align-items: center;
241
+ border-top-left-radius: ${Ve.borderRadius};
242
+ border-bottom-left-radius: ${Ve.borderRadius};
243
+ }
244
+
245
+ .ft-notice-label {
246
+ padding: 8px;
247
+ border-top-right-radius: ${Ve.borderRadius};
248
+ border-bottom-right-radius: ${Ve.borderRadius};
249
+ border: 1px solid ${Ve.noticeColor};
250
+ }
251
+ `;var t,e}getTemplate(){return z`
252
+ <div class="ft-notice">
253
+ <div class="ft-icon">
254
+ <ft-icon>${this.icon}</ft-icon>
255
+ </div>
256
+ <ft-typography class="ft-notice-label" variant="body2">
257
+ <slot></slot>
258
+ </ft-typography>
259
+ </div>
260
+ `}},t.FtNotice.elementDefinitions={"ft-icon":bt,"ft-typography":Ie},Ze([it({type:String})],t.FtNotice.prototype,"icon",void 0),t.FtNotice=Ze([nt("ft-notice")],t.FtNotice),t.FtNoticeCssVariables=Ve,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.1.6",
3
+ "version": "0.1.7",
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.1.6",
23
- "@fluid-topics/ft-typography": "^0.1.6",
24
- "@fluid-topics/ft-wc-utils": "^0.1.6",
22
+ "@fluid-topics/ft-icon": "^0.1.7",
23
+ "@fluid-topics/ft-typography": "^0.1.7",
24
+ "@fluid-topics/ft-wc-utils": "^0.1.7",
25
25
  "lit": "^2.0.2"
26
26
  },
27
- "gitHead": "c441937eb1375dc40ff477dec50b917f2adf3b38"
27
+ "gitHead": "78397cca67971191c46739cfb6c87481aaa65745"
28
28
  }