@fluid-topics/ft-dialog 0.2.3 → 0.2.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.
- package/build/ft-dialog.inline-styles.js +107 -107
- package/build/ft-dialog.light.js +98 -98
- package/build/ft-dialog.min.js +106 -106
- package/package.json +5 -5
package/build/ft-dialog.light.js
CHANGED
|
@@ -4,129 +4,129 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var s;const a=globalThis.trustedTypes,r=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,p="?"+l,h=`<${p}>`,f=document,x=(t="")=>f.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,m=/>/g,u=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,b=/^(?:script|style|textarea|title)$/i,w=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),z=Symbol.for("lit-noChange"),
|
|
7
|
+
var s;const a=globalThis.trustedTypes,r=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,p="?"+l,h=`<${p}>`,f=document,x=(t="")=>f.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,m=/>/g,u=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,b=/^(?:script|style|textarea|title)$/i,w=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),z=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),k=new WeakMap,N=f.createTreeWalker(f,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",a=y;for(let e=0;e<i;e++){const i=t[e];let r,p,f=-1,x=0;for(;x<i.length&&(a.lastIndex=x,p=a.exec(i),null!==p);)x=a.lastIndex,a===y?"!--"===p[1]?a=c:void 0!==p[1]?a=m:void 0!==p[2]?(b.test(p[2])&&(n=RegExp("</"+p[2],"g")),a=u):void 0!==p[3]&&(a=u):a===u?">"===p[0]?(a=null!=n?n:y,f=-1):void 0===p[1]?f=-2:(f=a.lastIndex-p[2].length,r=p[1],a=void 0===p[3]?u:'"'===p[3]?$:v):a===$||a===v?a=u:a===c||a===m?a=y:(a=u,n=void 0);const g=a===u&&t[e+1].startsWith("/>")?" ":"";s+=a===y?i+h:f>=0?(o.push(r),i.slice(0,f)+"$lit$"+i.slice(f)+l+g):i+l+(-2===f?(o.push(void 0),e):g)}const p=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(p):p,o]};class E{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,h=this.parts,[f,g]=j(t,e);if(this.el=E.createElement(f,i),N.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=N.nextNode())&&h.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(l)){const i=g[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(l),e=/([.?@])?(.*)/.exec(i);h.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?A:"?"===e[1]?M:"@"===e[1]?T:_})}else h.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(b.test(o.tagName)){const t=o.textContent.split(l),e=t.length-1;if(e>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),N.nextNode(),h.push({type:2,index:++n});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===p)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(l,t+1));)h.push({type:7,index:n}),t+=l.length-1}n++}}static createElement(t,e){const i=f.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var n,s,a,r;if(e===z)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=g(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(a=(r=i)._$Cl)&&void 0!==a?a:r._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=I(t,l._$AS(t,e.values),l,o)),e}class O{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:f).importNode(i,!0);N.currentNode=n;let s=N.nextNode(),a=0,r=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new C(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new U(s,this,t)),this.v.push(e),l=o[++r]}a!==(null==l?void 0:l.index)&&(s=N.nextNode(),a++)}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 C{constructor(t,e,i,o){var n;this.type=2,this._$AH=S,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),g(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==z&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return d(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!==S&&g(this._$AH)?this._$AA.nextSibling.data=t:this.k(f.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=E.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 O(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=k.get(t.strings);return void 0===e&&k.set(t.strings,e=new E(t)),e}S(t){d(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 C(this.M(x()),this.M(x()),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 _{constructor(t,e,i,o,n){this.type=1,this._$AH=S,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=S}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=!g(t)||t!==this._$AH&&t!==z,s&&(this._$AH=t);else{const o=t;let a,r;for(t=n[0],a=0;a<n.length-1;a++)r=I(this,o[i+a],e,a),r===z&&(r=this._$AH[a]),s||(s=!g(r)||r!==this._$AH[a]),r===S?t=S:t!==S&&(t+=(null!=r?r:"")+n[a+1]),this._$AH[a]=r}s&&!o&&this.C(t)}C(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class A extends _{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===S?void 0:t}}const Z=a?a.emptyScript:"";class M extends _{constructor(){super(...arguments),this.type=4}C(t){t&&t!==S?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class T extends _{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:S)===z)return;const o=this._$AH,n=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==S&&(o===S||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 U{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 W=window.litHtmlPolyfillSupport;null==W||W(E,C),(null!==(s=globalThis.litHtmlVersions)&&void 0!==s?s:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const B=t=>({_$litStatic$:t}),
|
|
13
|
+
const B=Symbol.for(""),K=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$},R=t=>({_$litStatic$:t,r:B}),D=new Map,G=(t=>(e,...i)=>{const o=i.length;let n,s;const a=[],r=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(s=i[p],n=K(s));)l+=n+e[++p],h=!0;r.push(s),a.push(l),p++}if(p===o&&a.push(e[o]),h){const t=a.join("$$lit$$");void 0===(e=D.get(t))&&(a.raw=a,D.set(t,e=a)),i=r}return t(e,...i)})(w);var q,H=function(t,e,i,o){for(var n,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};!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 L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),F=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),J={fontFamily:F,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","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},P=e.FtCssVariable.extend("--ft-typography-title-font-family",L),Q=e.FtCssVariable.extend("--ft-typography-title-font-size",J.fontSize,"20px"),V=e.FtCssVariable.extend("--ft-typography-title-font-weight",J.fontWeight,"normal"),X=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",J.letterSpacing,"0.15px"),Y=e.FtCssVariable.extend("--ft-typography-title-line-height",J.lineHeight,"24px"),tt=e.FtCssVariable.extend("--ft-typography-title-text-transform",J.textTransform,"inherit"),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",J.fontSize,"14px"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",J.fontWeight,"normal"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",J.letterSpacing,"0.105px"),st=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",J.lineHeight,"24px"),at=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",J.textTransform,"inherit"),rt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",F),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",J.fontSize,"16px"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",J.fontWeight,"600"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",J.letterSpacing,"0.144px"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",J.lineHeight,"24px"),xt=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",J.textTransform,"inherit"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",F),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",J.fontSize,"14px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",J.fontWeight,"normal"),ct=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",J.letterSpacing,"0.098px"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",J.lineHeight,"24px"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",J.textTransform,"inherit"),vt=e.FtCssVariable.extend("--ft-typography-body1-font-family",F),$t=e.FtCssVariable.extend("--ft-typography-body1-font-size",J.fontSize,"16px"),bt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",J.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",J.letterSpacing,"0.496px"),zt=e.FtCssVariable.extend("--ft-typography-body1-line-height",J.lineHeight,"24px"),St=e.FtCssVariable.extend("--ft-typography-body1-text-transform",J.textTransform,"inherit"),kt=e.FtCssVariable.extend("--ft-typography-body2-font-family",F),Nt=e.FtCssVariable.extend("--ft-typography-body2-font-size",J.fontSize,"14px"),jt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",J.fontWeight,"normal"),Et=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",J.letterSpacing,"0.252px"),It=e.FtCssVariable.extend("--ft-typography-body2-line-height",J.lineHeight,"20px"),Ot=e.FtCssVariable.extend("--ft-typography-body2-text-transform",J.textTransform,"inherit"),Ct=e.FtCssVariable.extend("--ft-typography-caption-font-family",F),_t=e.FtCssVariable.extend("--ft-typography-caption-font-size",J.fontSize,"12px"),At=e.FtCssVariable.extend("--ft-typography-caption-font-weight",J.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",J.letterSpacing,"0.396px"),Mt=e.FtCssVariable.extend("--ft-typography-caption-line-height",J.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",J.textTransform,"inherit"),Ut=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",F),Wt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",J.fontSize,"10px"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",J.fontWeight,"normal"),Kt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",J.letterSpacing,"0.33px"),Rt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",J.lineHeight,"16px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",J.textTransform,"inherit"),Gt=e.FtCssVariable.extend("--ft-typography-overline-font-family",F),qt=e.FtCssVariable.extend("--ft-typography-overline-font-size",J.fontSize,"10px"),Ht=e.FtCssVariable.extend("--ft-typography-overline-font-weight",J.fontWeight,"normal"),Lt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",J.letterSpacing,"1.5px"),Ft=e.FtCssVariable.extend("--ft-typography-overline-line-height",J.lineHeight,"16px"),Jt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",J.textTransform,"uppercase"),Pt=e.FtCssVariable.extend("--ft-typography-button-font-family",F),Qt=e.FtCssVariable.extend("--ft-typography-button-font-size",J.fontSize,"14px"),Vt=e.FtCssVariable.extend("--ft-typography-button-font-weight",J.fontWeight,"600"),Xt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",J.letterSpacing,"1.246px"),Yt=e.FtCssVariable.extend("--ft-typography-button-line-height",J.lineHeight,"16px"),te=e.FtCssVariable.extend("--ft-typography-button-text-transform",J.textTransform,"uppercase"),ee=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
-
font-family: ${
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
15
|
+
font-family: ${P};
|
|
16
|
+
font-size: ${Q};
|
|
17
|
+
font-weight: ${V};
|
|
18
|
+
letter-spacing: ${X};
|
|
19
|
+
line-height: ${Y};
|
|
20
|
+
text-transform: ${tt};
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,ie=i.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${
|
|
25
|
-
font-size: ${
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
28
|
-
line-height: ${
|
|
29
|
-
text-transform: ${
|
|
24
|
+
font-family: ${et};
|
|
25
|
+
font-size: ${it};
|
|
26
|
+
font-weight: ${ot};
|
|
27
|
+
letter-spacing: ${nt};
|
|
28
|
+
line-height: ${st};
|
|
29
|
+
text-transform: ${at};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,oe=i.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
34
|
-
font-size: ${
|
|
35
|
-
font-weight: ${
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
33
|
+
font-family: ${rt};
|
|
34
|
+
font-size: ${lt};
|
|
35
|
+
font-weight: ${pt};
|
|
36
|
+
letter-spacing: ${ht};
|
|
37
|
+
line-height: ${ft};
|
|
38
|
+
text-transform: ${xt};
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,ne=i.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${gt};
|
|
43
|
+
font-size: ${dt};
|
|
44
|
+
font-weight: ${yt};
|
|
45
|
+
letter-spacing: ${ct};
|
|
46
|
+
line-height: ${mt};
|
|
47
|
+
text-transform: ${ut};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,
|
|
50
|
+
`,se=i.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${vt};
|
|
53
|
+
font-size: ${$t};
|
|
54
|
+
font-weight: ${bt};
|
|
55
|
+
letter-spacing: ${wt};
|
|
56
|
+
line-height: ${zt};
|
|
57
|
+
text-transform: ${St};
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,ae=i.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
61
|
+
font-family: ${kt};
|
|
62
|
+
font-size: ${Nt};
|
|
63
|
+
font-weight: ${jt};
|
|
64
|
+
letter-spacing: ${Et};
|
|
65
|
+
line-height: ${It};
|
|
66
|
+
text-transform: ${Ot};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,re=i.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
70
|
+
font-family: ${Ct};
|
|
71
|
+
font-size: ${_t};
|
|
72
72
|
font-weight: ${At};
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
73
|
+
letter-spacing: ${Zt};
|
|
74
|
+
line-height: ${Mt};
|
|
75
|
+
text-transform: ${Tt};
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,le=i.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
79
|
+
font-family: ${Ut};
|
|
80
|
+
font-size: ${Wt};
|
|
81
|
+
font-weight: ${Bt};
|
|
82
|
+
letter-spacing: ${Kt};
|
|
83
|
+
line-height: ${Rt};
|
|
84
|
+
text-transform: ${Dt};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,pe=i.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
88
|
+
font-family: ${Gt};
|
|
89
|
+
font-size: ${qt};
|
|
90
|
+
font-weight: ${Ht};
|
|
91
|
+
letter-spacing: ${Lt};
|
|
92
|
+
line-height: ${Ft};
|
|
93
|
+
text-transform: ${Jt};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,he=i.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
97
|
+
font-family: ${Pt};
|
|
98
|
+
font-size: ${Qt};
|
|
99
|
+
font-weight: ${Vt};
|
|
100
|
+
letter-spacing: ${Xt};
|
|
101
|
+
line-height: ${Yt};
|
|
102
|
+
text-transform: ${te};
|
|
103
103
|
}
|
|
104
|
-
`;class
|
|
105
|
-
<${
|
|
104
|
+
`;class fe extends e.FtLitElement{constructor(){super(...arguments),this.variant=q.body1}render(){return this.element?G`
|
|
105
|
+
<${R(this.element)}
|
|
106
106
|
class="ft-typography ft-typography--${this.variant}">
|
|
107
107
|
<slot></slot>
|
|
108
|
-
</${
|
|
109
|
-
`:
|
|
108
|
+
</${R(this.element)}>
|
|
109
|
+
`:G`
|
|
110
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
111
|
-
`}}var
|
|
111
|
+
`}}var xe,ge;fe.styles=[ee,ie,oe,ne,se,ae,re,le,pe,he,i.css`
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],
|
|
115
|
+
`],H([o.property()],fe.prototype,"element",void 0),H([o.property()],fe.prototype,"variant",void 0),e.customElement("ft-typography")(fe),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=""}(xe||(xe={})),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=""}(ge||(ge={})),new Map([...["abw"].map((t=>[t,ge.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,ge.AUDIO])),...["avi"].map((t=>[t,ge.AVI])),...["chm","xhs"].map((t=>[t,ge.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,ge.CODE])),...["csv"].map((t=>[t,ge.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ge.DITA])),...["epub"].map((t=>[t,ge.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ge.EXCEL])),...["flac"].map((t=>[t,ge.FLAC])),...["gif"].map((t=>[t,ge.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ge.GZIP])),...["html","htm","xhtml"].map((t=>[t,ge.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,ge.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ge.JPEG])),...["json"].map((t=>[t,ge.JSON])),...["m4a","m4p"].map((t=>[t,ge.M4A])),...["mov","qt"].map((t=>[t,ge.MOV])),...["mp3"].map((t=>[t,ge.MP3])),...["mp4","m4v"].map((t=>[t,ge.MP4])),...["ogg","oga"].map((t=>[t,ge.OGG])),...["pdf","ps"].map((t=>[t,ge.PDF])),...["png"].map((t=>[t,ge.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ge.POWERPOINT])),...["rar"].map((t=>[t,ge.RAR])),...["stp"].map((t=>[t,ge.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ge.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,ge.VIDEO])),...["wav"].map((t=>[t,ge.WAV])),...["wma"].map((t=>[t,ge.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ge.WORD])),...["xml","xsl","rdf"].map((t=>[t,ge.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ge.YAML])),...["zip"].map((t=>[t,ge.ZIP]))]);var de,ye=function(t,e,i,o){for(var n,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(de||(de={}));const ce=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),me=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),ue=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ve=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class $e extends e.FtLitElement{constructor(){super(...arguments),this.variant=de.fluid_topics}render(){return i.html`
|
|
116
116
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
117
117
|
${n.unsafeHTML(this.getIcon())}
|
|
118
118
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
119
119
|
</i>
|
|
120
|
-
`}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 o=this.textContent;return this.variant===
|
|
120
|
+
`}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 o=this.textContent;return this.variant===de.file_format?null!==(t=ge[o.toUpperCase()])&&void 0!==t?t:o:this.variant===de.fluid_topics?null!==(e=xe[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}$e.elementDefinitions={},$e.styles=i.css`
|
|
121
121
|
:host, i.ft-icon {
|
|
122
122
|
display: inline-block;
|
|
123
|
-
width: ${
|
|
124
|
-
height: ${
|
|
123
|
+
width: ${ce};
|
|
124
|
+
height: ${ce};
|
|
125
125
|
text-align: center;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
i.ft-icon {
|
|
129
|
-
font-size: ${
|
|
129
|
+
font-size: ${ce};
|
|
130
130
|
line-height: 1;
|
|
131
131
|
font-weight: normal;
|
|
132
132
|
text-transform: none;
|
|
@@ -140,24 +140,24 @@ const B=t=>({_$litStatic$:t}),K=new Map,R=(t=>(e,...i)=>{var o;const n=i.length;
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.ft-icon--fluid-topics {
|
|
143
|
-
font-family: ${
|
|
143
|
+
font-family: ${me}, ft-icons, fticons, sans-serif;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ft-icon--file-format {
|
|
147
|
-
font-family: ${
|
|
147
|
+
font-family: ${ue}, ft-mime, sans-serif;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.ft-icon--material {
|
|
151
|
-
font-family: ${
|
|
151
|
+
font-family: ${ve}, "Material Icons", sans-serif;
|
|
152
152
|
}
|
|
153
|
-
`,
|
|
153
|
+
`,ye([o.property()],$e.prototype,"variant",void 0),ye([o.query("slot")],$e.prototype,"slottedContent",void 0),e.customElement("ft-icon")($e);var be=function(t,e,i,o){for(var n,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const we={zIndex:e.FtCssVariable.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:e.FtCssVariable.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:e.FtCssVariable.create("--ft-dialog-height","SIZE","unset"),width:e.FtCssVariable.create("--ft-dialog-width","SIZE","unset"),minWidth:e.FtCssVariable.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:e.FtCssVariable.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:e.FtCssVariable.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:e.FtCssVariable.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),headingColor:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation24:e.FtCssVariable.external(e.designSystemVariables.elevation24,"Design system")};class ze extends e.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.heading="",this.icon=""}static get styles(){return i.css`
|
|
154
154
|
.ft-dialog {
|
|
155
155
|
position: fixed;
|
|
156
156
|
top: 0;
|
|
157
157
|
right: 0;
|
|
158
158
|
bottom: 0;
|
|
159
159
|
left: 0;
|
|
160
|
-
z-index: ${
|
|
160
|
+
z-index: ${we.zIndex};
|
|
161
161
|
|
|
162
162
|
display: flex;
|
|
163
163
|
flex-direction: column;
|
|
@@ -177,7 +177,7 @@ const B=t=>({_$litStatic$:t}),K=new Map,R=(t=>(e,...i)=>{var o;const n=i.length;
|
|
|
177
177
|
height: 100%;
|
|
178
178
|
width: 100%;
|
|
179
179
|
|
|
180
|
-
background-color: ${
|
|
180
|
+
background-color: ${we.overlayBackgroundColor};
|
|
181
181
|
|
|
182
182
|
}
|
|
183
183
|
|
|
@@ -186,20 +186,20 @@ const B=t=>({_$litStatic$:t}),K=new Map,R=(t=>(e,...i)=>{var o;const n=i.length;
|
|
|
186
186
|
display: flex;
|
|
187
187
|
flex-direction: column;
|
|
188
188
|
|
|
189
|
-
width: ${
|
|
190
|
-
height: ${
|
|
189
|
+
width: ${we.width};
|
|
190
|
+
height: ${we.height};
|
|
191
191
|
max-width: 95vw;
|
|
192
192
|
max-height: 95vh;
|
|
193
|
-
min-width: ${
|
|
193
|
+
min-width: ${we.minWidth};
|
|
194
194
|
|
|
195
|
-
padding-top: ${
|
|
196
|
-
padding-right: ${
|
|
197
|
-
padding-left: ${
|
|
195
|
+
padding-top: ${we.paddingTop};
|
|
196
|
+
padding-right: ${we.paddingSide};
|
|
197
|
+
padding-left: ${we.paddingSide};
|
|
198
198
|
|
|
199
|
-
background-color: ${
|
|
199
|
+
background-color: ${we.colorSurface};
|
|
200
200
|
|
|
201
|
-
border-radius: ${
|
|
202
|
-
box-shadow: ${
|
|
201
|
+
border-radius: ${we.borderRadiusS};
|
|
202
|
+
box-shadow: ${we.elevation24};
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.ft-dialog-content {
|
|
@@ -213,11 +213,11 @@ const B=t=>({_$litStatic$:t}),K=new Map,R=(t=>(e,...i)=>{var o;const n=i.length;
|
|
|
213
213
|
margin-bottom: 20px;
|
|
214
214
|
gap: 8px;
|
|
215
215
|
|
|
216
|
-
color: ${
|
|
216
|
+
color: ${we.headingColor};
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
.ft-dialog-buttons {
|
|
220
|
-
padding-top: ${
|
|
220
|
+
padding-top: ${we.paddingButtons};
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
slot[name=buttons] {
|
|
@@ -251,4 +251,4 @@ const B=t=>({_$litStatic$:t}),K=new Map,R=(t=>(e,...i)=>{var o;const n=i.length;
|
|
|
251
251
|
</div>
|
|
252
252
|
</div>
|
|
253
253
|
</div>
|
|
254
|
-
`:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.opened=!1}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}
|
|
254
|
+
`:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.opened=!1}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}ze.elementDefinitions={"ft-typography":fe,"ft-icon":$e},be([o.property({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],ze.prototype,"opened",void 0),be([o.property({type:Boolean})],ze.prototype,"closeOnEsc",void 0),be([o.property({type:Boolean})],ze.prototype,"closeOnClickOutside",void 0),be([o.property({type:String})],ze.prototype,"heading",void 0),be([o.property({type:String})],ze.prototype,"icon",void 0),e.customElement("ft-dialog")(ze),t.FtDialog=ze,t.FtDialogCssVariables=we,t.default=ze,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|