@fluid-topics/ft-dialog 0.3.57 → 0.3.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-dialog.light.js +4 -4
- package/build/ft-dialog.min.js +186 -186
- package/package.json +6 -6
package/build/ft-dialog.light.js
CHANGED
|
@@ -159,12 +159,12 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
|
|
|
159
159
|
.ft-icon--material {
|
|
160
160
|
font-family: ${di.materialFontFamily}, "Material Icons", sans-serif;
|
|
161
161
|
}
|
|
162
|
-
`;var ui;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ui||(ui={}));var gi=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 xi extends i.FtLitElement{constructor(){super(...arguments),this.
|
|
163
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
162
|
+
`;var ui;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ui||(ui={}));var gi=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 xi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:ui.fluid_topics,o="material"!==i||this.value;return e.html`
|
|
163
|
+
<i class="ft-icon ${"ft-icon--"+i}">
|
|
164
164
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
165
|
-
<slot ?hidden=${
|
|
165
|
+
<slot ?hidden=${o}></slot>
|
|
166
166
|
</i>
|
|
167
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case ui.file_format:this.resolvedIcon=null!==(t=pi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ui.
|
|
167
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case ui.file_format:this.resolvedIcon=null!==(t=pi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ui.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ai[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}xi.elementDefinitions={},xi.styles=ci,gi([o.property()],xi.prototype,"variant",void 0),gi([o.property()],xi.prototype,"value",void 0),gi([o.state()],xi.prototype,"resolvedIcon",void 0),gi([o.query("slot")],xi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(xi);const yi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),vi={color:yi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",yi),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},bi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),mi=bi,$i=i.FtCssVariableFactory.extend("--ft-ripple-background-color",bi),wi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),ki=wi,zi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",wi),Si=e.css`
|
|
168
168
|
:host {
|
|
169
169
|
display: contents;
|
|
170
170
|
}
|
package/build/ft-dialog.min.js
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
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,
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=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||[]);f(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&&(s.set(n,h),h.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)r.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.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=s.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=v[v.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):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.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)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,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)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),v.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){v.push(this),i.set.call(this,t),v.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 r{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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Qe){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
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const
|
|
22
|
+
*/const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
|
|
23
23
|
/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
@@ -29,55 +29,55 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
|
|
|
29
29
|
* @license
|
|
30
30
|
* Copyright 2017 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
-
*/const
|
|
32
|
+
*/const r=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
|
-
*/;function
|
|
37
|
+
*/;function s(t,e){return r({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
|
|
38
38
|
/**
|
|
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,
|
|
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));function h(t){const{slot:e,selector:i}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/
|
|
47
|
+
*/function p(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!p(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!p(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var r=n[o];if(!p(t[r],e[r]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const c=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
48
48
|
/**
|
|
49
49
|
* @license
|
|
50
50
|
* Copyright 2019 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
|
-
const
|
|
53
|
+
const f=window,d=f.ShadowRoot&&(void 0===f.ShadyCSS||f.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,u=Symbol(),y=new WeakMap;class v{constructor(t,e,i){if(this._$cssResult$=!0,i!==u)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(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=y.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&y.set(e,t))}return t}toString(){return this.cssText}}const g=t=>new v("string"==typeof t?t:t+"",void 0,u),x=(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 v(i,t,u)},b=(t,e)=>{d?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=f.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},m=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return g(e)})(t):t
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/;var
|
|
58
|
+
*/;var w;const $=window,O=$.trustedTypes,S=O?O.emptyScript:"",k=$.reactiveElementPolyfillSupport,C={toAttribute(t,e){switch(e){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},N=(t,e)=>e!==t&&(e==e||t==t),E={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:N};class R extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=E){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||E}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,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"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 e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return b(e,this.constructor.elementStyles),e}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 e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=E){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:C).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:C;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||N)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):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,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.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,e)=>this._$EO(e,this[e],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
|
|
64
|
+
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:R}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.4.1");const z=window,U=z.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,A=`<${B}>`,T=document,L=(t="")=>T.createComment(t),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,W=/>/g,H=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),K=/'/g,Z=/"/g,V=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),q=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),Y=new WeakMap,G=T.createTreeWalker(T,129,null,!1),Q=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=_;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,p=0;for(;p<i.length&&(s.lastIndex=p,l=s.exec(i),null!==l);)p=s.lastIndex,s===_?"!--"===l[1]?s=I:void 0!==l[1]?s=W:void 0!==l[2]?(V.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=H):void 0!==l[3]&&(s=H):s===H?">"===l[0]?(s=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?H:'"'===l[3]?Z:K):s===Z||s===K?s=H:s===I||s===W?s=_:(s=H,n=void 0);const c=s===H&&t[e+1].startsWith("/>")?" ":"";r+=s===_?i+A:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+F+c):i+F+(-2===h?(o.push(void 0),e):c)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(a):a,o]};class tt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=Q(t,e);if(this.el=tt.createElement(l,i),G.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=G.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(F)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(F),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?at:"@"===e[1]?lt:nt})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(V.test(o.tagName)){const t=o.textContent.split(F),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],L()),G.nextNode(),a.push({type:2,index:++n});o.append(t[e],L())}}}else if(8===o.nodeType)if(o.data===B)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,e){const i=T.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,o){var n,r,s,a;if(e===q)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=P(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=et(t,l._$AS(t,e.values),l,o)),e}class it{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:T).importNode(i,!0);G.currentNode=n;let r=G.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new ot(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ht(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=G.nextNode(),s++)}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 ot{constructor(t,e,i,o){var n;this.type=2,this._$AH=X,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=et(this,t,e),P(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==q&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>D(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!==X&&P(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.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=tt.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 it(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new tt(t)),e}k(t){D(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new ot(this.O(L()),this.O(L()),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 nt{constructor(t,e,i,o,n){this.type=1,this._$AH=X,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=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,e,0),r=!P(t)||t!==this._$AH&&t!==q,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[i+s],e,s),a===q&&(a=this._$AH[s]),r||(r=!P(a)||a!==this._$AH[s]),a===X?t=X:t!==X&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}}const st=U?U.emptyScript:"";class at extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==X?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class lt extends nt{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=et(this,t,e,0))&&void 0!==i?i:X)===q)return;const o=this._$AH,n=t===X&&o!==X||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==X&&(o===X||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 ht{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){et(this,t)}}const pt=z.litHtmlPolyfillSupport;null==pt||pt(tt,ot),(null!==(M=z.litHtmlVersions)&&void 0!==M?M:z.litHtmlVersions=[]).push("2.4.0");
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
69
|
*/
|
|
70
|
-
var
|
|
70
|
+
var ct,ft;class dt extends R{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 r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new ot(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(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 q}}dt.finalized=!0,dt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:dt});const ut=globalThis.litElementPolyfillSupport;null==ut||ut({LitElement:dt}),(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.2.2");class yt{static create(t,e,i){let o=t=>g(null!=t?t:i),n=x`var(${g(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${g(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=x`var(${g(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>x`var(${g(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):g(null!=e?e:t.defaultValue),o=x`var(${g(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=>x`var(${g(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 vt(t,e){return g(`${t.name}: ${e}`)}const gt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.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:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
71
71
|
/**
|
|
72
72
|
* @license
|
|
73
73
|
* Copyright 2021 Google LLC
|
|
74
74
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
75
|
-
*/var
|
|
76
|
-
${t.map((t=>
|
|
75
|
+
*/var xt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class bt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return b(n,this.constructor.elementStyles),n}}}(dt)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),J`
|
|
76
|
+
${t.map((t=>J`
|
|
77
77
|
<style>${t}</style>
|
|
78
78
|
`))}
|
|
79
79
|
${this.getTemplate()}
|
|
80
|
-
`}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i
|
|
80
|
+
`}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,r,s;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!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];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(", "))}}xt([o()],bt.prototype,"exportpartsPrefix",void 0),xt([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)},hasChanged:(t,e)=>!p(t,e),...null!=e?e:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0),xt([o()],bt.prototype,"customStylesheet",void 0);const mt=x`
|
|
81
81
|
.ft-no-text-select {
|
|
82
82
|
-webkit-touch-callout: none;
|
|
83
83
|
-webkit-user-select: none;
|
|
@@ -86,7 +86,7 @@ var pt,ct;class dt extends E{constructor(){super(...arguments),this.renderOption
|
|
|
86
86
|
-ms-user-select: none;
|
|
87
87
|
user-select: none;
|
|
88
88
|
}
|
|
89
|
-
`;
|
|
89
|
+
`;x`
|
|
90
90
|
.ft-word-wrap {
|
|
91
91
|
white-space: normal;
|
|
92
92
|
word-wrap: break-word;
|
|
@@ -98,7 +98,7 @@ var pt,ct;class dt extends E{constructor(){super(...arguments),this.renderOption
|
|
|
98
98
|
-webkit-hyphens: auto;
|
|
99
99
|
hyphens: auto
|
|
100
100
|
}
|
|
101
|
-
`;const
|
|
101
|
+
`;const wt=x`
|
|
102
102
|
.ft-safari-ellipsis-fix {
|
|
103
103
|
margin-right: 0;
|
|
104
104
|
|
|
@@ -109,125 +109,125 @@ 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
|
|
112
|
+
`;var $t,Ot,St;const kt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(St=null===(Ot=null===($t=window.safari)||void 0===$t?void 0:$t.pushNotification)||void 0===Ot?void 0:Ot.toString())&&void 0!==St?St:""),Ct=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void 0:t._$litStatic$},Et=t=>({_$litStatic$:t,r:Ct}),Rt=new Map,Mt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=Nt(r));)l+=n+e[++h],p=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),p){const t=s.join("$$lit$$");void 0===(e=Rt.get(t))&&(s.raw=s,Rt.set(t,e=s)),i=a}return t(e,...i)})(J);
|
|
113
113
|
/**
|
|
114
114
|
* @license
|
|
115
115
|
* Copyright 2020 Google LLC
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
|
-
*/var
|
|
117
|
+
*/var zt;!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"}(zt||(zt={}));const Ut=yt.extend("--ft-typography-font-family",gt.titleFont),jt=yt.extend("--ft-typography-font-family",gt.contentFont),Ft={fontFamily:jt,fontSize:yt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:yt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:yt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:yt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:yt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Bt=yt.extend("--ft-typography-title-font-family",Ut),At=yt.extend("--ft-typography-title-font-size",Ft.fontSize,"20px"),Tt=yt.extend("--ft-typography-title-font-weight",Ft.fontWeight,"normal"),Lt=yt.extend("--ft-typography-title-letter-spacing",Ft.letterSpacing,"0.15px"),Pt=yt.extend("--ft-typography-title-line-height",Ft.lineHeight,"1.2"),Dt=yt.extend("--ft-typography-title-text-transform",Ft.textTransform,"inherit"),_t=yt.extend("--ft-typography-title-dense-font-family",Ut),It=yt.extend("--ft-typography-title-dense-font-size",Ft.fontSize,"14px"),Wt=yt.extend("--ft-typography-title-dense-font-weight",Ft.fontWeight,"normal"),Ht=yt.extend("--ft-typography-title-dense-letter-spacing",Ft.letterSpacing,"0.105px"),Kt=yt.extend("--ft-typography-title-dense-line-height",Ft.lineHeight,"1.7"),Zt=yt.extend("--ft-typography-title-dense-text-transform",Ft.textTransform,"inherit"),Vt=yt.extend("--ft-typography-subtitle1-font-family",jt),Jt=yt.extend("--ft-typography-subtitle1-font-size",Ft.fontSize,"16px"),qt=yt.extend("--ft-typography-subtitle1-font-weight",Ft.fontWeight,"600"),Xt=yt.extend("--ft-typography-subtitle1-letter-spacing",Ft.letterSpacing,"0.144px"),Yt=yt.extend("--ft-typography-subtitle1-line-height",Ft.lineHeight,"1.5"),Gt=yt.extend("--ft-typography-subtitle1-text-transform",Ft.textTransform,"inherit"),Qt=yt.extend("--ft-typography-subtitle2-font-family",jt),te=yt.extend("--ft-typography-subtitle2-font-size",Ft.fontSize,"14px"),ee=yt.extend("--ft-typography-subtitle2-font-weight",Ft.fontWeight,"normal"),ie=yt.extend("--ft-typography-subtitle2-letter-spacing",Ft.letterSpacing,"0.098px"),oe=yt.extend("--ft-typography-subtitle2-line-height",Ft.lineHeight,"1.7"),ne=yt.extend("--ft-typography-subtitle2-text-transform",Ft.textTransform,"inherit"),re=yt.extend("--ft-typography-body1-font-family",jt),se=yt.extend("--ft-typography-body1-font-size",Ft.fontSize,"16px"),ae=yt.extend("--ft-typography-body1-font-weight",Ft.fontWeight,"normal"),le=yt.extend("--ft-typography-body1-letter-spacing",Ft.letterSpacing,"0.496px"),he=yt.extend("--ft-typography-body1-line-height",Ft.lineHeight,"1.5"),pe=yt.extend("--ft-typography-body1-text-transform",Ft.textTransform,"inherit"),ce=yt.extend("--ft-typography-body2-font-family",jt),fe=yt.extend("--ft-typography-body2-font-size",Ft.fontSize,"14px"),de=yt.extend("--ft-typography-body2-font-weight",Ft.fontWeight,"normal"),ue=yt.extend("--ft-typography-body2-letter-spacing",Ft.letterSpacing,"0.252px"),ye=yt.extend("--ft-typography-body2-line-height",Ft.lineHeight,"1.4"),ve=yt.extend("--ft-typography-body2-text-transform",Ft.textTransform,"inherit"),ge=yt.extend("--ft-typography-caption-font-family",jt),xe=yt.extend("--ft-typography-caption-font-size",Ft.fontSize,"12px"),be=yt.extend("--ft-typography-caption-font-weight",Ft.fontWeight,"normal"),me=yt.extend("--ft-typography-caption-letter-spacing",Ft.letterSpacing,"0.396px"),we=yt.extend("--ft-typography-caption-line-height",Ft.lineHeight,"1.33"),$e=yt.extend("--ft-typography-caption-text-transform",Ft.textTransform,"inherit"),Oe=yt.extend("--ft-typography-breadcrumb-font-family",jt),Se=yt.extend("--ft-typography-breadcrumb-font-size",Ft.fontSize,"10px"),ke=yt.extend("--ft-typography-breadcrumb-font-weight",Ft.fontWeight,"normal"),Ce=yt.extend("--ft-typography-breadcrumb-letter-spacing",Ft.letterSpacing,"0.33px"),Ne=yt.extend("--ft-typography-breadcrumb-line-height",Ft.lineHeight,"1.6"),Ee=yt.extend("--ft-typography-breadcrumb-text-transform",Ft.textTransform,"inherit"),Re=yt.extend("--ft-typography-overline-font-family",jt),Me=yt.extend("--ft-typography-overline-font-size",Ft.fontSize,"10px"),ze=yt.extend("--ft-typography-overline-font-weight",Ft.fontWeight,"normal"),Ue=yt.extend("--ft-typography-overline-letter-spacing",Ft.letterSpacing,"1.5px"),je=yt.extend("--ft-typography-overline-line-height",Ft.lineHeight,"1.6"),Fe=yt.extend("--ft-typography-overline-text-transform",Ft.textTransform,"uppercase"),Be={fontFamily:yt.extend("--ft-typography-button-font-family",jt),fontSize:yt.extend("--ft-typography-button-font-size",Ft.fontSize,"14px"),fontWeight:yt.extend("--ft-typography-button-font-weight",Ft.fontWeight,"600"),letterSpacing:yt.extend("--ft-typography-button-letter-spacing",Ft.letterSpacing,"1.246px"),lineHeight:yt.extend("--ft-typography-button-line-height",Ft.lineHeight,"1.15"),textTransform:yt.extend("--ft-typography-button-text-transform",Ft.textTransform,"uppercase")},Ae=x`
|
|
118
118
|
.ft-typography--title {
|
|
119
|
-
font-family: ${
|
|
120
|
-
font-size: ${
|
|
119
|
+
font-family: ${Bt};
|
|
120
|
+
font-size: ${At};
|
|
121
121
|
font-weight: ${Tt};
|
|
122
|
-
letter-spacing: ${
|
|
123
|
-
line-height: ${
|
|
124
|
-
text-transform: ${
|
|
122
|
+
letter-spacing: ${Lt};
|
|
123
|
+
line-height: ${Pt};
|
|
124
|
+
text-transform: ${Dt};
|
|
125
125
|
}
|
|
126
|
-
`,
|
|
126
|
+
`,Te=x`
|
|
127
127
|
.ft-typography--title-dense {
|
|
128
|
-
font-family: ${
|
|
129
|
-
font-size: ${
|
|
130
|
-
font-weight: ${
|
|
131
|
-
letter-spacing: ${
|
|
132
|
-
line-height: ${
|
|
133
|
-
text-transform: ${
|
|
134
|
-
}
|
|
135
|
-
`,
|
|
128
|
+
font-family: ${_t};
|
|
129
|
+
font-size: ${It};
|
|
130
|
+
font-weight: ${Wt};
|
|
131
|
+
letter-spacing: ${Ht};
|
|
132
|
+
line-height: ${Kt};
|
|
133
|
+
text-transform: ${Zt};
|
|
134
|
+
}
|
|
135
|
+
`,Le=x`
|
|
136
136
|
.ft-typography--subtitle1 {
|
|
137
|
-
font-family: ${
|
|
138
|
-
font-size: ${
|
|
139
|
-
font-weight: ${
|
|
140
|
-
letter-spacing: ${
|
|
141
|
-
line-height: ${
|
|
142
|
-
text-transform: ${
|
|
143
|
-
}
|
|
144
|
-
`,
|
|
137
|
+
font-family: ${Vt};
|
|
138
|
+
font-size: ${Jt};
|
|
139
|
+
font-weight: ${qt};
|
|
140
|
+
letter-spacing: ${Xt};
|
|
141
|
+
line-height: ${Yt};
|
|
142
|
+
text-transform: ${Gt};
|
|
143
|
+
}
|
|
144
|
+
`,Pe=x`
|
|
145
145
|
.ft-typography--subtitle2 {
|
|
146
|
-
font-family: ${
|
|
147
|
-
font-size: ${
|
|
148
|
-
font-weight: ${
|
|
149
|
-
letter-spacing: ${
|
|
150
|
-
line-height: ${
|
|
151
|
-
text-transform: ${
|
|
146
|
+
font-family: ${Qt};
|
|
147
|
+
font-size: ${te};
|
|
148
|
+
font-weight: ${ee};
|
|
149
|
+
letter-spacing: ${ie};
|
|
150
|
+
line-height: ${oe};
|
|
151
|
+
text-transform: ${ne};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
`,
|
|
154
|
+
`,De=x`
|
|
155
155
|
.ft-typography--body1 {
|
|
156
|
-
font-family: ${
|
|
157
|
-
font-size: ${
|
|
158
|
-
font-weight: ${
|
|
159
|
-
letter-spacing: ${
|
|
160
|
-
line-height: ${
|
|
161
|
-
text-transform: ${
|
|
162
|
-
}
|
|
163
|
-
`,
|
|
156
|
+
font-family: ${re};
|
|
157
|
+
font-size: ${se};
|
|
158
|
+
font-weight: ${ae};
|
|
159
|
+
letter-spacing: ${le};
|
|
160
|
+
line-height: ${he};
|
|
161
|
+
text-transform: ${pe};
|
|
162
|
+
}
|
|
163
|
+
`,_e=x`
|
|
164
164
|
.ft-typography--body2 {
|
|
165
|
-
font-family: ${
|
|
166
|
-
font-size: ${
|
|
167
|
-
font-weight: ${
|
|
168
|
-
letter-spacing: ${
|
|
169
|
-
line-height: ${
|
|
170
|
-
text-transform: ${
|
|
171
|
-
}
|
|
172
|
-
`,
|
|
165
|
+
font-family: ${ce};
|
|
166
|
+
font-size: ${fe};
|
|
167
|
+
font-weight: ${de};
|
|
168
|
+
letter-spacing: ${ue};
|
|
169
|
+
line-height: ${ye};
|
|
170
|
+
text-transform: ${ve};
|
|
171
|
+
}
|
|
172
|
+
`,Ie=x`
|
|
173
173
|
.ft-typography--caption {
|
|
174
|
-
font-family: ${
|
|
175
|
-
font-size: ${
|
|
176
|
-
font-weight: ${
|
|
177
|
-
letter-spacing: ${
|
|
178
|
-
line-height: ${
|
|
179
|
-
text-transform: ${
|
|
180
|
-
}
|
|
181
|
-
`,
|
|
174
|
+
font-family: ${ge};
|
|
175
|
+
font-size: ${xe};
|
|
176
|
+
font-weight: ${be};
|
|
177
|
+
letter-spacing: ${me};
|
|
178
|
+
line-height: ${we};
|
|
179
|
+
text-transform: ${$e};
|
|
180
|
+
}
|
|
181
|
+
`,We=x`
|
|
182
182
|
.ft-typography--breadcrumb {
|
|
183
|
-
font-family: ${
|
|
184
|
-
font-size: ${
|
|
185
|
-
font-weight: ${
|
|
186
|
-
letter-spacing: ${
|
|
187
|
-
line-height: ${
|
|
188
|
-
text-transform: ${
|
|
189
|
-
}
|
|
190
|
-
`,
|
|
183
|
+
font-family: ${Oe};
|
|
184
|
+
font-size: ${Se};
|
|
185
|
+
font-weight: ${ke};
|
|
186
|
+
letter-spacing: ${Ce};
|
|
187
|
+
line-height: ${Ne};
|
|
188
|
+
text-transform: ${Ee};
|
|
189
|
+
}
|
|
190
|
+
`,He=x`
|
|
191
191
|
.ft-typography--overline {
|
|
192
|
-
font-family: ${
|
|
193
|
-
font-size: ${
|
|
194
|
-
font-weight: ${
|
|
195
|
-
letter-spacing: ${
|
|
196
|
-
line-height: ${
|
|
197
|
-
text-transform: ${
|
|
198
|
-
}
|
|
199
|
-
`,
|
|
192
|
+
font-family: ${Re};
|
|
193
|
+
font-size: ${Me};
|
|
194
|
+
font-weight: ${ze};
|
|
195
|
+
letter-spacing: ${Ue};
|
|
196
|
+
line-height: ${je};
|
|
197
|
+
text-transform: ${Fe};
|
|
198
|
+
}
|
|
199
|
+
`,Ke=x`
|
|
200
200
|
.ft-typography--button {
|
|
201
|
-
font-family: ${
|
|
202
|
-
font-size: ${
|
|
203
|
-
font-weight: ${
|
|
204
|
-
letter-spacing: ${
|
|
205
|
-
line-height: ${
|
|
206
|
-
text-transform: ${
|
|
207
|
-
}
|
|
208
|
-
`,
|
|
201
|
+
font-family: ${Be.fontFamily};
|
|
202
|
+
font-size: ${Be.fontSize};
|
|
203
|
+
font-weight: ${Be.fontWeight};
|
|
204
|
+
letter-spacing: ${Be.letterSpacing};
|
|
205
|
+
line-height: ${Be.lineHeight};
|
|
206
|
+
text-transform: ${Be.textTransform};
|
|
207
|
+
}
|
|
208
|
+
`,Ze=x`
|
|
209
209
|
.ft-typography {
|
|
210
210
|
vertical-align: inherit;
|
|
211
211
|
}
|
|
212
|
-
`;var
|
|
213
|
-
<${
|
|
212
|
+
`;var Ve=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Je extends bt{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?Mt`
|
|
213
|
+
<${Et(this.element)}
|
|
214
214
|
class="ft-typography ft-typography--${this.variant}">
|
|
215
215
|
<slot></slot>
|
|
216
|
-
</${
|
|
217
|
-
`:
|
|
216
|
+
</${Et(this.element)}>
|
|
217
|
+
`:Mt`
|
|
218
218
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
219
|
-
`}}
|
|
219
|
+
`}}Je.styles=[Ae,Te,Le,Pe,De,_e,Ie,We,He,Ke,Ze],Ve([o()],Je.prototype,"element",void 0),Ve([o()],Je.prototype,"variant",void 0),c("ft-typography")(Je);
|
|
220
220
|
/**
|
|
221
221
|
* @license
|
|
222
222
|
* Copyright 2017 Google LLC
|
|
223
223
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
224
224
|
*/
|
|
225
|
-
const
|
|
225
|
+
const qe=1,Xe=2,Ye=t=>(...e)=>({_$litDirective$:t,values:e});class Ge{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
226
226
|
/**
|
|
227
227
|
* @license
|
|
228
228
|
* Copyright 2017 Google LLC
|
|
229
229
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
230
|
-
*/class
|
|
230
|
+
*/class Qe extends Ge{constructor(t){if(super(t),this.it=X,t.type!==Xe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this._t=void 0,this.it=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Qe.directiveName="unsafeHTML",Qe.resultType=1;const ti=Ye(Qe);var ei,ii;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ei||(ei={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(ii||(ii={})),new Map([...["abw"].map((t=>[t,ii.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,ii.AUDIO])),...["avi"].map((t=>[t,ii.AVI])),...["chm","xhs"].map((t=>[t,ii.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,ii.CODE])),...["csv"].map((t=>[t,ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ii.DITA])),...["epub"].map((t=>[t,ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ii.EXCEL])),...["flac"].map((t=>[t,ii.FLAC])),...["gif"].map((t=>[t,ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,ii.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ii.JPEG])),...["json"].map((t=>[t,ii.JSON])),...["m4a","m4p"].map((t=>[t,ii.M4A])),...["mov","qt"].map((t=>[t,ii.MOV])),...["mp3"].map((t=>[t,ii.MP3])),...["mp4","m4v"].map((t=>[t,ii.MP4])),...["ogg","oga"].map((t=>[t,ii.OGG])),...["pdf","ps"].map((t=>[t,ii.PDF])),...["png"].map((t=>[t,ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ii.POWERPOINT])),...["rar"].map((t=>[t,ii.RAR])),...["stp"].map((t=>[t,ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ii.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,ii.VIDEO])),...["wav"].map((t=>[t,ii.WAV])),...["wma"].map((t=>[t,ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ii.YAML])),...["zip"].map((t=>[t,ii.ZIP]))]);const oi={size:yt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:yt.extend("--ft-icon-fluid-topics-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:yt.extend("--ft-icon-file-format-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:yt.extend("--ft-icon-material-font-family",yt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:yt.create("--ft-icon-vertical-align","UNKNOWN","unset")},ni=x`
|
|
231
231
|
:host, i.ft-icon {
|
|
232
232
|
display: inline-flex;
|
|
233
233
|
align-items: center;
|
|
@@ -236,14 +236,14 @@ const Ji=1,qi=2,Xi=t=>(...i)=>({_$litDirective$:t,values:i});class Yi{constructo
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
:host {
|
|
239
|
-
width: ${
|
|
240
|
-
height: ${
|
|
239
|
+
width: ${oi.size};
|
|
240
|
+
height: ${oi.size};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
i.ft-icon {
|
|
244
244
|
width: 100%;
|
|
245
245
|
height: 100%;
|
|
246
|
-
font-size: ${
|
|
246
|
+
font-size: ${oi.size};
|
|
247
247
|
line-height: 1;
|
|
248
248
|
font-weight: normal;
|
|
249
249
|
text-transform: none;
|
|
@@ -254,38 +254,38 @@ const Ji=1,qi=2,Xi=t=>(...i)=>({_$litDirective$:t,values:i});class Yi{constructo
|
|
|
254
254
|
text-rendering: auto;
|
|
255
255
|
-webkit-font-smoothing: antialiased;
|
|
256
256
|
-moz-osx-font-smoothing: grayscale;
|
|
257
|
-
vertical-align: ${
|
|
257
|
+
vertical-align: ${oi.verticalAlign};
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
i.ft-icon.ft-icon--fluid-topics {
|
|
261
|
-
font-family: ${
|
|
261
|
+
font-family: ${oi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
262
262
|
|
|
263
263
|
/* Ugly fix because font is broken */
|
|
264
|
-
font-size: calc(0.9 * ${
|
|
264
|
+
font-size: calc(0.9 * ${oi.size});
|
|
265
265
|
position: relative;
|
|
266
266
|
top: -5%;
|
|
267
267
|
justify-content: center;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
.ft-icon--file-format {
|
|
271
|
-
font-family: ${
|
|
271
|
+
font-family: ${oi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.ft-icon--material {
|
|
275
|
-
font-family: ${
|
|
275
|
+
font-family: ${oi.materialFontFamily}, "Material Icons", sans-serif;
|
|
276
276
|
}
|
|
277
|
-
`;var
|
|
278
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
279
|
-
${
|
|
280
|
-
<slot ?hidden=${
|
|
277
|
+
`;var ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ri||(ri={}));var si=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ai extends bt{constructor(){super(...arguments),this.resolvedIcon=X}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:ri.fluid_topics,i="material"!==e||this.value;return J`
|
|
278
|
+
<i class="ft-icon ${"ft-icon--"+e}">
|
|
279
|
+
${ti(this.resolvedIcon)}
|
|
280
|
+
<slot ?hidden=${i}></slot>
|
|
281
281
|
</i>
|
|
282
|
-
`}get textContent(){var t,
|
|
282
|
+
`}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 ri.file_format:this.resolvedIcon=null!==(t=ii[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ri.material:this.resolvedIcon=this.value||X;break;default:this.resolvedIcon=null!==(e=ei[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ai.elementDefinitions={},ai.styles=ni,si([o()],ai.prototype,"variant",void 0),si([o()],ai.prototype,"value",void 0),si([n()],ai.prototype,"resolvedIcon",void 0),si([s("slot")],ai.prototype,"slottedContent",void 0),c("ft-icon")(ai);
|
|
283
283
|
/**
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2018 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
287
|
*/
|
|
288
|
-
const
|
|
288
|
+
const li=Ye(class extends Ge{constructor(t){var e;if(super(t),t.type!==qe||"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 q}}),hi=yt.extend("--ft-ripple-color",gt.colorContent),pi={color:hi,backgroundColor:yt.extend("--ft-ripple-background-color",hi),opacityContentOnSurfacePressed:yt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:yt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:yt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:yt.external(gt.opacityContentOnSurfaceSelected,"Design system")},ci=yt.extend("--ft-ripple-color",gt.colorPrimary),fi=ci,di=yt.extend("--ft-ripple-background-color",ci),ui=yt.extend("--ft-ripple-color",gt.colorSecondary),yi=ui,vi=yt.extend("--ft-ripple-background-color",ui),gi=x`
|
|
289
289
|
:host {
|
|
290
290
|
display: contents;
|
|
291
291
|
}
|
|
@@ -307,27 +307,27 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.ft-ripple .ft-ripple--background {
|
|
310
|
-
background-color: ${
|
|
310
|
+
background-color: ${pi.backgroundColor};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.ft-ripple .ft-ripple--effect {
|
|
314
|
-
background-color: ${
|
|
314
|
+
background-color: ${pi.color};
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
318
|
-
background-color: ${
|
|
318
|
+
background-color: ${vi};
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
322
|
-
background-color: ${
|
|
322
|
+
background-color: ${yi};
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
326
|
-
background-color: ${
|
|
326
|
+
background-color: ${di};
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
330
|
-
background-color: ${
|
|
330
|
+
background-color: ${fi};
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
.ft-ripple .ft-ripple--background {
|
|
@@ -359,22 +359,22 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
362
|
-
opacity: ${
|
|
362
|
+
opacity: ${pi.opacityContentOnSurfaceHover};
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
366
|
-
opacity: ${
|
|
366
|
+
opacity: ${pi.opacityContentOnSurfaceSelected};
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
370
|
-
opacity: ${
|
|
370
|
+
opacity: ${pi.opacityContentOnSurfaceFocused};
|
|
371
371
|
}
|
|
372
372
|
|
|
373
373
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
374
|
-
opacity: ${
|
|
374
|
+
opacity: ${pi.opacityContentOnSurfacePressed};
|
|
375
375
|
transform: translate(-50%, -50%) scale(1);
|
|
376
376
|
}
|
|
377
|
-
`;var
|
|
377
|
+
`;var xi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class bi extends bt{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 e(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 e(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.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 J`
|
|
378
378
|
<style>
|
|
379
379
|
.ft-ripple .ft-ripple--effect,
|
|
380
380
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -387,11 +387,11 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
387
387
|
top: ${this.originY}px;
|
|
388
388
|
}
|
|
389
389
|
</style>
|
|
390
|
-
<div class="${
|
|
390
|
+
<div class="${li(t)}">
|
|
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
|
|
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 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(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;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,this.target=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()}}bi.elementDefinitions={},bi.styles=gi,xi([o({type:Boolean})],bi.prototype,"primary",void 0),xi([o({type:Boolean})],bi.prototype,"secondary",void 0),xi([o({type:Boolean})],bi.prototype,"unbounded",void 0),xi([o({type:Boolean})],bi.prototype,"activated",void 0),xi([o({type:Boolean})],bi.prototype,"selected",void 0),xi([o({type:Boolean})],bi.prototype,"disabled",void 0),xi([n()],bi.prototype,"hovered",void 0),xi([n()],bi.prototype,"focused",void 0),xi([n()],bi.prototype,"pressed",void 0),xi([n()],bi.prototype,"rippling",void 0),xi([n()],bi.prototype,"rippleSize",void 0),xi([n()],bi.prototype,"originX",void 0),xi([n()],bi.prototype,"originY",void 0),xi([s(".ft-ripple")],bi.prototype,"ripple",void 0),xi([s(".ft-ripple--effect")],bi.prototype,"rippleEffect",void 0),c("ft-ripple")(bi);const mi=yt.create("--ft-tooltip-distance","SIZE","4px"),wi=yt.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=yt.create("--ft-tooltip-background-color","COLOR","#666666"),Oi=yt.create("--ft-tooltip-z-index","NUMBER","1"),Si=yt.external(gt.borderRadiusS,"Design system"),ki=yt.create("--ft-tooltip-max-width","SIZE","150px"),Ci=x`
|
|
395
395
|
.ft-tooltip--container {
|
|
396
396
|
display: block;
|
|
397
397
|
position: relative;
|
|
@@ -407,23 +407,23 @@ 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: ${ki};
|
|
411
411
|
text-align: center;
|
|
412
|
-
padding: ${
|
|
413
|
-
z-index: ${
|
|
412
|
+
padding: ${mi};
|
|
413
|
+
z-index: ${Oi};
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
.ft-tooltip--content {
|
|
417
417
|
padding: 4px 8px;
|
|
418
|
-
border-radius: ${
|
|
419
|
-
background-color: ${
|
|
420
|
-
color: ${
|
|
418
|
+
border-radius: ${Si};
|
|
419
|
+
background-color: ${$i};
|
|
420
|
+
color: ${wi};
|
|
421
421
|
top: -500px;
|
|
422
422
|
left: -500px;
|
|
423
423
|
position: relative;
|
|
424
424
|
word-break: break-word;
|
|
425
425
|
}
|
|
426
|
-
`;var
|
|
426
|
+
`;var Ni=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ei extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return J`
|
|
427
427
|
<div part="container"
|
|
428
428
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
429
429
|
@mouseenter=${this.onHover}
|
|
@@ -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((
|
|
444
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${ki})`}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())}}Ei.elementDefinitions={"ft-typography":Je},Ei.styles=Ci,Ni([o()],Ei.prototype,"text",void 0),Ni([o({type:Boolean})],Ei.prototype,"manual",void 0),Ni([o({type:Boolean})],Ei.prototype,"inline",void 0),Ni([o({type:Number})],Ei.prototype,"delay",void 0),Ni([o()],Ei.prototype,"position",void 0),Ni([function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?h({slot:n,flatten:e,selector:i}):r({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ei.prototype,"slotNodes",void 0),Ni([s(".ft-tooltip--container")],Ei.prototype,"container",void 0),Ni([s("slot")],Ei.prototype,"target",void 0),Ni([s(".ft-tooltip")],Ei.prototype,"tooltip",void 0),Ni([s(".ft-tooltip--content")],Ei.prototype,"tooltipContent",void 0),Ni([n()],Ei.prototype,"visible",void 0),c("ft-tooltip")(Ei);const Ri={color:yt.extend("--ft-loader-color",gt.colorPrimary),size:yt.create("--ft-loader-size","SIZE","80px")},Mi=x`
|
|
445
445
|
:host {
|
|
446
446
|
line-height: 0;
|
|
447
447
|
}
|
|
@@ -450,8 +450,8 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
450
450
|
display: inline-block;
|
|
451
451
|
position: relative;
|
|
452
452
|
|
|
453
|
-
width: ${
|
|
454
|
-
height: ${
|
|
453
|
+
width: ${Ri.size};
|
|
454
|
+
height: ${Ri.size};
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
.ft-loader div {
|
|
@@ -460,7 +460,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
460
460
|
width: 25%;
|
|
461
461
|
height: 25%;
|
|
462
462
|
border-radius: 50%;
|
|
463
|
-
background: ${
|
|
463
|
+
background: ${Ri.color};
|
|
464
464
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
465
465
|
}
|
|
466
466
|
|
|
@@ -507,17 +507,17 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
507
507
|
transform: translate(0, 0);
|
|
508
508
|
}
|
|
509
509
|
100% {
|
|
510
|
-
transform: translate(calc(0.35 * ${
|
|
510
|
+
transform: translate(calc(0.35 * ${Ri.size}), 0);
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
`;class
|
|
513
|
+
`;class zi extends bt{render(){return J`
|
|
514
514
|
<div class="ft-loader">
|
|
515
515
|
<div></div>
|
|
516
516
|
<div></div>
|
|
517
517
|
<div></div>
|
|
518
518
|
<div></div>
|
|
519
519
|
</div>
|
|
520
|
-
`}}
|
|
520
|
+
`}}zi.styles=Mi,c("ft-loader")(zi);const Ui=yt.extend("--ft-button-color",gt.colorPrimary),ji={backgroundColor:yt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:yt.extend("--ft-button-border-radius",gt.borderRadiusL),color:Ui,fontSize:yt.extend("--ft-button-font-size",Be.fontSize),iconSize:yt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:yt.extend("--ft-button-ripple-color",Ui),opacityDisabled:yt.external(gt.colorOpacityDisabled,"Design system")},Fi=yt.extend("--ft-button-primary-color",yt.extend("--ft-button-color",gt.colorOnPrimary)),Bi={backgroundColor:yt.extend("--ft-button-primary-background-color",yt.extend("--ft-button-background-color",gt.colorPrimary)),color:Fi,rippleColor:yt.extend("--ft-button-primary-ripple-color",Fi)},Ai=yt.extend("--ft-button-dense-border-radius",yt.extend("--ft-button-border-radius",gt.borderRadiusM)),Ti=[mt,x`
|
|
521
521
|
:host {
|
|
522
522
|
display: inline-block;
|
|
523
523
|
max-width: 100%;
|
|
@@ -528,7 +528,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
528
528
|
box-shadow: 0px 0px 0px transparent;
|
|
529
529
|
border: 0px solid transparent;
|
|
530
530
|
text-shadow: 0px 0px 0px transparent;
|
|
531
|
-
font-size: ${
|
|
531
|
+
font-size: ${ji.fontSize};
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
button:hover {
|
|
@@ -557,17 +557,17 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
557
557
|
border: none;
|
|
558
558
|
pointer-events: auto;
|
|
559
559
|
|
|
560
|
-
--ft-button-internal-line-height: calc(${
|
|
561
|
-
--ft-button-internal-color: ${
|
|
562
|
-
${
|
|
560
|
+
--ft-button-internal-line-height: calc(${ji.fontSize} + 2px);
|
|
561
|
+
--ft-button-internal-color: ${ji.color};
|
|
562
|
+
${vt(oi.size,ji.iconSize)};
|
|
563
563
|
--ft-button-internal-vertical-padding: 6px;
|
|
564
564
|
--ft-button-internal-horizontal-padding: 8px;
|
|
565
|
-
${
|
|
566
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
565
|
+
${vt(pi.color,ji.rippleColor)};
|
|
566
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${ji.iconSize});
|
|
567
567
|
|
|
568
|
-
border-radius: ${
|
|
568
|
+
border-radius: ${ji.borderRadius};
|
|
569
569
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
570
|
-
background-color: ${
|
|
570
|
+
background-color: ${ji.backgroundColor};
|
|
571
571
|
color: var(--ft-button-internal-color);
|
|
572
572
|
-webkit-mask-image: radial-gradient(white, black);
|
|
573
573
|
}
|
|
@@ -579,7 +579,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
579
579
|
.ft-button--dense {
|
|
580
580
|
--ft-button-internal-vertical-padding: 2px;
|
|
581
581
|
--ft-button-internal-horizontal-padding: 4px;
|
|
582
|
-
border-radius: ${
|
|
582
|
+
border-radius: ${Ai};
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
.ft-button--round {
|
|
@@ -588,13 +588,13 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
588
588
|
|
|
589
589
|
.ft-button[disabled] {
|
|
590
590
|
filter: grayscale(1);
|
|
591
|
-
opacity: ${
|
|
591
|
+
opacity: ${ji.opacityDisabled};
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
.ft-button.ft-button--primary {
|
|
595
|
-
background-color: ${
|
|
596
|
-
--ft-button-internal-color: ${
|
|
597
|
-
${
|
|
595
|
+
background-color: ${Bi.backgroundColor};
|
|
596
|
+
--ft-button-internal-color: ${Bi.color};
|
|
597
|
+
${vt(pi.color,Bi.rippleColor)};
|
|
598
598
|
}
|
|
599
599
|
|
|
600
600
|
.ft-button.ft-button--outlined {
|
|
@@ -613,8 +613,8 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
613
613
|
text-overflow: ellipsis;
|
|
614
614
|
display: block;
|
|
615
615
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
616
|
-
${
|
|
617
|
-
${
|
|
616
|
+
${vt(Be.fontSize,"1em")};
|
|
617
|
+
${vt(Be.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
.ft-button--label[hidden] {
|
|
@@ -637,40 +637,40 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
ft-loader {
|
|
640
|
-
${
|
|
641
|
-
${
|
|
640
|
+
${vt(Ri.size,ji.iconSize)};
|
|
641
|
+
${vt(Ri.color,"var(--ft-button-internal-color)")};
|
|
642
642
|
}
|
|
643
|
-
`];var
|
|
643
|
+
`];var Li=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Pi extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ri.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(J`
|
|
644
644
|
<button part="button"
|
|
645
|
-
class="${
|
|
645
|
+
class="${li(t)}"
|
|
646
646
|
aria-label="${this.getLabel()}"
|
|
647
647
|
?disabled=${this.isDisabled()}>
|
|
648
648
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
649
649
|
<ft-typography part="label"
|
|
650
650
|
variant="button"
|
|
651
651
|
element="span"
|
|
652
|
-
class="ft-button--label ${
|
|
652
|
+
class="ft-button--label ${kt?"ft-safari-ellipsis-fix":""}"
|
|
653
653
|
?hidden=${!this.hasTextContent()}>
|
|
654
654
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
655
655
|
</ft-typography>
|
|
656
656
|
${this.resolveIcon()}
|
|
657
657
|
</button>
|
|
658
|
-
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
658
|
+
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?J`
|
|
659
659
|
<ft-tooltip part="tooltip"
|
|
660
660
|
text="${this.getLabel()}"
|
|
661
661
|
position="${this.tooltipPosition}">
|
|
662
662
|
${t}
|
|
663
663
|
</ft-tooltip>
|
|
664
|
-
`:t}resolveIcon(){return this.loading?
|
|
665
|
-
<ft-loader></ft-loader> `:this.icon?
|
|
666
|
-
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:
|
|
664
|
+
`:t}resolveIcon(){return this.loading?J`
|
|
665
|
+
<ft-loader></ft-loader> `:this.icon?J`
|
|
666
|
+
<ft-icon variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:X}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}}Pi.elementDefinitions={"ft-ripple":bi,"ft-tooltip":Ei,"ft-typography":Je,"ft-icon":ai,"ft-loader":zi},Pi.styles=[wt,Ti],Li([o({type:Boolean})],Pi.prototype,"primary",void 0),Li([o({type:Boolean})],Pi.prototype,"outlined",void 0),Li([o({type:Boolean})],Pi.prototype,"disabled",void 0),Li([o({type:Boolean})],Pi.prototype,"dense",void 0),Li([o({type:Boolean})],Pi.prototype,"round",void 0),Li([o({type:String})],Pi.prototype,"label",void 0),Li([o({type:String})],Pi.prototype,"icon",void 0),Li([o({type:String})],Pi.prototype,"iconVariant",void 0),Li([o({type:Boolean})],Pi.prototype,"trailingIcon",void 0),Li([o({type:Boolean})],Pi.prototype,"loading",void 0),Li([o({type:String})],Pi.prototype,"tooltipPosition",void 0),Li([o({type:Boolean})],Pi.prototype,"hideTooltip",void 0),Li([o({type:Boolean})],Pi.prototype,"forceTooltip",void 0),Li([s(".ft-button")],Pi.prototype,"button",void 0),Li([s(".ft-button--label slot")],Pi.prototype,"slottedContent",void 0),c("ft-button")(Pi);const Di={zIndex:yt.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:yt.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:yt.create("--ft-dialog-height","SIZE","unset"),width:yt.create("--ft-dialog-width","SIZE","unset"),minWidth:yt.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:yt.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:yt.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:yt.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:yt.external(gt.colorSurface,"Design system"),headingColor:yt.external(gt.colorOnSurfaceMedium,"Design system"),borderRadiusS:yt.external(gt.borderRadiusS,"Design system"),elevation24:yt.external(gt.elevation24,"Design system")},_i=x`
|
|
667
667
|
.ft-dialog {
|
|
668
668
|
position: fixed;
|
|
669
669
|
top: 0;
|
|
670
670
|
right: 0;
|
|
671
671
|
bottom: 0;
|
|
672
672
|
left: 0;
|
|
673
|
-
z-index: ${
|
|
673
|
+
z-index: ${Di.zIndex};
|
|
674
674
|
|
|
675
675
|
display: flex;
|
|
676
676
|
flex-direction: column;
|
|
@@ -690,7 +690,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
690
690
|
height: 100%;
|
|
691
691
|
width: 100%;
|
|
692
692
|
|
|
693
|
-
background-color: ${
|
|
693
|
+
background-color: ${Di.overlayBackgroundColor};
|
|
694
694
|
|
|
695
695
|
}
|
|
696
696
|
|
|
@@ -698,26 +698,26 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
698
698
|
position: fixed;
|
|
699
699
|
display: flex;
|
|
700
700
|
flex-direction: column;
|
|
701
|
-
gap: ${
|
|
701
|
+
gap: ${Di.paddingButtons};
|
|
702
702
|
|
|
703
|
-
width: ${
|
|
704
|
-
height: ${
|
|
703
|
+
width: ${Di.width};
|
|
704
|
+
height: ${Di.height};
|
|
705
705
|
max-width: 95vw;
|
|
706
706
|
max-height: 95vh;
|
|
707
|
-
min-width: ${
|
|
707
|
+
min-width: ${Di.minWidth};
|
|
708
708
|
|
|
709
|
-
padding-top: ${
|
|
710
|
-
padding-bottom: ${
|
|
709
|
+
padding-top: ${Di.paddingTop};
|
|
710
|
+
padding-bottom: ${Di.paddingTop};
|
|
711
711
|
|
|
712
|
-
background-color: ${
|
|
712
|
+
background-color: ${Di.colorSurface};
|
|
713
713
|
|
|
714
|
-
border-radius: ${
|
|
715
|
-
box-shadow: ${
|
|
714
|
+
border-radius: ${Di.borderRadiusS};
|
|
715
|
+
box-shadow: ${Di.elevation24};
|
|
716
716
|
}
|
|
717
717
|
|
|
718
718
|
.ft-dialog-wrapper > * {
|
|
719
|
-
padding-right: ${
|
|
720
|
-
padding-left: ${
|
|
719
|
+
padding-right: ${Di.paddingSide};
|
|
720
|
+
padding-left: ${Di.paddingSide};
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
.ft-dialog-content {
|
|
@@ -732,7 +732,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
732
732
|
align-items: center;
|
|
733
733
|
gap: 8px;
|
|
734
734
|
|
|
735
|
-
color: ${
|
|
735
|
+
color: ${Di.headingColor};
|
|
736
736
|
}
|
|
737
737
|
|
|
738
738
|
.ft-dialog-heading * {
|
|
@@ -748,7 +748,7 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
.ft-dialog-heading ft-button {
|
|
751
|
-
${
|
|
751
|
+
${vt(ji.color,Di.headingColor)};
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
.ft-dialog-buttons.ft-dialog-no-buttons {
|
|
@@ -762,17 +762,17 @@ 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
|
|
765
|
+
`;var Ii=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wi extends bt{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?J`
|
|
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
|
-
${this.heading?
|
|
769
|
+
${this.heading?J`
|
|
770
770
|
<div class="ft-dialog-heading">
|
|
771
|
-
${this.icon?
|
|
771
|
+
${this.icon?J`
|
|
772
772
|
<ft-icon variant="material">${this.icon}</ft-icon>
|
|
773
773
|
`:void 0}
|
|
774
774
|
<ft-typography element="span" variant="title">${this.heading}</ft-typography>
|
|
775
|
-
${this.closable?
|
|
775
|
+
${this.closable?J`
|
|
776
776
|
<ft-button round icon="close" @click=${this.close}></ft-button>
|
|
777
777
|
`:void 0}
|
|
778
778
|
</div>
|
|
@@ -786,4 +786,4 @@ const ae=Xi(class extends Yi{constructor(t){var i;if(super(t),t.type!==Ji||"clas
|
|
|
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)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}onClickOutside(){this.closeOnClickOutside&&this.close()}}
|
|
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()}}Wi.elementDefinitions={"ft-typography":Je,"ft-icon":ai,"ft-button":Pi},Wi.styles=_i,Ii([o({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],Wi.prototype,"opened",void 0),Ii([o({type:Boolean})],Wi.prototype,"closeOnEsc",void 0),Ii([o({type:Boolean})],Wi.prototype,"closeOnClickOutside",void 0),Ii([o({type:Boolean})],Wi.prototype,"closable",void 0),Ii([o({type:()=>Boolean})],Wi.prototype,"beforeClose",void 0),Ii([o({type:String})],Wi.prototype,"heading",void 0),Ii([o({type:String})],Wi.prototype,"icon",void 0),Ii([h({slot:"buttons"})],Wi.prototype,"buttons",void 0),c("ft-dialog")(Wi),t.FtDialog=Wi,t.FtDialogCssVariables=Di,t.styles=_i,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.58",
|
|
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.58",
|
|
23
|
+
"@fluid-topics/ft-icon": "0.3.58",
|
|
24
|
+
"@fluid-topics/ft-typography": "0.3.58",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "0.3.58",
|
|
26
26
|
"lit": "2.2.8"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "c053ee1216238ba6b2c62e5add329343f735c77e"
|
|
29
29
|
}
|