@fluid-topics/ft-dialog 0.3.55 → 0.3.56
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 +0 -1
- package/build/ft-dialog.js +5 -12
- package/build/ft-dialog.light.js +9 -9
- package/build/ft-dialog.min.js +18 -18
- package/package.json +6 -6
package/build/ft-dialog.d.ts
CHANGED
package/build/ft-dialog.js
CHANGED
|
@@ -26,11 +26,6 @@ export class FtDialog extends FtLitElement {
|
|
|
26
26
|
this.close();
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
this.watchClickOutside = (event) => {
|
|
30
|
-
if (this.closeOnClickOutside && !event.composedPath().includes(this)) {
|
|
31
|
-
this.close();
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
29
|
}
|
|
35
30
|
render() {
|
|
36
31
|
if (!this.opened) {
|
|
@@ -43,18 +38,18 @@ export class FtDialog extends FtLitElement {
|
|
|
43
38
|
${this.heading ? html `
|
|
44
39
|
<div class="ft-dialog-heading">
|
|
45
40
|
${this.icon ? html `
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
42
|
+
` : undefined}
|
|
48
43
|
<ft-typography element="span" variant="title">${this.heading}</ft-typography>
|
|
49
44
|
${this.closable ? html `
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
<ft-button round icon="close" @click=${this.close}></ft-button>
|
|
46
|
+
` : undefined}
|
|
52
47
|
</div>
|
|
53
48
|
` : null}
|
|
54
49
|
<div class="ft-dialog-content">
|
|
55
50
|
<slot></slot>
|
|
56
51
|
</div>
|
|
57
|
-
<slot name="buttons"
|
|
52
|
+
<slot name="buttons"
|
|
58
53
|
class="ft-dialog-buttons ${this.buttons.length > 0 ? "" : "ft-dialog-no-buttons"}"
|
|
59
54
|
@slotchange=${() => this.requestUpdate()}
|
|
60
55
|
></slot>
|
|
@@ -68,12 +63,10 @@ export class FtDialog extends FtLitElement {
|
|
|
68
63
|
if (this.opened) {
|
|
69
64
|
setTimeout(() => {
|
|
70
65
|
document.addEventListener("keydown", this.watchEscapeKey);
|
|
71
|
-
document.addEventListener("click", this.watchClickOutside);
|
|
72
66
|
}, 0);
|
|
73
67
|
}
|
|
74
68
|
else {
|
|
75
69
|
document.removeEventListener("keydown", this.watchEscapeKey);
|
|
76
|
-
document.removeEventListener("click", this.watchClickOutside);
|
|
77
70
|
}
|
|
78
71
|
}
|
|
79
72
|
}
|
package/build/ft-dialog.light.js
CHANGED
|
@@ -253,7 +253,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
253
253
|
opacity: ${vi.opacityContentOnSurfacePressed};
|
|
254
254
|
transform: translate(-50%, -50%) scale(1);
|
|
255
255
|
}
|
|
256
|
-
`;var Oi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Ci 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`
|
|
256
|
+
`;var Oi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Ci 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.setupDebouncer=new i.Debouncer(10),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`
|
|
257
257
|
<style>
|
|
258
258
|
.ft-ripple .ft-ripple--effect,
|
|
259
259
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -270,7 +270,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
270
270
|
<div class="ft-ripple--background"></div>
|
|
271
271
|
<div class="ft-ripple--effect"></div>
|
|
272
272
|
</div>
|
|
273
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){
|
|
273
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ci.elementDefinitions={},Ci.styles=Si,Oi([o.property({type:Boolean})],Ci.prototype,"primary",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"secondary",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"unbounded",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"activated",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"selected",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"disabled",void 0),Oi([o.state()],Ci.prototype,"hovered",void 0),Oi([o.state()],Ci.prototype,"focused",void 0),Oi([o.state()],Ci.prototype,"pressed",void 0),Oi([o.state()],Ci.prototype,"rippling",void 0),Oi([o.state()],Ci.prototype,"rippleSize",void 0),Oi([o.state()],Ci.prototype,"originX",void 0),Oi([o.state()],Ci.prototype,"originY",void 0),Oi([o.query(".ft-ripple")],Ci.prototype,"ripple",void 0),Oi([o.query(".ft-ripple--effect")],Ci.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Ci);const ji=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ei=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Bi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ii=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ti=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ai=e.css`
|
|
274
274
|
.ft-tooltip--container {
|
|
275
275
|
display: block;
|
|
276
276
|
position: relative;
|
|
@@ -641,28 +641,28 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
641
641
|
gap: 8px;
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
`;var Xi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Yi extends i.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}
|
|
644
|
+
`;var Xi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Yi extends i.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?e.html`
|
|
645
645
|
<div class="ft-dialog">
|
|
646
646
|
<div class="ft-dialog-overlay" @click="${()=>this.onClickOutside()}"></div>
|
|
647
647
|
<div class="ft-dialog-wrapper">
|
|
648
648
|
${this.heading?e.html`
|
|
649
649
|
<div class="ft-dialog-heading">
|
|
650
650
|
${this.icon?e.html`
|
|
651
|
-
|
|
652
|
-
|
|
651
|
+
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
652
|
+
`:void 0}
|
|
653
653
|
<ft-typography element="span" variant="title">${this.heading}</ft-typography>
|
|
654
654
|
${this.closable?e.html`
|
|
655
|
-
|
|
656
|
-
|
|
655
|
+
<ft-button round icon="close" @click=${this.close}></ft-button>
|
|
656
|
+
`:void 0}
|
|
657
657
|
</div>
|
|
658
658
|
`:null}
|
|
659
659
|
<div class="ft-dialog-content">
|
|
660
660
|
<slot></slot>
|
|
661
661
|
</div>
|
|
662
|
-
<slot name="buttons"
|
|
662
|
+
<slot name="buttons"
|
|
663
663
|
class="ft-dialog-buttons ${this.buttons.length>0?"":"ft-dialog-no-buttons"}"
|
|
664
664
|
@slotchange=${()=>this.requestUpdate()}
|
|
665
665
|
></slot>
|
|
666
666
|
</div>
|
|
667
667
|
</div>
|
|
668
|
-
`:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)
|
|
668
|
+
`:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}onClickOutside(){this.closeOnClickOutside&&this.close()}}Yi.elementDefinitions={"ft-typography":fi,"ft-icon":xi,"ft-button":Pi},Yi.styles=Vi,Xi([o.property({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],Yi.prototype,"opened",void 0),Xi([o.property({type:Boolean})],Yi.prototype,"closeOnEsc",void 0),Xi([o.property({type:Boolean})],Yi.prototype,"closeOnClickOutside",void 0),Xi([o.property({type:Boolean})],Yi.prototype,"closable",void 0),Xi([o.property({type:()=>Boolean})],Yi.prototype,"beforeClose",void 0),Xi([o.property({type:String})],Yi.prototype,"heading",void 0),Xi([o.property({type:String})],Yi.prototype,"icon",void 0),Xi([o.queryAssignedElements({slot:"buttons"})],Yi.prototype,"buttons",void 0),i.customElement("ft-dialog")(Yi),t.FtDialog=Yi,t.FtDialogCssVariables=qi,t.styles=Vi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|
package/build/ft-dialog.min.js
CHANGED
|
@@ -55,13 +55,13 @@ const c=window,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"
|
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",
|
|
58
|
+
*/;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",S=w.reactiveElementPolyfillSupport,k={toAttribute(t,i){switch(i){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},C=(t,i)=>i!==t&&(i==i||t==t),N={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:C};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=N){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const n=this[t];this[i]=o,this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(b(t))}else void 0!==t&&i.push(b(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=N){var o;const n=this.constructor._$Ep(t,e);if(void 0!==n&&!0===e.reflect){const s=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:k).toAttribute(i,e.type);this._$El=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$El=null}}_$AK(t,i){var e;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:k;this._$El=n,this[n]=s.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||C)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==
|
|
64
|
+
var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,z=M.trustedTypes,U=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,j="?"+F,B=`<${j}>`,T=document,A=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,I=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),G=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=D;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===D?"!--"===l[1]?r=_:void 0!==l[1]?r=I:void 0!==l[2]?(Z.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=W):void 0!==l[3]&&(r=W):r===W?">"===l[0]?(r=null!=n?n:D,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?W:'"'===l[3]?K:H):r===K||r===H?r=W:r===_||r===I?r=D:(r=W,n=void 0);const c=r===W&&t[i+1].startsWith("/>")?" ":"";s+=r===D?e+B:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+F+c):e+F+(-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!==U?U.createHTML(a):a,o]};class Q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=G(t,i);if(this.el=Q.createElement(l,e),Y.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Y.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(F)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?nt:"?"===i[1]?rt:"@"===i[1]?at:ot})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=z?z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Y.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===j)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function tt(t,i,e=t,o){var n,s,r,a;if(i===J)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=tt(t,l._$AS(t,i.values),l,o)),i}class it{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:T).importNode(e,!0);Y.currentNode=n;let s=Y.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new et(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new lt(s,this,t)),this.u.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=Y.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class et{constructor(t,i,e,o){var n;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=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._$Cm}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=tt(this,t,i),L(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new it(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=X.get(t.strings);return void 0===i&&X.set(t.strings,i=new Q(t)),i}k(t){P(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 et(this.O(A()),this.O(A()),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._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ot{constructor(t,i,e,o,n){this.type=1,this._$AH=q,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=q}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=tt(this,t,i,0),s=!L(t)||t!==this._$AH&&t!==J,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=tt(this,o[e+r],i,r),a===J&&(a=this._$AH[r]),s||(s=!L(a)||a!==this._$AH[r]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=z?z.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class at extends ot{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=tt(this,t,i,0))&&void 0!==e?e:q)===J)return;const o=this._$AH,n=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==q&&(o===q||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 lt{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){tt(this,t)}}const ht=M.litHtmlPolyfillSupport;null==ht||ht(Q,et),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
@@ -109,12 +109,12 @@ var pt,ct;class dt extends E{constructor(){super(...arguments),this.renderOption
|
|
|
109
109
|
display: inline-block;
|
|
110
110
|
width: 0;
|
|
111
111
|
}
|
|
112
|
-
`;var wt,$t,Ot;const
|
|
112
|
+
`;var wt,$t,Ot;const St=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ot=null===($t=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===$t?void 0:$t.toString())&&void 0!==Ot?Ot:""),kt=Symbol.for(""),Ct=t=>{if((null==t?void 0:t.r)===kt)return null==t?void 0:t._$litStatic$},Nt=t=>({_$litStatic$:t,r:kt}),Et=new Map,Rt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=Ct(s));)l+=n+i[++h],p=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=Et.get(t))&&(r.raw=r,Et.set(t,i=r)),e=a}return t(i,...e)})(V);
|
|
113
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2020 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/var Mt;!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"}(Mt||(Mt={}));const zt=ut.extend("--ft-typography-font-family",vt.titleFont),Ut=ut.extend("--ft-typography-font-family",vt.contentFont),Ft={fontFamily:Ut,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},jt=ut.extend("--ft-typography-title-font-family",zt),Bt=ut.extend("--ft-typography-title-font-size",Ft.fontSize,"20px"),Tt=ut.extend("--ft-typography-title-font-weight",Ft.fontWeight,"normal"),At=ut.extend("--ft-typography-title-letter-spacing",Ft.letterSpacing,"0.15px"),Lt=ut.extend("--ft-typography-title-line-height",Ft.lineHeight,"1.2"),Pt=ut.extend("--ft-typography-title-text-transform",Ft.textTransform,"inherit"),Dt=ut.extend("--ft-typography-title-dense-font-family",zt),_t=ut.extend("--ft-typography-title-dense-font-size",Ft.fontSize,"14px"),It=ut.extend("--ft-typography-title-dense-font-weight",Ft.fontWeight,"normal"),Wt=ut.extend("--ft-typography-title-dense-letter-spacing",Ft.letterSpacing,"0.105px"),Ht=ut.extend("--ft-typography-title-dense-line-height",Ft.lineHeight,"1.7"),Kt=ut.extend("--ft-typography-title-dense-text-transform",Ft.textTransform,"inherit"),Zt=ut.extend("--ft-typography-subtitle1-font-family",Ut),Vt=ut.extend("--ft-typography-subtitle1-font-size",Ft.fontSize,"16px"),Jt=ut.extend("--ft-typography-subtitle1-font-weight",Ft.fontWeight,"600"),qt=ut.extend("--ft-typography-subtitle1-letter-spacing",Ft.letterSpacing,"0.144px"),Xt=ut.extend("--ft-typography-subtitle1-line-height",Ft.lineHeight,"1.5"),Yt=ut.extend("--ft-typography-subtitle1-text-transform",Ft.textTransform,"inherit"),Gt=ut.extend("--ft-typography-subtitle2-font-family",Ut),Qt=ut.extend("--ft-typography-subtitle2-font-size",Ft.fontSize,"14px"),ti=ut.extend("--ft-typography-subtitle2-font-weight",Ft.fontWeight,"normal"),ii=ut.extend("--ft-typography-subtitle2-letter-spacing",Ft.letterSpacing,"0.098px"),ei=ut.extend("--ft-typography-subtitle2-line-height",Ft.lineHeight,"1.7"),oi=ut.extend("--ft-typography-subtitle2-text-transform",Ft.textTransform,"inherit"),ni=ut.extend("--ft-typography-body1-font-family",Ut),si=ut.extend("--ft-typography-body1-font-size",Ft.fontSize,"16px"),ri=ut.extend("--ft-typography-body1-font-weight",Ft.fontWeight,"normal"),ai=ut.extend("--ft-typography-body1-letter-spacing",Ft.letterSpacing,"0.496px"),li=ut.extend("--ft-typography-body1-line-height",Ft.lineHeight,"1.5"),hi=ut.extend("--ft-typography-body1-text-transform",Ft.textTransform,"inherit"),pi=ut.extend("--ft-typography-body2-font-family",Ut),ci=ut.extend("--ft-typography-body2-font-size",Ft.fontSize,"14px"),di=ut.extend("--ft-typography-body2-font-weight",Ft.fontWeight,"normal"),fi=ut.extend("--ft-typography-body2-letter-spacing",Ft.letterSpacing,"0.252px"),ui=ut.extend("--ft-typography-body2-line-height",Ft.lineHeight,"1.4"),yi=ut.extend("--ft-typography-body2-text-transform",Ft.textTransform,"inherit"),vi=ut.extend("--ft-typography-caption-font-family",Ut),gi=ut.extend("--ft-typography-caption-font-size",Ft.fontSize,"12px"),xi=ut.extend("--ft-typography-caption-font-weight",Ft.fontWeight,"normal"),bi=ut.extend("--ft-typography-caption-letter-spacing",Ft.letterSpacing,"0.396px"),mi=ut.extend("--ft-typography-caption-line-height",Ft.lineHeight,"1.33"),wi=ut.extend("--ft-typography-caption-text-transform",Ft.textTransform,"inherit"),$i=ut.extend("--ft-typography-breadcrumb-font-family",Ut),Oi=ut.extend("--ft-typography-breadcrumb-font-size",Ft.fontSize,"10px"),
|
|
117
|
+
*/var Mt;!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"}(Mt||(Mt={}));const zt=ut.extend("--ft-typography-font-family",vt.titleFont),Ut=ut.extend("--ft-typography-font-family",vt.contentFont),Ft={fontFamily:Ut,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},jt=ut.extend("--ft-typography-title-font-family",zt),Bt=ut.extend("--ft-typography-title-font-size",Ft.fontSize,"20px"),Tt=ut.extend("--ft-typography-title-font-weight",Ft.fontWeight,"normal"),At=ut.extend("--ft-typography-title-letter-spacing",Ft.letterSpacing,"0.15px"),Lt=ut.extend("--ft-typography-title-line-height",Ft.lineHeight,"1.2"),Pt=ut.extend("--ft-typography-title-text-transform",Ft.textTransform,"inherit"),Dt=ut.extend("--ft-typography-title-dense-font-family",zt),_t=ut.extend("--ft-typography-title-dense-font-size",Ft.fontSize,"14px"),It=ut.extend("--ft-typography-title-dense-font-weight",Ft.fontWeight,"normal"),Wt=ut.extend("--ft-typography-title-dense-letter-spacing",Ft.letterSpacing,"0.105px"),Ht=ut.extend("--ft-typography-title-dense-line-height",Ft.lineHeight,"1.7"),Kt=ut.extend("--ft-typography-title-dense-text-transform",Ft.textTransform,"inherit"),Zt=ut.extend("--ft-typography-subtitle1-font-family",Ut),Vt=ut.extend("--ft-typography-subtitle1-font-size",Ft.fontSize,"16px"),Jt=ut.extend("--ft-typography-subtitle1-font-weight",Ft.fontWeight,"600"),qt=ut.extend("--ft-typography-subtitle1-letter-spacing",Ft.letterSpacing,"0.144px"),Xt=ut.extend("--ft-typography-subtitle1-line-height",Ft.lineHeight,"1.5"),Yt=ut.extend("--ft-typography-subtitle1-text-transform",Ft.textTransform,"inherit"),Gt=ut.extend("--ft-typography-subtitle2-font-family",Ut),Qt=ut.extend("--ft-typography-subtitle2-font-size",Ft.fontSize,"14px"),ti=ut.extend("--ft-typography-subtitle2-font-weight",Ft.fontWeight,"normal"),ii=ut.extend("--ft-typography-subtitle2-letter-spacing",Ft.letterSpacing,"0.098px"),ei=ut.extend("--ft-typography-subtitle2-line-height",Ft.lineHeight,"1.7"),oi=ut.extend("--ft-typography-subtitle2-text-transform",Ft.textTransform,"inherit"),ni=ut.extend("--ft-typography-body1-font-family",Ut),si=ut.extend("--ft-typography-body1-font-size",Ft.fontSize,"16px"),ri=ut.extend("--ft-typography-body1-font-weight",Ft.fontWeight,"normal"),ai=ut.extend("--ft-typography-body1-letter-spacing",Ft.letterSpacing,"0.496px"),li=ut.extend("--ft-typography-body1-line-height",Ft.lineHeight,"1.5"),hi=ut.extend("--ft-typography-body1-text-transform",Ft.textTransform,"inherit"),pi=ut.extend("--ft-typography-body2-font-family",Ut),ci=ut.extend("--ft-typography-body2-font-size",Ft.fontSize,"14px"),di=ut.extend("--ft-typography-body2-font-weight",Ft.fontWeight,"normal"),fi=ut.extend("--ft-typography-body2-letter-spacing",Ft.letterSpacing,"0.252px"),ui=ut.extend("--ft-typography-body2-line-height",Ft.lineHeight,"1.4"),yi=ut.extend("--ft-typography-body2-text-transform",Ft.textTransform,"inherit"),vi=ut.extend("--ft-typography-caption-font-family",Ut),gi=ut.extend("--ft-typography-caption-font-size",Ft.fontSize,"12px"),xi=ut.extend("--ft-typography-caption-font-weight",Ft.fontWeight,"normal"),bi=ut.extend("--ft-typography-caption-letter-spacing",Ft.letterSpacing,"0.396px"),mi=ut.extend("--ft-typography-caption-line-height",Ft.lineHeight,"1.33"),wi=ut.extend("--ft-typography-caption-text-transform",Ft.textTransform,"inherit"),$i=ut.extend("--ft-typography-breadcrumb-font-family",Ut),Oi=ut.extend("--ft-typography-breadcrumb-font-size",Ft.fontSize,"10px"),Si=ut.extend("--ft-typography-breadcrumb-font-weight",Ft.fontWeight,"normal"),ki=ut.extend("--ft-typography-breadcrumb-letter-spacing",Ft.letterSpacing,"0.33px"),Ci=ut.extend("--ft-typography-breadcrumb-line-height",Ft.lineHeight,"1.6"),Ni=ut.extend("--ft-typography-breadcrumb-text-transform",Ft.textTransform,"inherit"),Ei=ut.extend("--ft-typography-overline-font-family",Ut),Ri=ut.extend("--ft-typography-overline-font-size",Ft.fontSize,"10px"),Mi=ut.extend("--ft-typography-overline-font-weight",Ft.fontWeight,"normal"),zi=ut.extend("--ft-typography-overline-letter-spacing",Ft.letterSpacing,"1.5px"),Ui=ut.extend("--ft-typography-overline-line-height",Ft.lineHeight,"1.6"),Fi=ut.extend("--ft-typography-overline-text-transform",Ft.textTransform,"uppercase"),ji={fontFamily:ut.extend("--ft-typography-button-font-family",Ut),fontSize:ut.extend("--ft-typography-button-font-size",Ft.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Ft.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Ft.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Ft.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Ft.textTransform,"uppercase")},Bi=g`
|
|
118
118
|
.ft-typography--title {
|
|
119
119
|
font-family: ${jt};
|
|
120
120
|
font-size: ${Bt};
|
|
@@ -182,8 +182,8 @@ var pt,ct;class dt extends E{constructor(){super(...arguments),this.renderOption
|
|
|
182
182
|
.ft-typography--breadcrumb {
|
|
183
183
|
font-family: ${$i};
|
|
184
184
|
font-size: ${Oi};
|
|
185
|
-
font-weight: ${
|
|
186
|
-
letter-spacing: ${
|
|
185
|
+
font-weight: ${Si};
|
|
186
|
+
letter-spacing: ${ki};
|
|
187
187
|
line-height: ${Ci};
|
|
188
188
|
text-transform: ${Ni};
|
|
189
189
|
}
|
|
@@ -374,7 +374,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
374
374
|
opacity: ${he.opacityContentOnSurfacePressed};
|
|
375
375
|
transform: translate(-50%, -50%) scale(1);
|
|
376
376
|
}
|
|
377
|
-
`;var ge=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};class xe extends xt{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(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 V`
|
|
377
|
+
`;var ge=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};class xe extends xt{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(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.setupDebouncer=new i(10),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 V`
|
|
378
378
|
<style>
|
|
379
379
|
.ft-ripple .ft-ripple--effect,
|
|
380
380
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -391,7 +391,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
391
391
|
<div class="ft-ripple--background"></div>
|
|
392
392
|
<div class="ft-ripple--effect"></div>
|
|
393
393
|
</div>
|
|
394
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){
|
|
394
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}xe.elementDefinitions={},xe.styles=ve,ge([o({type:Boolean})],xe.prototype,"primary",void 0),ge([o({type:Boolean})],xe.prototype,"secondary",void 0),ge([o({type:Boolean})],xe.prototype,"unbounded",void 0),ge([o({type:Boolean})],xe.prototype,"activated",void 0),ge([o({type:Boolean})],xe.prototype,"selected",void 0),ge([o({type:Boolean})],xe.prototype,"disabled",void 0),ge([n()],xe.prototype,"hovered",void 0),ge([n()],xe.prototype,"focused",void 0),ge([n()],xe.prototype,"pressed",void 0),ge([n()],xe.prototype,"rippling",void 0),ge([n()],xe.prototype,"rippleSize",void 0),ge([n()],xe.prototype,"originX",void 0),ge([n()],xe.prototype,"originY",void 0),ge([r(".ft-ripple")],xe.prototype,"ripple",void 0),ge([r(".ft-ripple--effect")],xe.prototype,"rippleEffect",void 0),p("ft-ripple")(xe);const be=ut.create("--ft-tooltip-distance","SIZE","4px"),me=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),we=ut.create("--ft-tooltip-background-color","COLOR","#666666"),$e=ut.create("--ft-tooltip-z-index","NUMBER","1"),Oe=ut.external(vt.borderRadiusS,"Design system"),Se=ut.create("--ft-tooltip-max-width","SIZE","150px"),ke=g`
|
|
395
395
|
.ft-tooltip--container {
|
|
396
396
|
display: block;
|
|
397
397
|
position: relative;
|
|
@@ -407,7 +407,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
407
407
|
box-sizing: border-box;
|
|
408
408
|
overflow: hidden;
|
|
409
409
|
width: max-content;
|
|
410
|
-
max-width: ${
|
|
410
|
+
max-width: ${Se};
|
|
411
411
|
text-align: center;
|
|
412
412
|
padding: ${be};
|
|
413
413
|
z-index: ${$e};
|
|
@@ -441,7 +441,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
441
441
|
</div>
|
|
442
442
|
</div>
|
|
443
443
|
</div>
|
|
444
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${
|
|
444
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${Se})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ne.elementDefinitions={"ft-typography":Vi},Ne.styles=ke,Ce([o()],Ne.prototype,"text",void 0),Ce([o({type:Boolean})],Ne.prototype,"manual",void 0),Ce([o({type:Boolean})],Ne.prototype,"inline",void 0),Ce([o({type:Number})],Ne.prototype,"delay",void 0),Ce([o()],Ne.prototype,"position",void 0),Ce([function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?h({slot:n,flatten:i,selector:e}):s({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==s?void 0:s.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],Ne.prototype,"slotNodes",void 0),Ce([r(".ft-tooltip--container")],Ne.prototype,"container",void 0),Ce([r("slot")],Ne.prototype,"target",void 0),Ce([r(".ft-tooltip")],Ne.prototype,"tooltip",void 0),Ce([r(".ft-tooltip--content")],Ne.prototype,"tooltipContent",void 0),Ce([n()],Ne.prototype,"visible",void 0),p("ft-tooltip")(Ne);const Ee={color:ut.extend("--ft-loader-color",vt.colorPrimary),size:ut.create("--ft-loader-size","SIZE","80px")},Re=g`
|
|
445
445
|
:host {
|
|
446
446
|
line-height: 0;
|
|
447
447
|
}
|
|
@@ -649,7 +649,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
649
649
|
<ft-typography part="label"
|
|
650
650
|
variant="button"
|
|
651
651
|
element="span"
|
|
652
|
-
class="ft-button--label ${
|
|
652
|
+
class="ft-button--label ${St?"ft-safari-ellipsis-fix":""}"
|
|
653
653
|
?hidden=${!this.hasTextContent()}>
|
|
654
654
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
655
655
|
</ft-typography>
|
|
@@ -762,28 +762,28 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
762
762
|
gap: 8px;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
-
`;var _e=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};class Ie extends xt{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}
|
|
765
|
+
`;var _e=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};class Ie extends xt{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?V`
|
|
766
766
|
<div class="ft-dialog">
|
|
767
767
|
<div class="ft-dialog-overlay" @click="${()=>this.onClickOutside()}"></div>
|
|
768
768
|
<div class="ft-dialog-wrapper">
|
|
769
769
|
${this.heading?V`
|
|
770
770
|
<div class="ft-dialog-heading">
|
|
771
771
|
${this.icon?V`
|
|
772
|
-
|
|
773
|
-
|
|
772
|
+
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
773
|
+
`:void 0}
|
|
774
774
|
<ft-typography element="span" variant="title">${this.heading}</ft-typography>
|
|
775
775
|
${this.closable?V`
|
|
776
|
-
|
|
777
|
-
|
|
776
|
+
<ft-button round icon="close" @click=${this.close}></ft-button>
|
|
777
|
+
`:void 0}
|
|
778
778
|
</div>
|
|
779
779
|
`:null}
|
|
780
780
|
<div class="ft-dialog-content">
|
|
781
781
|
<slot></slot>
|
|
782
782
|
</div>
|
|
783
|
-
<slot name="buttons"
|
|
783
|
+
<slot name="buttons"
|
|
784
784
|
class="ft-dialog-buttons ${this.buttons.length>0?"":"ft-dialog-no-buttons"}"
|
|
785
785
|
@slotchange=${()=>this.requestUpdate()}
|
|
786
786
|
></slot>
|
|
787
787
|
</div>
|
|
788
788
|
</div>
|
|
789
|
-
`:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)
|
|
789
|
+
`:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}onClickOutside(){this.closeOnClickOutside&&this.close()}}Ie.elementDefinitions={"ft-typography":Vi,"ft-icon":re,"ft-button":Le},Ie.styles=De,_e([o({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],Ie.prototype,"opened",void 0),_e([o({type:Boolean})],Ie.prototype,"closeOnEsc",void 0),_e([o({type:Boolean})],Ie.prototype,"closeOnClickOutside",void 0),_e([o({type:Boolean})],Ie.prototype,"closable",void 0),_e([o({type:()=>Boolean})],Ie.prototype,"beforeClose",void 0),_e([o({type:String})],Ie.prototype,"heading",void 0),_e([o({type:String})],Ie.prototype,"icon",void 0),_e([h({slot:"buttons"})],Ie.prototype,"buttons",void 0),p("ft-dialog")(Ie),t.FtDialog=Ie,t.FtDialogCssVariables=Pe,t.styles=De,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-dialog",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.56",
|
|
4
4
|
"description": "A simple dialog component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "0.3.
|
|
23
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
24
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-button": "0.3.56",
|
|
23
|
+
"@fluid-topics/ft-icon": "0.3.56",
|
|
24
|
+
"@fluid-topics/ft-typography": "0.3.56",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.56",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "e86edee2b2660d806320bacca5c5156bb94ca2d6"
|
|
29
29
|
}
|