@fluid-topics/ft-dialog 0.3.50 → 0.3.52
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.css.js +1 -0
- package/build/ft-dialog.light.js +5 -1
- package/build/ft-dialog.min.js +25 -21
- package/package.json +6 -6
package/build/ft-dialog.css.js
CHANGED
package/build/ft-dialog.light.js
CHANGED
|
@@ -116,7 +116,8 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
116
116
|
:host, i.ft-icon {
|
|
117
117
|
display: inline-flex;
|
|
118
118
|
align-items: center;
|
|
119
|
-
|
|
119
|
+
flex-shrink: 0;
|
|
120
|
+
flex-grow: 0;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
:host {
|
|
@@ -148,6 +149,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
148
149
|
font-size: calc(0.9 * ${di.size});
|
|
149
150
|
position: relative;
|
|
150
151
|
top: -5%;
|
|
152
|
+
justify-content: center;
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
.ft-icon--file-format {
|
|
@@ -535,6 +537,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
535
537
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
536
538
|
<ft-typography part="label"
|
|
537
539
|
variant="button"
|
|
540
|
+
element="span"
|
|
538
541
|
class="ft-button--label"
|
|
539
542
|
?hidden=${!this.hasTextContent()}>
|
|
540
543
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
@@ -610,6 +613,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
610
613
|
text-overflow: ellipsis;
|
|
611
614
|
overflow: hidden;
|
|
612
615
|
white-space: nowrap;
|
|
616
|
+
flex-shrink: 0;
|
|
613
617
|
|
|
614
618
|
display: flex;
|
|
615
619
|
align-items: center;
|
package/build/ft-dialog.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let p=i.call(o,t);p||(p=c(t),e.call(o,t,p)),this===window.customElements&&(r.set(n,h),h.standInClass=p);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){y.push(this),o.upgrade.apply(o,arguments),y.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!h(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},c=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=p(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),y.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){y.push(this),i.set.call(this,t),y.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Xe){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -39,13 +39,13 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2021 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const
|
|
42
|
+
*/var a;const l=null!=(null===(a=window.HTMLSlotElement)||void 0===a?void 0:a.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2019 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const
|
|
48
|
+
const p=window,c=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),f=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(c&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=f.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&f.set(e,t))}return t}toString(){return this.cssText}}const v=t=>new u("string"==typeof t?t:t+"",void 0,d),y=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new u(i,t,d)},g=(t,e)=>{c?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=p.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},x=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return v(e)})(t):t
|
|
49
49
|
/**
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
@@ -56,13 +56,13 @@ const h=window,c=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"
|
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:N}),(null!==(b=m.reactiveElementVersions)&&void 0!==b?b:m.reactiveElementVersions=[]).push("1.4.1");const R=window,M=R.trustedTypes,z=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,F="?"+U,j=`<${F}>`,B=document,A=(t="")=>B.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,_=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=B.createTreeWalker(B,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=P;for(let e=0;e<i;e++){const i=t[e];let a,l,
|
|
59
|
+
var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:N}),(null!==(b=m.reactiveElementVersions)&&void 0!==b?b:m.reactiveElementVersions=[]).push("1.4.1");const R=window,M=R.trustedTypes,z=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,F="?"+U,j=`<${F}>`,B=document,A=(t="")=>B.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,_=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=B.createTreeWalker(B,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=P;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,p=0;for(;p<i.length&&(r.lastIndex=p,l=r.exec(i),null!==l);)p=r.lastIndex,r===P?"!--"===l[1]?r=D:void 0!==l[1]?r=_:void 0!==l[2]?(K.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=I):void 0!==l[3]&&(r=I):r===I?">"===l[0]?(r=null!=n?n:P,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?I:'"'===l[3]?H:W):r===H||r===W?r=I:r===D||r===_?r=P:(r=I,n=void 0);const c=r===I&&t[e+1].startsWith("/>")?" ":"";s+=r===P?i+j:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+U+c):i+U+(-2===h?(o.push(void 0),e):c)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=Y(t,e);if(this.el=G.createElement(l,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?st:"@"===e[1]?rt:it})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),X.nextNode(),a.push({type:2,index:++n});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===F)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)a.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var n,s,r,a;if(e===V)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=T(e)?void 0:e._$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,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Q(t,l._$AS(t,e.values),l,o)),e}class tt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);X.currentNode=n;let s=X.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new et(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new at(s,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=X.nextNode(),r++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,o){var n;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),T(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==J&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(B.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new tt(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new et(this.O(A()),this.O(A()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class it{constructor(t,e,i,o,n){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=Q(this,t,e,0),s=!T(t)||t!==this._$AH&&t!==V,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=Q(this,o[i+r],e,r),a===V&&(a=this._$AH[r]),s||(s=!T(a)||a!==this._$AH[r]),a===J?t=J:t!==J&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const nt=M?M.emptyScript:"";class st extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class rt extends it{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,n=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==J&&(o===J||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const lt=R.litHtmlPolyfillSupport;null==lt||lt(G,et),(null!==(E=R.litHtmlVersions)&&void 0!==E?E:R.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
64
|
*/
|
|
65
|
-
var pt
|
|
65
|
+
var ht,pt;class ct extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new et(e.insertBefore(A(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}ct.finalized=!0,ct._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ct});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ct}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.2.2");class ft{static create(t,e,i){let o=t=>v(null!=t?t:i),n=y`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=y`var(${v(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>y`var(${v(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):v(null!=e?e:t.defaultValue),o=y`var(${v(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${v(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function ut(t,e){return v(`${t.name}: ${e}`)}const vt={colorPrimary:ft.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ft.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ft.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ft.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ft.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ft.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ft.create("--ft-color-error","COLOR","#B00020"),colorOutline:ft.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ft.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ft.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ft.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ft.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ft.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ft.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ft.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ft.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ft.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ft.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ft.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ft.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ft.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ft.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ft.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ft.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ft.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ft.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ft.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ft.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ft.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ft.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ft.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ft.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ft.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ft.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ft.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ft.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ft.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ft.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ft.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ft.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ft.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ft.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ft.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ft.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ft.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ft.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ft.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ft.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ft.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ft.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ft.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ft.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ft.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ft.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ft.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ft.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ft.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ft.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ft.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ft.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ft.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ft.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2021 Google LLC
|
|
@@ -72,7 +72,7 @@ var pt,ht;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
72
72
|
<style>${t}</style>
|
|
73
73
|
`))}
|
|
74
74
|
${this.getTemplate()}
|
|
75
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const
|
|
75
|
+
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,n,s,r;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(r=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const p=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}yt([o()],gt.prototype,"exportpartsPrefix",void 0),yt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},...null!=e?e:{}})}([])],gt.prototype,"exportpartsPrefixes",void 0),yt([o()],gt.prototype,"customStylesheet",void 0);const xt=y`
|
|
76
76
|
.ft-no-text-select {
|
|
77
77
|
-webkit-touch-callout: none;
|
|
78
78
|
-webkit-user-select: none;
|
|
@@ -93,12 +93,12 @@ var pt,ht;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
93
93
|
-webkit-hyphens: auto;
|
|
94
94
|
hyphens: auto
|
|
95
95
|
}
|
|
96
|
-
`;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(mt=null===(bt=window.safari)||void 0===bt?void 0:bt.pushNotification)||void 0===mt?void 0:mt.toString())&&void 0!==wt?wt:""),Ot=Symbol.for(""),St=t=>{if((null==t?void 0:t.r)===Ot)return null==t?void 0:t._$litStatic$},kt=t=>({_$litStatic$:t,r:Ot}),Ct=new Map,Nt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,
|
|
96
|
+
`;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(mt=null===(bt=window.safari)||void 0===bt?void 0:bt.pushNotification)||void 0===mt?void 0:mt.toString())&&void 0!==wt?wt:""),Ot=Symbol.for(""),St=t=>{if((null==t?void 0:t.r)===Ot)return null==t?void 0:t._$litStatic$},kt=t=>({_$litStatic$:t,r:Ot}),Ct=new Map,Nt=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],n=St(s));)l+=n+e[++h],p=!0;a.push(s),r.push(l),h++}if(h===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=Ct.get(t))&&(r.raw=r,Ct.set(t,e=r)),i=a}return t(e,...i)})(Z);
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
* Copyright 2020 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
-
*/var Et;!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"}(Et||(Et={}));const Rt=ft.extend("--ft-typography-font-family",vt.titleFont),Mt=ft.extend("--ft-typography-font-family",vt.contentFont),zt={fontFamily:Mt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ut=ft.extend("--ft-typography-title-font-family",Rt),Ft=ft.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),jt=ft.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),Bt=ft.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),At=ft.extend("--ft-typography-title-line-height",zt.lineHeight,"1.2"),Tt=ft.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),Lt=ft.extend("--ft-typography-title-dense-font-family",Rt),Pt=ft.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Dt=ft.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),_t=ft.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),It=ft.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"1.7"),Wt=ft.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),Ht=ft.extend("--ft-typography-subtitle1-font-family",Mt),Kt=ft.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),Zt=ft.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),Vt=ft.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Jt=ft.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"1.5"),qt=ft.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),Xt=ft.extend("--ft-typography-subtitle2-font-family",Mt),Yt=ft.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),Gt=ft.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),Qt=ft.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),te=ft.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"1.7"),ee=ft.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),ie=ft.extend("--ft-typography-body1-font-family",Mt),oe=ft.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),ne=ft.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),se=ft.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),re=ft.extend("--ft-typography-body1-line-height",zt.lineHeight,"1.5"),ae=ft.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit"),le=ft.extend("--ft-typography-body2-font-family",Mt),
|
|
101
|
+
*/var Et;!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"}(Et||(Et={}));const Rt=ft.extend("--ft-typography-font-family",vt.titleFont),Mt=ft.extend("--ft-typography-font-family",vt.contentFont),zt={fontFamily:Mt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Ut=ft.extend("--ft-typography-title-font-family",Rt),Ft=ft.extend("--ft-typography-title-font-size",zt.fontSize,"20px"),jt=ft.extend("--ft-typography-title-font-weight",zt.fontWeight,"normal"),Bt=ft.extend("--ft-typography-title-letter-spacing",zt.letterSpacing,"0.15px"),At=ft.extend("--ft-typography-title-line-height",zt.lineHeight,"1.2"),Tt=ft.extend("--ft-typography-title-text-transform",zt.textTransform,"inherit"),Lt=ft.extend("--ft-typography-title-dense-font-family",Rt),Pt=ft.extend("--ft-typography-title-dense-font-size",zt.fontSize,"14px"),Dt=ft.extend("--ft-typography-title-dense-font-weight",zt.fontWeight,"normal"),_t=ft.extend("--ft-typography-title-dense-letter-spacing",zt.letterSpacing,"0.105px"),It=ft.extend("--ft-typography-title-dense-line-height",zt.lineHeight,"1.7"),Wt=ft.extend("--ft-typography-title-dense-text-transform",zt.textTransform,"inherit"),Ht=ft.extend("--ft-typography-subtitle1-font-family",Mt),Kt=ft.extend("--ft-typography-subtitle1-font-size",zt.fontSize,"16px"),Zt=ft.extend("--ft-typography-subtitle1-font-weight",zt.fontWeight,"600"),Vt=ft.extend("--ft-typography-subtitle1-letter-spacing",zt.letterSpacing,"0.144px"),Jt=ft.extend("--ft-typography-subtitle1-line-height",zt.lineHeight,"1.5"),qt=ft.extend("--ft-typography-subtitle1-text-transform",zt.textTransform,"inherit"),Xt=ft.extend("--ft-typography-subtitle2-font-family",Mt),Yt=ft.extend("--ft-typography-subtitle2-font-size",zt.fontSize,"14px"),Gt=ft.extend("--ft-typography-subtitle2-font-weight",zt.fontWeight,"normal"),Qt=ft.extend("--ft-typography-subtitle2-letter-spacing",zt.letterSpacing,"0.098px"),te=ft.extend("--ft-typography-subtitle2-line-height",zt.lineHeight,"1.7"),ee=ft.extend("--ft-typography-subtitle2-text-transform",zt.textTransform,"inherit"),ie=ft.extend("--ft-typography-body1-font-family",Mt),oe=ft.extend("--ft-typography-body1-font-size",zt.fontSize,"16px"),ne=ft.extend("--ft-typography-body1-font-weight",zt.fontWeight,"normal"),se=ft.extend("--ft-typography-body1-letter-spacing",zt.letterSpacing,"0.496px"),re=ft.extend("--ft-typography-body1-line-height",zt.lineHeight,"1.5"),ae=ft.extend("--ft-typography-body1-text-transform",zt.textTransform,"inherit"),le=ft.extend("--ft-typography-body2-font-family",Mt),he=ft.extend("--ft-typography-body2-font-size",zt.fontSize,"14px"),pe=ft.extend("--ft-typography-body2-font-weight",zt.fontWeight,"normal"),ce=ft.extend("--ft-typography-body2-letter-spacing",zt.letterSpacing,"0.252px"),de=ft.extend("--ft-typography-body2-line-height",zt.lineHeight,"1.4"),fe=ft.extend("--ft-typography-body2-text-transform",zt.textTransform,"inherit"),ue=ft.extend("--ft-typography-caption-font-family",Mt),ve=ft.extend("--ft-typography-caption-font-size",zt.fontSize,"12px"),ye=ft.extend("--ft-typography-caption-font-weight",zt.fontWeight,"normal"),ge=ft.extend("--ft-typography-caption-letter-spacing",zt.letterSpacing,"0.396px"),xe=ft.extend("--ft-typography-caption-line-height",zt.lineHeight,"1.33"),be=ft.extend("--ft-typography-caption-text-transform",zt.textTransform,"inherit"),me=ft.extend("--ft-typography-breadcrumb-font-family",Mt),we=ft.extend("--ft-typography-breadcrumb-font-size",zt.fontSize,"10px"),$e=ft.extend("--ft-typography-breadcrumb-font-weight",zt.fontWeight,"normal"),Oe=ft.extend("--ft-typography-breadcrumb-letter-spacing",zt.letterSpacing,"0.33px"),Se=ft.extend("--ft-typography-breadcrumb-line-height",zt.lineHeight,"1.6"),ke=ft.extend("--ft-typography-breadcrumb-text-transform",zt.textTransform,"inherit"),Ce=ft.extend("--ft-typography-overline-font-family",Mt),Ne=ft.extend("--ft-typography-overline-font-size",zt.fontSize,"10px"),Ee=ft.extend("--ft-typography-overline-font-weight",zt.fontWeight,"normal"),Re=ft.extend("--ft-typography-overline-letter-spacing",zt.letterSpacing,"1.5px"),Me=ft.extend("--ft-typography-overline-line-height",zt.lineHeight,"1.6"),ze=ft.extend("--ft-typography-overline-text-transform",zt.textTransform,"uppercase"),Ue={fontFamily:ft.extend("--ft-typography-button-font-family",Mt),fontSize:ft.extend("--ft-typography-button-font-size",zt.fontSize,"14px"),fontWeight:ft.extend("--ft-typography-button-font-weight",zt.fontWeight,"600"),letterSpacing:ft.extend("--ft-typography-button-letter-spacing",zt.letterSpacing,"1.246px"),lineHeight:ft.extend("--ft-typography-button-line-height",zt.lineHeight,"1.15"),textTransform:ft.extend("--ft-typography-button-text-transform",zt.textTransform,"uppercase")},Fe=y`
|
|
102
102
|
.ft-typography--title {
|
|
103
103
|
font-family: ${Ut};
|
|
104
104
|
font-size: ${Ft};
|
|
@@ -147,8 +147,8 @@ var pt,ht;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
147
147
|
`,Le=y`
|
|
148
148
|
.ft-typography--body2 {
|
|
149
149
|
font-family: ${le};
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
150
|
+
font-size: ${he};
|
|
151
|
+
font-weight: ${pe};
|
|
152
152
|
letter-spacing: ${ce};
|
|
153
153
|
line-height: ${de};
|
|
154
154
|
text-transform: ${fe};
|
|
@@ -200,7 +200,7 @@ var pt,ht;class ct extends N{constructor(){super(...arguments),this.renderOption
|
|
|
200
200
|
</${kt(this.element)}>
|
|
201
201
|
`:Nt`
|
|
202
202
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
203
|
-
`}}Ke.styles=[Fe,je,Be,Ae,Te,Le,Pe,De,_e,Ie,We],He([o()],Ke.prototype,"element",void 0),He([o()],Ke.prototype,"variant",void 0),
|
|
203
|
+
`}}Ke.styles=[Fe,je,Be,Ae,Te,Le,Pe,De,_e,Ie,We],He([o()],Ke.prototype,"element",void 0),He([o()],Ke.prototype,"variant",void 0),h("ft-typography")(Ke);
|
|
204
204
|
/**
|
|
205
205
|
* @license
|
|
206
206
|
* Copyright 2017 Google LLC
|
|
@@ -215,7 +215,8 @@ const Ze=1,Ve=2,Je=t=>(...e)=>({_$litDirective$:t,values:e});class qe{constructo
|
|
|
215
215
|
:host, i.ft-icon {
|
|
216
216
|
display: inline-flex;
|
|
217
217
|
align-items: center;
|
|
218
|
-
|
|
218
|
+
flex-shrink: 0;
|
|
219
|
+
flex-grow: 0;
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
:host {
|
|
@@ -247,6 +248,7 @@ const Ze=1,Ve=2,Je=t=>(...e)=>({_$litDirective$:t,values:e});class qe{constructo
|
|
|
247
248
|
font-size: calc(0.9 * ${ti.size});
|
|
248
249
|
position: relative;
|
|
249
250
|
top: -5%;
|
|
251
|
+
justify-content: center;
|
|
250
252
|
}
|
|
251
253
|
|
|
252
254
|
.ft-icon--file-format {
|
|
@@ -261,13 +263,13 @@ const Ze=1,Ve=2,Je=t=>(...e)=>({_$litDirective$:t,values:e});class qe{constructo
|
|
|
261
263
|
${Ye(this.resolvedIcon)}
|
|
262
264
|
<slot ?hidden=${t}></slot>
|
|
263
265
|
</i>
|
|
264
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case ii.file_format:this.resolvedIcon=null!==(t=Qe[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ii.fluid_topics:this.resolvedIcon=null!==(e=Ge[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ni.elementDefinitions={},ni.styles=ei,oi([o()],ni.prototype,"variant",void 0),oi([o()],ni.prototype,"value",void 0),oi([n()],ni.prototype,"resolvedIcon",void 0),oi([r("slot")],ni.prototype,"slottedContent",void 0),
|
|
266
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case ii.file_format:this.resolvedIcon=null!==(t=Qe[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ii.fluid_topics:this.resolvedIcon=null!==(e=Ge[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ni.elementDefinitions={},ni.styles=ei,oi([o()],ni.prototype,"variant",void 0),oi([o()],ni.prototype,"value",void 0),oi([n()],ni.prototype,"resolvedIcon",void 0),oi([r("slot")],ni.prototype,"slottedContent",void 0),h("ft-icon")(ni);
|
|
265
267
|
/**
|
|
266
268
|
* @license
|
|
267
269
|
* Copyright 2018 Google LLC
|
|
268
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
269
271
|
*/
|
|
270
|
-
const si=Je(class extends qe{constructor(t){var e;if(super(t),t.type!==Ze||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),ri=ft.extend("--ft-ripple-color",vt.colorContent),ai={color:ri,backgroundColor:ft.extend("--ft-ripple-background-color",ri),opacityContentOnSurfacePressed:ft.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(vt.opacityContentOnSurfaceSelected,"Design system")},li=ft.extend("--ft-ripple-color",vt.colorPrimary),
|
|
272
|
+
const si=Je(class extends qe{constructor(t){var e;if(super(t),t.type!==Ze||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return V}}),ri=ft.extend("--ft-ripple-color",vt.colorContent),ai={color:ri,backgroundColor:ft.extend("--ft-ripple-background-color",ri),opacityContentOnSurfacePressed:ft.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ft.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ft.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ft.external(vt.opacityContentOnSurfaceSelected,"Design system")},li=ft.extend("--ft-ripple-color",vt.colorPrimary),hi=li,pi=ft.extend("--ft-ripple-background-color",li),ci=ft.extend("--ft-ripple-color",vt.colorSecondary),di=ci,fi=ft.extend("--ft-ripple-background-color",ci),ui=y`
|
|
271
273
|
:host {
|
|
272
274
|
display: contents;
|
|
273
275
|
}
|
|
@@ -305,11 +307,11 @@ const si=Je(class extends qe{constructor(t){var e;if(super(t),t.type!==Ze||"clas
|
|
|
305
307
|
}
|
|
306
308
|
|
|
307
309
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
308
|
-
background-color: ${
|
|
310
|
+
background-color: ${pi};
|
|
309
311
|
}
|
|
310
312
|
|
|
311
313
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
312
|
-
background-color: ${
|
|
314
|
+
background-color: ${hi};
|
|
313
315
|
}
|
|
314
316
|
|
|
315
317
|
.ft-ripple .ft-ripple--background {
|
|
@@ -373,7 +375,7 @@ const si=Je(class extends qe{constructor(t){var e;if(super(t),t.type!==Ze||"clas
|
|
|
373
375
|
<div class="ft-ripple--background"></div>
|
|
374
376
|
<div class="ft-ripple--effect"></div>
|
|
375
377
|
</div>
|
|
376
|
-
`}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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}yi.elementDefinitions={},yi.styles=ui,vi([o({type:Boolean})],yi.prototype,"primary",void 0),vi([o({type:Boolean})],yi.prototype,"secondary",void 0),vi([o({type:Boolean})],yi.prototype,"unbounded",void 0),vi([o({type:Boolean})],yi.prototype,"activated",void 0),vi([o({type:Boolean})],yi.prototype,"selected",void 0),vi([o({type:Boolean})],yi.prototype,"disabled",void 0),vi([n()],yi.prototype,"hovered",void 0),vi([n()],yi.prototype,"focused",void 0),vi([n()],yi.prototype,"pressed",void 0),vi([n()],yi.prototype,"rippling",void 0),vi([n()],yi.prototype,"rippleSize",void 0),vi([n()],yi.prototype,"originX",void 0),vi([n()],yi.prototype,"originY",void 0),vi([r(".ft-ripple")],yi.prototype,"ripple",void 0),vi([r(".ft-ripple--effect")],yi.prototype,"rippleEffect",void 0),
|
|
378
|
+
`}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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}yi.elementDefinitions={},yi.styles=ui,vi([o({type:Boolean})],yi.prototype,"primary",void 0),vi([o({type:Boolean})],yi.prototype,"secondary",void 0),vi([o({type:Boolean})],yi.prototype,"unbounded",void 0),vi([o({type:Boolean})],yi.prototype,"activated",void 0),vi([o({type:Boolean})],yi.prototype,"selected",void 0),vi([o({type:Boolean})],yi.prototype,"disabled",void 0),vi([n()],yi.prototype,"hovered",void 0),vi([n()],yi.prototype,"focused",void 0),vi([n()],yi.prototype,"pressed",void 0),vi([n()],yi.prototype,"rippling",void 0),vi([n()],yi.prototype,"rippleSize",void 0),vi([n()],yi.prototype,"originX",void 0),vi([n()],yi.prototype,"originY",void 0),vi([r(".ft-ripple")],yi.prototype,"ripple",void 0),vi([r(".ft-ripple--effect")],yi.prototype,"rippleEffect",void 0),h("ft-ripple")(yi);const gi=ft.create("--ft-tooltip-distance","SIZE","4px"),xi=ft.create("--ft-tooltip-color","COLOR","#FFFFFF"),bi=ft.create("--ft-tooltip-background-color","COLOR","#666666"),mi=ft.create("--ft-tooltip-z-index","NUMBER","1"),wi=ft.external(vt.borderRadiusS,"Design system"),$i=ft.create("--ft-tooltip-max-width","SIZE","150px"),Oi=y`
|
|
377
379
|
.ft-tooltip--container {
|
|
378
380
|
display: block;
|
|
379
381
|
position: relative;
|
|
@@ -429,7 +431,7 @@ const si=Je(class extends qe{constructor(t){var e;if(super(t),t.type!==Ze||"clas
|
|
|
429
431
|
* Copyright 2017 Google LLC
|
|
430
432
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
431
433
|
*/
|
|
432
|
-
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ki.prototype,"slotNodes",void 0),Si([r(".ft-tooltip--container")],ki.prototype,"container",void 0),Si([r("slot")],ki.prototype,"target",void 0),Si([r(".ft-tooltip")],ki.prototype,"tooltip",void 0),Si([r(".ft-tooltip--content")],ki.prototype,"tooltipContent",void 0),Si([n()],ki.prototype,"visible",void 0),
|
|
434
|
+
function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ki.prototype,"slotNodes",void 0),Si([r(".ft-tooltip--container")],ki.prototype,"container",void 0),Si([r("slot")],ki.prototype,"target",void 0),Si([r(".ft-tooltip")],ki.prototype,"tooltip",void 0),Si([r(".ft-tooltip--content")],ki.prototype,"tooltipContent",void 0),Si([n()],ki.prototype,"visible",void 0),h("ft-tooltip")(ki);const Ci={color:ft.extend("--ft-loader-color",vt.colorPrimary),size:ft.create("--ft-loader-size","SIZE","80px")},Ni=y`
|
|
433
435
|
:host {
|
|
434
436
|
line-height: 0;
|
|
435
437
|
}
|
|
@@ -505,7 +507,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
505
507
|
<div></div>
|
|
506
508
|
<div></div>
|
|
507
509
|
</div>
|
|
508
|
-
`}}Ei.styles=Ni,
|
|
510
|
+
`}}Ei.styles=Ni,h("ft-loader")(Ei);const Ri=ft.extend("--ft-button-color",vt.colorPrimary),Mi={backgroundColor:ft.extend("--ft-button-background-color",vt.colorSurface),borderRadius:ft.extend("--ft-button-border-radius",vt.borderRadiusL),color:Ri,fontSize:ft.extend("--ft-button-font-size",Ue.fontSize),iconSize:ft.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ft.extend("--ft-button-ripple-color",Ri),opacityDisabled:ft.external(vt.colorOpacityDisabled,"Design system")},zi=ft.extend("--ft-button-primary-color",ft.extend("--ft-button-color",vt.colorOnPrimary)),Ui={backgroundColor:ft.extend("--ft-button-primary-background-color",ft.extend("--ft-button-background-color",vt.colorPrimary)),color:zi,rippleColor:ft.extend("--ft-button-primary-ripple-color",zi)},Fi=ft.extend("--ft-button-dense-border-radius",ft.extend("--ft-button-border-radius",vt.borderRadiusM)),ji=[xt,y`
|
|
509
511
|
:host {
|
|
510
512
|
display: inline-block;
|
|
511
513
|
max-width: 100%;
|
|
@@ -646,6 +648,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
646
648
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
647
649
|
<ft-typography part="label"
|
|
648
650
|
variant="button"
|
|
651
|
+
element="span"
|
|
649
652
|
class="ft-button--label"
|
|
650
653
|
?hidden=${!this.hasTextContent()}>
|
|
651
654
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
@@ -660,7 +663,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
660
663
|
</ft-tooltip>
|
|
661
664
|
`:t}resolveIcon(){return this.loading?Z`
|
|
662
665
|
<ft-loader></ft-loader> `:this.icon?Z`
|
|
663
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:J}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}}Ai.elementDefinitions={"ft-ripple":yi,"ft-tooltip":ki,"ft-typography":Ke,"ft-icon":ni,"ft-loader":Ei},Ai.styles=ji,Bi([o({type:Boolean})],Ai.prototype,"primary",void 0),Bi([o({type:Boolean})],Ai.prototype,"outlined",void 0),Bi([o({type:Boolean})],Ai.prototype,"disabled",void 0),Bi([o({type:Boolean})],Ai.prototype,"dense",void 0),Bi([o({type:Boolean})],Ai.prototype,"round",void 0),Bi([o({type:String})],Ai.prototype,"label",void 0),Bi([o({type:String})],Ai.prototype,"icon",void 0),Bi([o({type:String})],Ai.prototype,"iconVariant",void 0),Bi([o({type:Boolean})],Ai.prototype,"trailingIcon",void 0),Bi([o({type:Boolean})],Ai.prototype,"loading",void 0),Bi([o({type:String})],Ai.prototype,"tooltipPosition",void 0),Bi([o({type:Boolean})],Ai.prototype,"hideTooltip",void 0),Bi([o({type:Boolean})],Ai.prototype,"forceTooltip",void 0),Bi([r(".ft-button")],Ai.prototype,"button",void 0),Bi([r(".ft-button--label slot")],Ai.prototype,"slottedContent",void 0),
|
|
666
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:J}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}}Ai.elementDefinitions={"ft-ripple":yi,"ft-tooltip":ki,"ft-typography":Ke,"ft-icon":ni,"ft-loader":Ei},Ai.styles=ji,Bi([o({type:Boolean})],Ai.prototype,"primary",void 0),Bi([o({type:Boolean})],Ai.prototype,"outlined",void 0),Bi([o({type:Boolean})],Ai.prototype,"disabled",void 0),Bi([o({type:Boolean})],Ai.prototype,"dense",void 0),Bi([o({type:Boolean})],Ai.prototype,"round",void 0),Bi([o({type:String})],Ai.prototype,"label",void 0),Bi([o({type:String})],Ai.prototype,"icon",void 0),Bi([o({type:String})],Ai.prototype,"iconVariant",void 0),Bi([o({type:Boolean})],Ai.prototype,"trailingIcon",void 0),Bi([o({type:Boolean})],Ai.prototype,"loading",void 0),Bi([o({type:String})],Ai.prototype,"tooltipPosition",void 0),Bi([o({type:Boolean})],Ai.prototype,"hideTooltip",void 0),Bi([o({type:Boolean})],Ai.prototype,"forceTooltip",void 0),Bi([r(".ft-button")],Ai.prototype,"button",void 0),Bi([r(".ft-button--label slot")],Ai.prototype,"slottedContent",void 0),h("ft-button")(Ai);const Ti={zIndex:ft.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:ft.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:ft.create("--ft-dialog-height","SIZE","unset"),width:ft.create("--ft-dialog-width","SIZE","unset"),minWidth:ft.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:ft.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:ft.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:ft.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:ft.external(vt.colorSurface,"Design system"),headingColor:ft.external(vt.colorOnSurfaceMedium,"Design system"),borderRadiusS:ft.external(vt.borderRadiusS,"Design system"),elevation24:ft.external(vt.elevation24,"Design system")},Li=y`
|
|
664
667
|
.ft-dialog {
|
|
665
668
|
position: fixed;
|
|
666
669
|
top: 0;
|
|
@@ -721,6 +724,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
721
724
|
text-overflow: ellipsis;
|
|
722
725
|
overflow: hidden;
|
|
723
726
|
white-space: nowrap;
|
|
727
|
+
flex-shrink: 0;
|
|
724
728
|
|
|
725
729
|
display: flex;
|
|
726
730
|
align-items: center;
|
|
@@ -772,4 +776,4 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
|
|
|
772
776
|
</div>
|
|
773
777
|
</div>
|
|
774
778
|
</div>
|
|
775
|
-
`: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.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}Di.elementDefinitions={"ft-typography":Ke,"ft-icon":ni,"ft-button":Ai},Di.styles=Li,Pi([o({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],Di.prototype,"opened",void 0),Pi([o({type:Boolean})],Di.prototype,"closeOnEsc",void 0),Pi([o({type:Boolean})],Di.prototype,"closeOnClickOutside",void 0),Pi([o({type:Boolean})],Di.prototype,"closable",void 0),Pi([o({type:()=>Boolean})],Di.prototype,"beforeClose",void 0),Pi([o({type:String})],Di.prototype,"heading",void 0),Pi([o({type:String})],Di.prototype,"icon",void 0),
|
|
779
|
+
`: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.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}Di.elementDefinitions={"ft-typography":Ke,"ft-icon":ni,"ft-button":Ai},Di.styles=Li,Pi([o({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],Di.prototype,"opened",void 0),Pi([o({type:Boolean})],Di.prototype,"closeOnEsc",void 0),Pi([o({type:Boolean})],Di.prototype,"closeOnClickOutside",void 0),Pi([o({type:Boolean})],Di.prototype,"closable",void 0),Pi([o({type:()=>Boolean})],Di.prototype,"beforeClose",void 0),Pi([o({type:String})],Di.prototype,"heading",void 0),Pi([o({type:String})],Di.prototype,"icon",void 0),h("ft-dialog")(Di),t.FtDialog=Di,t.FtDialogCssVariables=Ti,t.styles=Li,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.52",
|
|
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.52",
|
|
23
|
+
"@fluid-topics/ft-icon": "0.3.52",
|
|
24
|
+
"@fluid-topics/ft-typography": "0.3.52",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.52",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "746cdd6b34c2fa25220ed735914fb1dff9c0fde7"
|
|
29
29
|
}
|