@fluid-topics/ft-dialog 0.2.15 → 0.2.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.light.js +31 -29
- package/build/ft-dialog.min.js +161 -158
- package/package.json +6 -6
- package/build/ft-dialog.inline-styles.js +0 -749
- package/build/inline-styles.d.ts +0 -2
- package/build/inline-styles.js +0 -4
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 r;const a=globalThis.trustedTypes,l=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,h="?"+p,f=`<${h}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,
|
|
7
|
+
var r;const a=globalThis.trustedTypes,l=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,h="?"+p,f=`<${h}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,x=/-->/g,b=/>/g,v=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,m=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,k=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),z=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),C=new WeakMap,O=d.createTreeWalker(d,129,null,!1),j=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=y;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,d=0;for(;d<e.length&&(r.lastIndex=d,l=r.exec(e),null!==l);)d=r.lastIndex,r===y?"!--"===l[1]?r=x:void 0!==l[1]?r=b:void 0!==l[2]?(w.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=v):void 0!==l[3]&&(r=v):r===v?">"===l[0]?(r=null!=n?n:y,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?v:'"'===l[3]?$:m):r===$||r===m?r=v:r===x||r===b?r=y:(r=v,n=void 0);const c=r===v&&t[i+1].startsWith("/>")?" ":"";s+=r===y?e+f:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+p+c):e+p+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==l?l.createHTML(a):a,o]};class E{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[f,d]=j(t,i);if(this.el=E.createElement(f,e),O.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=O.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(p)){const e=d[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(p),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?A:"?"===i[1]?M:"@"===i[1]?_:T})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(w.test(o.tagName)){const t=o.textContent.split(p),i=t.length-1;if(i>0){o.textContent=a?a.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],c()),O.nextNode(),l.push({type:2,index:++n});o.append(t[i],c())}}}else if(8===o.nodeType)if(o.data===h)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)l.push({type:7,index:n}),t+=p.length-1}n++}}static createElement(t,i){const e=d.createElement("template");return e.innerHTML=t,e}}function N(t,i,e=t,o){var n,s,r,a;if(i===z)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const p=u(i)?void 0:i._$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,e,o)),void 0!==o?(null!==(r=(a=e)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=N(t,l._$AS(t,i.values),l,o)),i}class B{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:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:d).importNode(e,!0);O.currentNode=n;let s=O.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new I(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new Z(s,this,t)),this.v.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=O.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class I{constructor(t,i,e,o){var n;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.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=N(this,t,i),u(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 i;return g(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.k(d.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$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===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new B(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new E(t)),i}S(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new I(this.M(c()),this.M(c()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.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 T{constructor(t,i,e,o,n){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=N(this,t,i,0),s=!u(t)||t!==this._$AH&&t!==z,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=N(this,o[e+r],i,r),a===z&&(a=this._$AH[r]),s||(s=!u(a)||a!==this._$AH[r]),a===S?t=S:t!==S&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}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 T{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===S?void 0:t}}const F=a?a.emptyScript:"";class M extends T{constructor(){super(...arguments),this.type=4}C(t){t&&t!==S?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class _ extends T{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=N(this,t,i,0))&&void 0!==e?e: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 i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const R=window.litHtmlPolyfillSupport;null==R||R(E,I),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r: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
|
|
13
|
+
const D=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===D)return null===(e=t)||void 0===e?void 0:e._$litStatic$},W=t=>({_$litStatic$:t,r:D}),H=new Map,K=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(s=e[p],n=U(s));)l+=n+i[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=H.get(t))&&(r.raw=r,H.set(t,i=r)),e=a}return t(i,...e)})(k);var L,G=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,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"}(L||(L={}));const q=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),P=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),X={fontFamily:P,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","NUMBER","1.5"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},Y=i.FtCssVariable.extend("--ft-typography-title-font-family",q),J=i.FtCssVariable.extend("--ft-typography-title-font-size",X.fontSize,"20px"),Q=i.FtCssVariable.extend("--ft-typography-title-font-weight",X.fontWeight,"normal"),V=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",X.letterSpacing,"0.15px"),tt=i.FtCssVariable.extend("--ft-typography-title-line-height",X.lineHeight,"1.2"),it=i.FtCssVariable.extend("--ft-typography-title-text-transform",X.textTransform,"inherit"),et=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",q),ot=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",X.fontSize,"14px"),nt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),st=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",X.letterSpacing,"0.105px"),rt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",X.lineHeight,"1.7"),at=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",X.textTransform,"inherit"),lt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",P),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",X.fontSize,"16px"),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",X.fontWeight,"600"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",X.letterSpacing,"0.144px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",X.lineHeight,"1.5"),ct=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",X.textTransform,"inherit"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",P),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),xt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",X.letterSpacing,"0.098px"),bt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",X.lineHeight,"1.7"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),mt=i.FtCssVariable.extend("--ft-typography-body1-font-family",P),$t=i.FtCssVariable.extend("--ft-typography-body1-font-size",X.fontSize,"16px"),wt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",X.fontWeight,"normal"),kt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",X.letterSpacing,"0.496px"),zt=i.FtCssVariable.extend("--ft-typography-body1-line-height",X.lineHeight,"1.5"),St=i.FtCssVariable.extend("--ft-typography-body1-text-transform",X.textTransform,"inherit"),Ct=i.FtCssVariable.extend("--ft-typography-body2-font-family",P),Ot=i.FtCssVariable.extend("--ft-typography-body2-font-size",X.fontSize,"14px"),jt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",X.fontWeight,"normal"),Et=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",X.letterSpacing,"0.252px"),Nt=i.FtCssVariable.extend("--ft-typography-body2-line-height",X.lineHeight,"1.4"),Bt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit"),It=i.FtCssVariable.extend("--ft-typography-caption-font-family",P),Tt=i.FtCssVariable.extend("--ft-typography-caption-font-size",X.fontSize,"12px"),At=i.FtCssVariable.extend("--ft-typography-caption-font-weight",X.fontWeight,"normal"),Ft=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",X.letterSpacing,"0.396px"),Mt=i.FtCssVariable.extend("--ft-typography-caption-line-height",X.lineHeight,"1.33"),_t=i.FtCssVariable.extend("--ft-typography-caption-text-transform",X.textTransform,"inherit"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",P),Rt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),Dt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),Ut=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),Wt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"1.6"),Ht=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),Kt=i.FtCssVariable.extend("--ft-typography-overline-font-family",P),Lt=i.FtCssVariable.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Gt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),qt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Pt=i.FtCssVariable.extend("--ft-typography-overline-line-height",X.lineHeight,"1.6"),Xt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",X.textTransform,"uppercase"),Yt={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",P),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",X.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",X.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",X.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",X.lineHeight,"1.15"),textTransform:i.FtCssVariable.extend("--ft-typography-button-text-transform",X.textTransform,"uppercase")},Jt=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${Y};
|
|
16
16
|
font-size: ${J};
|
|
@@ -41,8 +41,8 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
42
|
font-family: ${ut};
|
|
43
43
|
font-size: ${gt};
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
44
|
+
font-weight: ${yt};
|
|
45
|
+
letter-spacing: ${xt};
|
|
46
46
|
line-height: ${bt};
|
|
47
47
|
text-transform: ${vt};
|
|
48
48
|
}
|
|
@@ -63,11 +63,11 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
63
63
|
font-weight: ${jt};
|
|
64
64
|
letter-spacing: ${Et};
|
|
65
65
|
line-height: ${Nt};
|
|
66
|
-
text-transform: ${
|
|
66
|
+
text-transform: ${Bt};
|
|
67
67
|
}
|
|
68
68
|
`,oi=e.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
70
|
+
font-family: ${It};
|
|
71
71
|
font-size: ${Tt};
|
|
72
72
|
font-weight: ${At};
|
|
73
73
|
letter-spacing: ${Ft};
|
|
@@ -77,8 +77,8 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
77
77
|
`,ni=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
79
|
font-family: ${Zt};
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
80
|
+
font-size: ${Rt};
|
|
81
|
+
font-weight: ${Dt};
|
|
82
82
|
letter-spacing: ${Ut};
|
|
83
83
|
line-height: ${Wt};
|
|
84
84
|
text-transform: ${Ht};
|
|
@@ -118,8 +118,10 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
118
118
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
119
119
|
</i>
|
|
120
120
|
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===hi.file_format?null!==(t=pi[o.toUpperCase()])&&void 0!==t?t:o:this.variant===hi.fluid_topics?null!==(i=li[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}ci.elementDefinitions={},ci.styles=e.css`
|
|
121
|
-
:host
|
|
121
|
+
:host {
|
|
122
122
|
display: inline-block;
|
|
123
|
+
}
|
|
124
|
+
:host, i.ft-icon {
|
|
123
125
|
width: ${di.size};
|
|
124
126
|
height: ${di.size};
|
|
125
127
|
text-align: center;
|
|
@@ -150,7 +152,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
150
152
|
.ft-icon--material {
|
|
151
153
|
font-family: ${di.materialFontFamily}, "Material Icons", sans-serif;
|
|
152
154
|
}
|
|
153
|
-
`,fi([o.property()],ci.prototype,"variant",void 0),fi([o.query("slot")],ci.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ci);var ui=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const gi=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),
|
|
155
|
+
`,fi([o.property()],ci.prototype,"variant",void 0),fi([o.query("slot")],ci.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ci);var ui=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const gi=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),yi={color:gi,backgroundColor:i.FtCssVariable.extend("--ft-ripple-background-color",gi),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},xi=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),bi=xi,vi=i.FtCssVariable.extend("--ft-ripple-background-color",xi),mi=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),$i=mi,wi=i.FtCssVariable.extend("--ft-ripple-background-color",mi);class ki extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
154
156
|
<style>
|
|
155
157
|
.ft-ripple .ft-ripple--effect,
|
|
156
158
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -189,11 +191,11 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
.ft-ripple .ft-ripple--background {
|
|
192
|
-
background-color: ${
|
|
194
|
+
background-color: ${yi.backgroundColor};
|
|
193
195
|
}
|
|
194
196
|
|
|
195
197
|
.ft-ripple .ft-ripple--effect {
|
|
196
|
-
background-color: ${
|
|
198
|
+
background-color: ${yi.color};
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
@@ -241,19 +243,19 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
241
243
|
}
|
|
242
244
|
|
|
243
245
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
244
|
-
opacity: ${
|
|
246
|
+
opacity: ${yi.opacityContentOnSurfaceHover};
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
248
|
-
opacity: ${
|
|
250
|
+
opacity: ${yi.opacityContentOnSurfaceSelected};
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
252
|
-
opacity: ${
|
|
254
|
+
opacity: ${yi.opacityContentOnSurfaceFocused};
|
|
253
255
|
}
|
|
254
256
|
|
|
255
257
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
256
|
-
opacity: ${
|
|
258
|
+
opacity: ${yi.opacityContentOnSurfacePressed};
|
|
257
259
|
transform: translate(-50%, -50%) scale(1);
|
|
258
260
|
}
|
|
259
261
|
`,ui([o.property({type:Boolean})],ki.prototype,"primary",void 0),ui([o.property({type:Boolean})],ki.prototype,"secondary",void 0),ui([o.property({type:Boolean})],ki.prototype,"unbounded",void 0),ui([o.property({type:Boolean})],ki.prototype,"activated",void 0),ui([o.property({type:Boolean})],ki.prototype,"selected",void 0),ui([o.property({type:Boolean})],ki.prototype,"disabled",void 0),ui([o.state()],ki.prototype,"hovered",void 0),ui([o.state()],ki.prototype,"focused",void 0),ui([o.state()],ki.prototype,"pressed",void 0),ui([o.state()],ki.prototype,"rippling",void 0),ui([o.state()],ki.prototype,"rippleSize",void 0),ui([o.state()],ki.prototype,"originX",void 0),ui([o.state()],ki.prototype,"originY",void 0),ui([o.query(".ft-ripple")],ki.prototype,"ripple",void 0),ui([o.query(".ft-ripple--effect")],ki.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(ki);var zi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Si=i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),Ci=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),Oi=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),ji=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),Ei=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class Ni extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
|
|
@@ -303,7 +305,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
303
305
|
position: relative;
|
|
304
306
|
word-break: break-word;
|
|
305
307
|
}
|
|
306
|
-
`,zi([o.property()],Ni.prototype,"text",void 0),zi([o.property({type:Boolean})],Ni.prototype,"manual",void 0),zi([o.property({type:Boolean})],Ni.prototype,"inline",void 0),zi([o.property({type:Number})],Ni.prototype,"delay",void 0),zi([o.property()],Ni.prototype,"position",void 0),zi([o.queryAssignedNodes("",!0)],Ni.prototype,"slotNodes",void 0),zi([o.query(".ft-tooltip--container")],Ni.prototype,"container",void 0),zi([o.query("slot")],Ni.prototype,"target",void 0),zi([o.query(".ft-tooltip")],Ni.prototype,"tooltip",void 0),zi([o.query(".ft-tooltip--content")],Ni.prototype,"tooltipContent",void 0),zi([o.state()],Ni.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ni);const
|
|
308
|
+
`,zi([o.property()],Ni.prototype,"text",void 0),zi([o.property({type:Boolean})],Ni.prototype,"manual",void 0),zi([o.property({type:Boolean})],Ni.prototype,"inline",void 0),zi([o.property({type:Number})],Ni.prototype,"delay",void 0),zi([o.property()],Ni.prototype,"position",void 0),zi([o.queryAssignedNodes("",!0)],Ni.prototype,"slotNodes",void 0),zi([o.query(".ft-tooltip--container")],Ni.prototype,"container",void 0),zi([o.query("slot")],Ni.prototype,"target",void 0),zi([o.query(".ft-tooltip")],Ni.prototype,"tooltip",void 0),zi([o.query(".ft-tooltip--content")],Ni.prototype,"tooltipContent",void 0),zi([o.state()],Ni.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ni);const Bi={color:i.FtCssVariable.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class Ii extends i.FtLitElement{static get styles(){return e.css`
|
|
307
309
|
:host {
|
|
308
310
|
line-height: 0;
|
|
309
311
|
}
|
|
@@ -312,8 +314,8 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
312
314
|
display: inline-block;
|
|
313
315
|
position: relative;
|
|
314
316
|
|
|
315
|
-
width: ${
|
|
316
|
-
height: ${
|
|
317
|
+
width: ${Bi.size};
|
|
318
|
+
height: ${Bi.size};
|
|
317
319
|
}
|
|
318
320
|
|
|
319
321
|
.ft-loader div {
|
|
@@ -322,7 +324,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
322
324
|
width: 25%;
|
|
323
325
|
height: 25%;
|
|
324
326
|
border-radius: 50%;
|
|
325
|
-
background: ${
|
|
327
|
+
background: ${Bi.color};
|
|
326
328
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
327
329
|
}
|
|
328
330
|
|
|
@@ -369,7 +371,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
369
371
|
transform: translate(0, 0);
|
|
370
372
|
}
|
|
371
373
|
100% {
|
|
372
|
-
transform: translate(calc(0.35 * ${
|
|
374
|
+
transform: translate(calc(0.35 * ${Bi.size}), 0);
|
|
373
375
|
}
|
|
374
376
|
}
|
|
375
377
|
`}render(){return e.html`
|
|
@@ -379,7 +381,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
379
381
|
<div></div>
|
|
380
382
|
<div></div>
|
|
381
383
|
</div>
|
|
382
|
-
`}}i.customElement("ft-loader")(
|
|
384
|
+
`}}i.customElement("ft-loader")(Ii);var Ti=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Ai=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Fi={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ai,fontSize:i.FtCssVariable.extend("--ft-button-font-size",Yt.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",Ai),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Mi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),_i={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Mi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",Mi)},Zi=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Ri extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,e.css`
|
|
383
385
|
:host {
|
|
384
386
|
display: inline-block;
|
|
385
387
|
max-width: 100%;
|
|
@@ -390,7 +392,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
390
392
|
box-shadow: 0px 0px 0px transparent;
|
|
391
393
|
border: 0px solid transparent;
|
|
392
394
|
text-shadow: 0px 0px 0px transparent;
|
|
393
|
-
font-size:
|
|
395
|
+
font-size: 16px;
|
|
394
396
|
}
|
|
395
397
|
|
|
396
398
|
button:hover {
|
|
@@ -425,7 +427,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
425
427
|
${i.setVariable(di.size,Fi.iconSize)};
|
|
426
428
|
--ft-button-internal-vertical-padding: 6px;
|
|
427
429
|
--ft-button-internal-horizontal-padding: 8px;
|
|
428
|
-
${i.setVariable(
|
|
430
|
+
${i.setVariable(yi.color,Fi.rippleColor)};
|
|
429
431
|
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
|
|
430
432
|
|
|
431
433
|
border-radius: ${Fi.borderRadius};
|
|
@@ -457,7 +459,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
457
459
|
.ft-button.ft-button--primary {
|
|
458
460
|
background-color: ${_i.backgroundColor};
|
|
459
461
|
--ft-button-internal-color: ${_i.color};
|
|
460
|
-
${i.setVariable(
|
|
462
|
+
${i.setVariable(yi.color,_i.rippleColor)};
|
|
461
463
|
}
|
|
462
464
|
|
|
463
465
|
.ft-button.ft-button--outlined {
|
|
@@ -510,8 +512,8 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
510
512
|
}
|
|
511
513
|
|
|
512
514
|
ft-loader {
|
|
513
|
-
${i.setVariable(
|
|
514
|
-
${i.setVariable(
|
|
515
|
+
${i.setVariable(Bi.size,Fi.iconSize)};
|
|
516
|
+
${i.setVariable(Bi.color,"var(--ft-button-internal-color)")};
|
|
515
517
|
}
|
|
516
518
|
`]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
|
|
517
519
|
<button part="button"
|
|
@@ -535,7 +537,7 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
535
537
|
</ft-tooltip>
|
|
536
538
|
`}resolveIcon(){return this.loading?e.html`
|
|
537
539
|
<ft-loader></ft-loader> `:this.icon?e.html`
|
|
538
|
-
<ft-icon variant="material">${this.icon}</ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
540
|
+
<ft-icon variant="material">${this.icon}</ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ri.elementDefinitions={"ft-ripple":ki,"ft-tooltip":Ni,"ft-typography":ai,"ft-icon":ci,"ft-loader":Ii},Ti([o.property({type:Boolean})],Ri.prototype,"primary",void 0),Ti([o.property({type:Boolean})],Ri.prototype,"outlined",void 0),Ti([o.property({type:Boolean})],Ri.prototype,"disabled",void 0),Ti([o.property({type:Boolean})],Ri.prototype,"dense",void 0),Ti([o.property({type:Boolean})],Ri.prototype,"round",void 0),Ti([o.property({type:String})],Ri.prototype,"label",void 0),Ti([o.property({type:String})],Ri.prototype,"icon",void 0),Ti([o.property({type:Boolean})],Ri.prototype,"trailingIcon",void 0),Ti([o.property({type:Boolean})],Ri.prototype,"loading",void 0),Ti([o.property({type:String})],Ri.prototype,"tooltipPosition",void 0),Ti([o.query(".ft-button")],Ri.prototype,"button",void 0),Ti([o.query(".ft-button--label slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-button")(Ri);var Di=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Ui={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 Wi extends i.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.heading="",this.icon=""}static get styles(){return e.css`
|
|
539
541
|
.ft-dialog {
|
|
540
542
|
position: fixed;
|
|
541
543
|
top: 0;
|
|
@@ -643,4 +645,4 @@ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
643
645
|
</div>
|
|
644
646
|
</div>
|
|
645
647
|
</div>
|
|
646
|
-
`: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()}}Wi.elementDefinitions={"ft-typography":ai,"ft-icon":ci,"ft-button":
|
|
648
|
+
`: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()}}Wi.elementDefinitions={"ft-typography":ai,"ft-icon":ci,"ft-button":Ri},Di([o.property({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],Wi.prototype,"opened",void 0),Di([o.property({type:Boolean})],Wi.prototype,"closeOnEsc",void 0),Di([o.property({type:Boolean})],Wi.prototype,"closeOnClickOutside",void 0),Di([o.property({type:Boolean})],Wi.prototype,"closable",void 0),Di([o.property({type:String})],Wi.prototype,"heading",void 0),Di([o.property({type:String})],Wi.prototype,"icon",void 0),i.customElement("ft-dialog")(Wi),t.FtDialog=Wi,t.FtDialogCssVariables=Ui,t.default=Wi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|