@fluid-topics/ft-dialog 0.1.17 → 0.1.18
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.d.ts +3 -3
- package/build/ft-dialog.inline-styles.js +313 -0
- package/build/ft-dialog.js +5 -9
- package/build/ft-dialog.light.js +30 -30
- package/build/ft-dialog.min.js +90 -76
- package/build/index.d.ts +4 -0
- package/build/index.js +6 -0
- package/build/inline-styles.d.ts +2 -0
- package/build/inline-styles.js +4 -0
- package/package.json +7 -7
package/build/ft-dialog.light.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var n;const s=globalThis.trustedTypes,r=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
7
|
+
var n;const s=globalThis.trustedTypes,r=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,a=`lit$${(Math.random()+"").slice(9)}$`,h="?"+a,l=`<${h}>`,p=document,f=(t="")=>p.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,d=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,u=/>/g,v=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,m=/'/g,$=/"/g,x=/^(?:script|style|textarea|title)$/i,b=(t=>(i,...o)=>({_$litType$:t,strings:i,values:o}))(1),w=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),S=new WeakMap,E=p.createTreeWalker(p,129,null,!1),k=(t,i)=>{const o=t.length-1,e=[];let n,s=2===i?"<svg>":"",h=d;for(let i=0;i<o;i++){const o=t[i];let r,p,f=-1,g=0;for(;g<o.length&&(h.lastIndex=g,p=h.exec(o),null!==p);)g=h.lastIndex,h===d?"!--"===p[1]?h=c:void 0!==p[1]?h=u:void 0!==p[2]?(x.test(p[2])&&(n=RegExp("</"+p[2],"g")),h=v):void 0!==p[3]&&(h=v):h===v?">"===p[0]?(h=null!=n?n:d,f=-1):void 0===p[1]?f=-2:(f=h.lastIndex-p[2].length,r=p[1],h=void 0===p[3]?v:'"'===p[3]?$:m):h===$||h===m?h=v:h===c||h===u?h=d:(h=v,n=void 0);const y=h===v&&t[i+1].startsWith("/>")?" ":"";s+=h===d?o+l:f>=0?(e.push(r),o.slice(0,f)+"$lit$"+o.slice(f)+a+y):o+a+(-2===f?(e.push(void 0),i):y)}const p=s+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(p):p,e]};class A{constructor({strings:t,_$litType$:i},o){let e;this.parts=[];let n=0,r=0;const l=t.length-1,p=this.parts,[g,y]=k(t,i);if(this.el=A.createElement(g,o),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=E.nextNode())&&p.length<l;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(a)){const o=y[r++];if(t.push(i),void 0!==o){const t=e.getAttribute(o.toLowerCase()+"$lit$").split(a),i=/([.?@])?(.*)/.exec(o);p.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?N:"?"===i[1]?j:"@"===i[1]?T:C})}else p.push({type:6,index:n})}for(const i of t)e.removeAttribute(i)}if(x.test(e.tagName)){const t=e.textContent.split(a),i=t.length-1;if(i>0){e.textContent=s?s.emptyScript:"";for(let o=0;o<i;o++)e.append(t[o],f()),E.nextNode(),p.push({type:2,index:++n});e.append(t[i],f())}}}else if(8===e.nodeType)if(e.data===h)p.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf(a,t+1));)p.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,i){const o=p.createElement("template");return o.innerHTML=t,o}}function _(t,i,o=t,e){var n,s,r,a;if(i===w)return i;let h=void 0!==e?null===(n=o._$Cl)||void 0===n?void 0:n[e]:o._$Cu;const l=g(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==l&&(null===(s=null==h?void 0:h._$AO)||void 0===s||s.call(h,!1),void 0===l?h=void 0:(h=new l(t),h._$AT(t,o,e)),void 0!==e?(null!==(r=(a=o)._$Cl)&&void 0!==r?r:a._$Cl=[])[e]=h:o._$Cu=h),void 0!==h&&(i=_(t,h._$AS(t,i.values),h,e)),i}class I{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:o},parts:e}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:p).importNode(o,!0);E.currentNode=n;let s=E.nextNode(),r=0,a=0,h=e[0];for(;void 0!==h;){if(r===h.index){let i;2===h.type?i=new O(s,s.nextSibling,this,t):1===h.type?i=new h.ctor(s,h.name,h.strings,this,t):6===h.type&&(i=new M(s,this,t)),this.v.push(i),h=e[++a]}r!==(null==h?void 0:h.index)&&(s=E.nextNode(),r++)}return n}m(t){let i=0;for(const o of this.v)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}}class O{constructor(t,i,o,e){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=e,this._$Cg=null===(n=null==e?void 0:e.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=_(this,t,i),g(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==w&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return y(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&g(this._$AH)?this._$AA.nextSibling.data=t:this.S(p.createTextNode(t)),this._$AH=t}T(t){var i;const{values:o,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=A.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(o);else{const t=new I(n,this),i=t.p(this.options);t.m(o),this.S(i),this._$AH=t}}_$AC(t){let i=S.get(t.strings);return void 0===i&&S.set(t.strings,i=new A(t)),i}A(t){y(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,e=0;for(const n of t)e===i.length?i.push(o=new O(this.M(f()),this.M(f()),this,this.options)):o=i[e],o._$AI(n),e++;e<i.length&&(this._$AR(o&&o._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class C{constructor(t,i,o,e,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,e){const n=this.strings;let s=!1;if(void 0===n)t=_(this,t,i,0),s=!g(t)||t!==this._$AH&&t!==w,s&&(this._$AH=t);else{const e=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=_(this,e[o+r],i,r),a===w&&(a=this._$AH[r]),s||(s=!g(a)||a!==this._$AH[r]),a===z?t=z:t!==z&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!e&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class N extends C{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const Z=s?s.emptyScript:"";class j extends C{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class T extends C{constructor(t,i,o,e,n){super(t,i,o,e,n),this.type=5}_$AI(t,i=this){var o;if((t=null!==(o=_(this,t,i,0))&&void 0!==o?o:z)===w)return;const e=this._$AH,n=t===z&&e!==z||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,s=t!==z&&(e===z||n);n&&this.element.removeEventListener(this.name,this,e),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class M{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){_(this,t)}}const U=window.litHtmlPolyfillSupport;null==U||U(A,O),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
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}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;let s,r;const
|
|
13
|
+
const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;let s,r;const a=[],h=[];let l,p=0,f=!1;for(;p<n;){for(l=i[p];p<n&&void 0!==(r=o[p],s=null===(e=r)||void 0===e?void 0:e._$litStatic$);)l+=s+i[++p],f=!0;h.push(r),a.push(l),p++}if(p===n&&a.push(i[n]),f){const t=a.join("$$lit$$");void 0===(i=R.get(t))&&(a.raw=a,R.set(t,i=a)),o=h}return t(i,...o)})(b);var D,G=function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,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"}(D||(D={}));const K=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),L=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),H={fontFamily:L,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},F=i.FtCssVariable.extend("--ft-typography-title-font-family",K),q=i.FtCssVariable.extend("--ft-typography-title-font-size",H.fontSize,"20px"),J=i.FtCssVariable.extend("--ft-typography-title-font-weight",H.fontWeight,"normal"),P=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",H.letterSpacing,"0.15px"),Q=i.FtCssVariable.extend("--ft-typography-title-line-height",H.lineHeight,"24px"),V=i.FtCssVariable.extend("--ft-typography-title-text-transform",H.textTransform,"inherit"),X=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",K),Y=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",H.fontSize,"14px"),tt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",H.fontWeight,"normal"),it=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",H.letterSpacing,"0.105px"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",H.lineHeight,"24px"),et=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",H.textTransform,"inherit"),nt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",L),st=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",H.fontSize,"16px"),rt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",H.fontWeight,"600"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",H.letterSpacing,"0.144px"),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",H.lineHeight,"24px"),lt=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",H.textTransform,"inherit"),pt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",L),ft=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",H.fontSize,"14px"),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",H.fontWeight,"normal"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",H.letterSpacing,"0.098px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",H.lineHeight,"24px"),ct=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",H.textTransform,"inherit"),ut=i.FtCssVariable.extend("--ft-typography-body1-font-family",L),vt=i.FtCssVariable.extend("--ft-typography-body1-font-size",H.fontSize,"16px"),mt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",H.fontWeight,"normal"),$t=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",H.letterSpacing,"0.496px"),xt=i.FtCssVariable.extend("--ft-typography-body1-line-height",H.lineHeight,"24px"),bt=i.FtCssVariable.extend("--ft-typography-body1-text-transform",H.textTransform,"inherit"),wt=i.FtCssVariable.extend("--ft-typography-body2-font-family",L),zt=i.FtCssVariable.extend("--ft-typography-body2-font-size",H.fontSize,"14px"),St=i.FtCssVariable.extend("--ft-typography-body2-font-weight",H.fontWeight,"normal"),Et=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",H.letterSpacing,"0.252px"),kt=i.FtCssVariable.extend("--ft-typography-body2-line-height",H.lineHeight,"20px"),At=i.FtCssVariable.extend("--ft-typography-body2-text-transform",H.textTransform,"inherit"),_t=i.FtCssVariable.extend("--ft-typography-caption-font-family",L),It=i.FtCssVariable.extend("--ft-typography-caption-font-size",H.fontSize,"12px"),Ot=i.FtCssVariable.extend("--ft-typography-caption-font-weight",H.fontWeight,"normal"),Ct=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",H.letterSpacing,"0.396px"),Nt=i.FtCssVariable.extend("--ft-typography-caption-line-height",H.lineHeight,"16px"),Zt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",H.textTransform,"inherit"),jt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",L),Tt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",H.fontSize,"10px"),Mt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",H.fontWeight,"normal"),Ut=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",H.letterSpacing,"0.33px"),Bt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",H.lineHeight,"16px"),Rt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",H.textTransform,"inherit"),Wt=i.FtCssVariable.extend("--ft-typography-overline-font-family",L),Dt=i.FtCssVariable.extend("--ft-typography-overline-font-size",H.fontSize,"10px"),Gt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",H.fontWeight,"normal"),Kt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",H.letterSpacing,"1.5px"),Lt=i.FtCssVariable.extend("--ft-typography-overline-line-height",H.lineHeight,"16px"),Ht=i.FtCssVariable.extend("--ft-typography-overline-text-transform",H.textTransform,"uppercase"),Ft=i.FtCssVariable.extend("--ft-typography-button-font-family",L),qt=i.FtCssVariable.extend("--ft-typography-button-font-size",H.fontSize,"14px"),Jt=i.FtCssVariable.extend("--ft-typography-button-font-weight",H.fontWeight,"600"),Pt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",H.letterSpacing,"1.246px"),Qt=i.FtCssVariable.extend("--ft-typography-button-line-height",H.lineHeight,"16px"),Vt=i.FtCssVariable.extend("--ft-typography-button-text-transform",H.textTransform,"uppercase"),Xt=o.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${F};
|
|
16
16
|
font-size: ${q};
|
|
@@ -19,7 +19,7 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
19
19
|
line-height: ${Q};
|
|
20
20
|
text-transform: ${V};
|
|
21
21
|
}
|
|
22
|
-
`,Yt=
|
|
22
|
+
`,Yt=o.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
24
|
font-family: ${X};
|
|
25
25
|
font-size: ${Y};
|
|
@@ -28,16 +28,16 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
28
28
|
line-height: ${ot};
|
|
29
29
|
text-transform: ${et};
|
|
30
30
|
}
|
|
31
|
-
`,ti=
|
|
31
|
+
`,ti=o.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
33
|
font-family: ${nt};
|
|
34
34
|
font-size: ${st};
|
|
35
35
|
font-weight: ${rt};
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
36
|
+
letter-spacing: ${at};
|
|
37
|
+
line-height: ${ht};
|
|
38
|
+
text-transform: ${lt};
|
|
39
39
|
}
|
|
40
|
-
`,ii=
|
|
40
|
+
`,ii=o.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
42
|
font-family: ${pt};
|
|
43
43
|
font-size: ${ft};
|
|
@@ -47,7 +47,7 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
47
47
|
text-transform: ${ct};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,oi=
|
|
50
|
+
`,oi=o.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
52
|
font-family: ${ut};
|
|
53
53
|
font-size: ${vt};
|
|
@@ -56,7 +56,7 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
56
56
|
line-height: ${xt};
|
|
57
57
|
text-transform: ${bt};
|
|
58
58
|
}
|
|
59
|
-
`,ei=
|
|
59
|
+
`,ei=o.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
61
|
font-family: ${wt};
|
|
62
62
|
font-size: ${zt};
|
|
@@ -65,25 +65,25 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
65
65
|
line-height: ${kt};
|
|
66
66
|
text-transform: ${At};
|
|
67
67
|
}
|
|
68
|
-
`,ni=
|
|
68
|
+
`,ni=o.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
70
|
font-family: ${_t};
|
|
71
71
|
font-size: ${It};
|
|
72
72
|
font-weight: ${Ot};
|
|
73
73
|
letter-spacing: ${Ct};
|
|
74
74
|
line-height: ${Nt};
|
|
75
|
-
text-transform: ${
|
|
75
|
+
text-transform: ${Zt};
|
|
76
76
|
}
|
|
77
|
-
`,si=
|
|
77
|
+
`,si=o.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
79
|
+
font-family: ${jt};
|
|
80
|
+
font-size: ${Tt};
|
|
81
81
|
font-weight: ${Mt};
|
|
82
82
|
letter-spacing: ${Ut};
|
|
83
83
|
line-height: ${Bt};
|
|
84
84
|
text-transform: ${Rt};
|
|
85
85
|
}
|
|
86
|
-
`,ri=
|
|
86
|
+
`,ri=o.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
88
|
font-family: ${Wt};
|
|
89
89
|
font-size: ${Dt};
|
|
@@ -92,7 +92,7 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
92
92
|
line-height: ${Lt};
|
|
93
93
|
text-transform: ${Ht};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,ai=o.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
97
|
font-family: ${Ft};
|
|
98
98
|
font-size: ${qt};
|
|
@@ -101,29 +101,29 @@ const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;
|
|
|
101
101
|
line-height: ${Qt};
|
|
102
102
|
text-transform: ${Vt};
|
|
103
103
|
}
|
|
104
|
-
`;
|
|
105
|
-
.ft-typography {
|
|
106
|
-
vertical-align: inherit;
|
|
107
|
-
}
|
|
108
|
-
`]}getTemplate(){return this.element?W`
|
|
104
|
+
`;class hi extends i.FtLitElement{constructor(){super(...arguments),this.variant=D.body1}render(){return this.element?W`
|
|
109
105
|
<${B(this.element)}
|
|
110
106
|
class="ft-typography ft-typography--${this.variant}">
|
|
111
107
|
<slot></slot>
|
|
112
108
|
</${B(this.element)}>
|
|
113
109
|
`:W`
|
|
114
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}
|
|
111
|
+
`}}hi.styles=[Xt,Yt,ti,ii,oi,ei,ni,si,ri,ai,o.css`
|
|
112
|
+
.ft-typography {
|
|
113
|
+
vertical-align: inherit;
|
|
114
|
+
}
|
|
115
|
+
`],G([e.property()],hi.prototype,"element",void 0),G([e.property()],hi.prototype,"variant",void 0),i.customElement("ft-typography")(hi);
|
|
116
116
|
/**
|
|
117
117
|
* @license
|
|
118
118
|
* Copyright 2021 Google LLC
|
|
119
119
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
120
120
|
*/
|
|
121
|
-
const
|
|
121
|
+
const li=o.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
|
|
122
122
|
/**
|
|
123
123
|
* @license
|
|
124
124
|
* Copyright 2018 Google LLC
|
|
125
125
|
* SPDX-License-Identifier: Apache-2.0
|
|
126
|
-
*/;let pi=class extends
|
|
126
|
+
*/;let pi=class extends o.LitElement{render(){return o.html`<span><slot></slot></span>`}};pi.styles=[li],pi=
|
|
127
127
|
/*! *****************************************************************************
|
|
128
128
|
Copyright (c) Microsoft Corporation.
|
|
129
129
|
|
|
@@ -138,7 +138,7 @@ const hi=i.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
|
|
|
138
138
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
139
139
|
PERFORMANCE OF THIS SOFTWARE.
|
|
140
140
|
***************************************************************************** */
|
|
141
|
-
function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,
|
|
141
|
+
function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,r),r}([e.customElement("mwc-icon")],pi);var fi=function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,r),r};const gi={zIndex:i.FtCssVariable.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:i.FtCssVariable.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:i.FtCssVariable.create("--ft-dialog-height","SIZE","unset"),width:i.FtCssVariable.create("--ft-dialog-width","SIZE","unset"),minWidth:i.FtCssVariable.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:i.FtCssVariable.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:i.FtCssVariable.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:i.FtCssVariable.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:i.FtCssVariable.external(i.designSystemVariables.colorSurface,"Design system"),headingColor:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system"),elevation24:i.FtCssVariable.external(i.designSystemVariables.elevation24,"Design system")};class yi extends i.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.heading="",this.icon=""}static get styles(){return o.css`
|
|
142
142
|
.ft-dialog {
|
|
143
143
|
position: fixed;
|
|
144
144
|
top: 0;
|
|
@@ -220,13 +220,13 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
|
|
|
220
220
|
margin-bottom: 8px
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
`}
|
|
223
|
+
`}render(){return this.opened?o.html`
|
|
224
224
|
<div class="ft-dialog">
|
|
225
225
|
<div class="ft-dialog-overlay" @click="${()=>this.watchClickOutside()}"></div>
|
|
226
226
|
<div class="ft-dialog-wrapper">
|
|
227
|
-
${this.heading?
|
|
227
|
+
${this.heading?o.html`
|
|
228
228
|
<div class="ft-dialog-heading">
|
|
229
|
-
${this.icon?
|
|
229
|
+
${this.icon?o.html`
|
|
230
230
|
<mwc-icon>${this.icon}</mwc-icon>`:void 0}
|
|
231
231
|
<ft-typography element="span" variant="title">${this.heading}</ft-typography>
|
|
232
232
|
</div>
|
|
@@ -239,4 +239,4 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
|
|
|
239
239
|
</div>
|
|
240
240
|
</div>
|
|
241
241
|
</div>
|
|
242
|
-
`: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()}}
|
|
242
|
+
`: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()}}yi.elementDefinitions={"ft-typography":hi,"mwc-icon":pi},fi([e.property({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],yi.prototype,"opened",void 0),fi([e.property({type:Boolean})],yi.prototype,"closeOnEsc",void 0),fi([e.property({type:Boolean})],yi.prototype,"closeOnClickOutside",void 0),fi([e.property({type:String})],yi.prototype,"heading",void 0),fi([e.property({type:String})],yi.prototype,"icon",void 0),i.customElement("ft-dialog")(yi),t.FtDialog=yi,t.FtDialogCssVariables=gi,t.default=yi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
|