@fluid-topics/ft-select 0.2.11 → 0.2.15
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-select.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare const FtSelectCssVariables: {
|
|
|
27
27
|
labelSize: FtCssVariable;
|
|
28
28
|
selectedOptionSize: FtCssVariable;
|
|
29
29
|
verticalSpacing: FtCssVariable;
|
|
30
|
+
optionsHeight: FtCssVariable;
|
|
30
31
|
selectedOptionColor: FtCssVariable;
|
|
31
32
|
helperColor: FtCssVariable;
|
|
32
33
|
optionsColor: FtCssVariable;
|
|
@@ -474,7 +474,7 @@ class ni extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
474
474
|
.ft-icon--material {
|
|
475
475
|
font-family: ${ui}, "Material Icons", sans-serif;
|
|
476
476
|
}
|
|
477
|
-
`,ci([i()],yi.prototype,"variant",void 0),ci([s("slot")],yi.prototype,"slottedContent",void 0),r("ft-icon")(yi);var xi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class vi extends ft{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return _``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}vi.elementDefinitions={},xi([i({type:String})],vi.prototype,"label",void 0),xi([i({type:Object,converter:t=>t})],vi.prototype,"value",void 0),xi([i({type:Boolean,reflect:!0})],vi.prototype,"selected",void 0);const gi={labelSize:pt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:pt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:pt.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:pt.extend("--ft-select-selected-option-color",ht.colorOnSurface),helperColor:pt.extend("--ft-select-helper-color",ht.colorOnSurfaceMedium),optionsColor:pt.extend("--ft-select-options-color",ht.colorOnSurface),optionsZIndex:pt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:pt.external(ht.colorSurface,"Design system"),colorOnSurfaceDisabled:pt.external(ht.colorOnSurfaceDisabled,"Design system"),colorPrimary:pt.external(ht.colorPrimary,"Design system"),borderRadiusS:pt.external(ht.borderRadiusS,"Design system"),elevation02:pt.external(ht.elevation02,"Design system"),colorError:pt.external(ht.colorError,"Design system")};class bi extends ft{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return _`
|
|
477
|
+
`,ci([i()],yi.prototype,"variant",void 0),ci([s("slot")],yi.prototype,"slottedContent",void 0),r("ft-icon")(yi);var xi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class vi extends ft{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return _``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}vi.elementDefinitions={},xi([i({type:String})],vi.prototype,"label",void 0),xi([i({type:Object,converter:t=>t})],vi.prototype,"value",void 0),xi([i({type:Boolean,reflect:!0})],vi.prototype,"selected",void 0);const gi={labelSize:pt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:pt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:pt.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:pt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:pt.extend("--ft-select-selected-option-color",ht.colorOnSurface),helperColor:pt.extend("--ft-select-helper-color",ht.colorOnSurfaceMedium),optionsColor:pt.extend("--ft-select-options-color",ht.colorOnSurface),optionsZIndex:pt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:pt.external(ht.colorSurface,"Design system"),colorOnSurfaceDisabled:pt.external(ht.colorOnSurfaceDisabled,"Design system"),colorPrimary:pt.external(ht.colorPrimary,"Design system"),borderRadiusS:pt.external(ht.borderRadiusS,"Design system"),elevation02:pt.external(ht.elevation02,"Design system"),colorError:pt.external(ht.colorError,"Design system")};class bi extends ft{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return _`
|
|
478
478
|
<div class="${mt(a)}" part="container">
|
|
479
479
|
<div class="ft-select--main-panel" part="main-panel">
|
|
480
480
|
<ft-input-label text="${this.label}"
|
|
@@ -644,6 +644,8 @@ class ni extends bt{constructor(t){if(super(t),this.it=W,t.type!==vt)throw Error
|
|
|
644
644
|
|
|
645
645
|
.ft-select--options-displayed .ft-select--options {
|
|
646
646
|
display: block;
|
|
647
|
+
max-height: ${gi.optionsHeight};
|
|
648
|
+
overflow-y: auto;
|
|
647
649
|
}
|
|
648
650
|
|
|
649
651
|
.ft-select--option {
|
package/build/ft-select.js
CHANGED
|
@@ -42,6 +42,7 @@ export const FtSelectCssVariables = {
|
|
|
42
42
|
labelSize: FtCssVariable.create("--ft-select-label-size", "SIZE", "11px"),
|
|
43
43
|
selectedOptionSize: FtCssVariable.create("--ft-select-selected-option-size", "SIZE", "14px"),
|
|
44
44
|
verticalSpacing: FtCssVariable.create("--ft-select-vertical-spacing", "SIZE", "4px"),
|
|
45
|
+
optionsHeight: FtCssVariable.create("--ft-select-options-height", "SIZE", "unset"),
|
|
45
46
|
selectedOptionColor: FtCssVariable.extend("--ft-select-selected-option-color", designSystemVariables.colorOnSurface),
|
|
46
47
|
helperColor: FtCssVariable.extend("--ft-select-helper-color", designSystemVariables.colorOnSurfaceMedium),
|
|
47
48
|
optionsColor: FtCssVariable.extend("--ft-select-options-color", designSystemVariables.colorOnSurface),
|
|
@@ -388,6 +389,8 @@ FtSelect.styles = [
|
|
|
388
389
|
|
|
389
390
|
.ft-select--options-displayed .ft-select--options {
|
|
390
391
|
display: block;
|
|
392
|
+
max-height: ${FtSelectCssVariables.optionsHeight};
|
|
393
|
+
overflow-y: auto;
|
|
391
394
|
}
|
|
392
395
|
|
|
393
396
|
.ft-select--option {
|
package/build/ft-select.light.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var r;const p=globalThis.trustedTypes,a=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,h="?"+f,d=`<${h}>`,c=document,u=(t="")=>c.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,v=/>/g,m=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,$=/'/g,w=/"/g,k=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),C=new WeakMap,E=c.createTreeWalker(c,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,l=2===e?"<svg>":"",n=g;for(let e=0;e<i;e++){const i=t[e];let r,p,a=-1,h=0;for(;h<i.length&&(n.lastIndex=h,p=n.exec(i),null!==p);)h=n.lastIndex,n===g?"!--"===p[1]?n=b:void 0!==p[1]?n=v:void 0!==p[2]?(k.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=m):void 0!==p[3]&&(n=m):n===m?">"===p[0]?(n=null!=s?s:g,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,r=p[1],n=void 0===p[3]?m:'"'===p[3]?w:$):n===w||n===$?n=m:n===b||n===v?n=g:(n=m,s=void 0);const c=n===m&&t[e+1].startsWith("/>")?" ":"";l+=n===g?i+d:a>=0?(o.push(r),i.slice(0,a)+"$lit$"+i.slice(a)+f+c):i+f+(-2===a?(o.push(void 0),e):c)}const r=l+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(r):r,o]};class A{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,l=0;const n=t.length-1,r=this.parts,[a,d]=j(t,e);if(this.el=A.createElement(a,i),E.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=E.nextNode())&&r.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=d[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?Z:"@"===e[1]?T:M})}else r.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=p?p.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),E.nextNode(),r.push({type:2,index:++s});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===h)r.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)r.push({type:7,index:s}),t+=f.length-1}s++}}static createElement(t,e){const i=c.createElement("template");return i.innerHTML=t,i}}function
|
|
7
|
+
var r;const p=globalThis.trustedTypes,a=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,h="?"+f,d=`<${h}>`,c=document,u=(t="")=>c.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,v=/>/g,m=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,$=/'/g,w=/"/g,k=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),C=new WeakMap,E=c.createTreeWalker(c,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let s,l=2===e?"<svg>":"",n=g;for(let e=0;e<i;e++){const i=t[e];let r,p,a=-1,h=0;for(;h<i.length&&(n.lastIndex=h,p=n.exec(i),null!==p);)h=n.lastIndex,n===g?"!--"===p[1]?n=b:void 0!==p[1]?n=v:void 0!==p[2]?(k.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=m):void 0!==p[3]&&(n=m):n===m?">"===p[0]?(n=null!=s?s:g,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,r=p[1],n=void 0===p[3]?m:'"'===p[3]?w:$):n===w||n===$?n=m:n===b||n===v?n=g:(n=m,s=void 0);const c=n===m&&t[e+1].startsWith("/>")?" ":"";l+=n===g?i+d:a>=0?(o.push(r),i.slice(0,a)+"$lit$"+i.slice(a)+f+c):i+f+(-2===a?(o.push(void 0),e):c)}const r=l+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(r):r,o]};class A{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,l=0;const n=t.length-1,r=this.parts,[a,d]=j(t,e);if(this.el=A.createElement(a,i),E.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=E.nextNode())&&r.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=d[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?Z:"@"===e[1]?T:M})}else r.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=p?p.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),E.nextNode(),r.push({type:2,index:++s});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===h)r.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)r.push({type:7,index:s}),t+=f.length-1}s++}}static createElement(t,e){const i=c.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var s,l,n,r;if(e===S)return e;let p=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const a=x(e)?void 0:e._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(l=null==p?void 0:p._$AO)||void 0===l||l.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,i,o)),void 0!==o?(null!==(n=(r=i)._$Cl)&&void 0!==n?n:r._$Cl=[])[o]=p:i._$Cu=p),void 0!==p&&(e=I(t,p._$AS(t,e.values),p,o)),e}class N{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:c).importNode(i,!0);E.currentNode=s;let l=E.nextNode(),n=0,r=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new D(l,l.nextSibling,this,t):1===p.type?e=new p.ctor(l,p.name,p.strings,this,t):6===p.type&&(e=new U(l,this,t)),this.v.push(e),p=o[++r]}n!==(null==p?void 0:p.index)&&(l=E.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{constructor(t,e,i,o){var s;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}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=I(this,t,e),x(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return y(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==O&&x(this._$AH)?this._$AA.nextSibling.data=t:this.k(c.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=A.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new N(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new A(t)),e}S(t){y(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new D(this.M(u()),this.M(u()),this,this.options)):i=e[o],i._$AI(s),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class M{constructor(t,e,i,o,s){this.type=1,this._$AH=O,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let l=!1;if(void 0===s)t=I(this,t,e,0),l=!x(t)||t!==this._$AH&&t!==S,l&&(this._$AH=t);else{const o=t;let n,r;for(t=s[0],n=0;n<s.length-1;n++)r=I(this,o[i+n],e,n),r===S&&(r=this._$AH[n]),l||(l=!x(r)||r!==this._$AH[n]),r===O?t=O:t!==O&&(t+=(null!=r?r:"")+s[n+1]),this._$AH[n]=r}l&&!o&&this.C(t)}C(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends M{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===O?void 0:t}}const B=p?p.emptyScript:"";class Z extends M{constructor(){super(...arguments),this.type=4}C(t){t&&t!==O?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class T extends M{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:O)===S)return;const o=this._$AH,s=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==O&&(o===O||s);s&&this.element.removeEventListener(this.name,this,o),l&&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 U{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){I(this,t)}}const R=window.litHtmlPolyfillSupport;null==R||R(A,D),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const W=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===W)return null===(i=t)||void 0===i?void 0:i._$litStatic$},F=t=>({_$litStatic$:t,r:W}),G=new Map,H=(t=>(e,...i)=>{const o=i.length;let s,l;const n=[],r=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(l=i[a],s=K(l));)p+=s+e[++a],f=!0;r.push(l),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=G.get(t))&&(n.raw=n,G.set(t,e=n)),i=r}return t(e,...i)})(z);var P,q=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};!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"}(P||(P={}));const L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),X=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=e.FtCssVariable.extend("--ft-typography-title-font-family",L),Q=e.FtCssVariable.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),V=e.FtCssVariable.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),tt=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),et=e.FtCssVariable.extend("--ft-typography-title-line-height",Y.lineHeight,"24px"),it=e.FtCssVariable.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),st=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"24px"),pt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",X),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"24px"),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",X),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),vt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"24px"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),$t={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",X),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",Y.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit")},wt=e.FtCssVariable.extend("--ft-typography-body2-font-family",X),kt=e.FtCssVariable.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),zt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),St=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),Ot=e.FtCssVariable.extend("--ft-typography-body2-line-height",Y.lineHeight,"20px"),Ct=e.FtCssVariable.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),Et={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",X),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",Y.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit")},jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",X),At=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),
|
|
13
|
+
const W=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===W)return null===(i=t)||void 0===i?void 0:i._$litStatic$},F=t=>({_$litStatic$:t,r:W}),G=new Map,H=(t=>(e,...i)=>{const o=i.length;let s,l;const n=[],r=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(l=i[a],s=K(l));)p+=s+e[++a],f=!0;r.push(l),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=G.get(t))&&(n.raw=n,G.set(t,e=n)),i=r}return t(e,...i)})(z);var P,q=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};!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"}(P||(P={}));const L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),X=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=e.FtCssVariable.extend("--ft-typography-title-font-family",L),Q=e.FtCssVariable.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),V=e.FtCssVariable.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),tt=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),et=e.FtCssVariable.extend("--ft-typography-title-line-height",Y.lineHeight,"24px"),it=e.FtCssVariable.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),st=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),rt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"24px"),pt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",X),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"24px"),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",X),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),vt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"24px"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),$t={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",X),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",Y.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit")},wt=e.FtCssVariable.extend("--ft-typography-body2-font-family",X),kt=e.FtCssVariable.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),zt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),St=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),Ot=e.FtCssVariable.extend("--ft-typography-body2-line-height",Y.lineHeight,"20px"),Ct=e.FtCssVariable.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),Et={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",X),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",Y.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit")},jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",X),At=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Nt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"16px"),Mt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),_t=e.FtCssVariable.extend("--ft-typography-overline-font-family",X),Bt=e.FtCssVariable.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Zt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Tt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Ut=e.FtCssVariable.extend("--ft-typography-overline-line-height",Y.lineHeight,"16px"),Rt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Wt=e.FtCssVariable.extend("--ft-typography-button-font-family",X),Kt=e.FtCssVariable.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),Ft=e.FtCssVariable.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),Gt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),Ht=e.FtCssVariable.extend("--ft-typography-button-line-height",Y.lineHeight,"16px"),Pt=e.FtCssVariable.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase"),qt=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${J};
|
|
16
16
|
font-size: ${Q};
|
|
@@ -78,9 +78,9 @@ const W=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
79
|
font-family: ${jt};
|
|
80
80
|
font-size: ${At};
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
81
|
+
font-weight: ${It};
|
|
82
|
+
letter-spacing: ${Nt};
|
|
83
|
+
line-height: ${Dt};
|
|
84
84
|
text-transform: ${Mt};
|
|
85
85
|
}
|
|
86
86
|
`,ee=i.css`
|
|
@@ -376,7 +376,7 @@ const W=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
376
376
|
.ft-icon--material {
|
|
377
377
|
font-family: ${ze}, "Material Icons", sans-serif;
|
|
378
378
|
}
|
|
379
|
-
`,me([o.property()],Se.prototype,"variant",void 0),me([o.query("slot")],Se.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Se);var Oe=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class Ce extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ce.elementDefinitions={},Oe([o.property({type:String})],Ce.prototype,"label",void 0),Oe([o.property({type:Object,converter:t=>t})],Ce.prototype,"value",void 0),Oe([o.property({type:Boolean,reflect:!0})],Ce.prototype,"selected",void 0);const Ee={labelSize:e.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:e.FtCssVariable.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariable.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariable.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariable.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class je extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,n,r;let p=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions;const f=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,h={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":p,"ft-select--has-option-selected":f,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
|
|
379
|
+
`,me([o.property()],Se.prototype,"variant",void 0),me([o.query("slot")],Se.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Se);var Oe=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class Ce extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ce.elementDefinitions={},Oe([o.property({type:String})],Ce.prototype,"label",void 0),Oe([o.property({type:Object,converter:t=>t})],Ce.prototype,"value",void 0),Oe([o.property({type:Boolean,reflect:!0})],Ce.prototype,"selected",void 0);const Ee={labelSize:e.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:e.FtCssVariable.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariable.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariable.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariable.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariable.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class je extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,n,r;let p=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions;const f=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,h={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":p,"ft-select--has-option-selected":f,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
|
|
380
380
|
<div class="${s.classMap(h)}" part="container">
|
|
381
381
|
<div class="ft-select--main-panel" part="main-panel">
|
|
382
382
|
<ft-input-label text="${this.label}"
|
|
@@ -546,6 +546,8 @@ const W=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
|
|
|
546
546
|
|
|
547
547
|
.ft-select--options-displayed .ft-select--options {
|
|
548
548
|
display: block;
|
|
549
|
+
max-height: ${Ee.optionsHeight};
|
|
550
|
+
overflow-y: auto;
|
|
549
551
|
}
|
|
550
552
|
|
|
551
553
|
.ft-select--option {
|
package/build/ft-select.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.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=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.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,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.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),s.set(t,e),a=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 x=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let c=i.call(o,t);c||(c=h(t),e.call(o,t,c)),this===window.customElements&&(r.set(s,p),p.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.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=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.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,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.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),s.set(t,e),a=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 x=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),x.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(g(Element,"innerHTML"),g(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!==s.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 n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ni){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -50,13 +50,13 @@ function n(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var x;const v=window.trustedTypes,
|
|
53
|
+
*/;var x;const v=window.trustedTypes,g=v?v.emptyScript:"",b=window.reactiveElementPolyfillSupport,m={toAttribute(t,e){switch(e){case Boolean:t=t?g: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}},w=(t,e)=>e!==t&&(e==e||t==t),$={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:w};class O extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,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 s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$}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._$Eu=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(y(t))}else void 0!==t&&e.push(y(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).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._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.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 u(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||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._$Eg)||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)}_$ES(t,e,i=$){var o,s;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const r=(null!==(s=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==s?s:m.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Ei=null}}_$AK(t,e){var i,o,s;const n=this.constructor,r=n._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=n.getPropertyOptions(r),l=t.converter,a=null!==(s=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==s?s:m.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}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._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||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._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==
|
|
59
|
+
var S;O.finalized=!0,O.elementProperties=new Map,O.elementStyles=[],O.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:O}),(null!==(x=globalThis.reactiveElementVersions)&&void 0!==x?x:globalThis.reactiveElementVersions=[]).push("1.3.2");const k=globalThis.trustedTypes,C=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,E=`lit$${(Math.random()+"").slice(9)}$`,N="?"+E,R=`<${N}>`,M=document,U=(t="")=>M.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,D=t=>{var e;return F(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,A=/>/g,L=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,T=/'/g,_=/"/g,P=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),W=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,Z=M.createTreeWalker(M,129,null,!1),V=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=j;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===j?"!--"===a[1]?r=B:void 0!==a[1]?r=A:void 0!==a[2]?(P.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=L):void 0!==a[3]&&(r=L):r===L?">"===a[0]?(r=null!=s?s:j,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?L:'"'===a[3]?_:T):r===_||r===T?r=L:r===B||r===A?r=j:(r=L,s=void 0);const h=r===L&&t[e+1].startsWith("/>")?" ":"";n+=r===j?i+R:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+E+h):i+E+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==C?C.createHTML(l):l,o]};class q{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=V(t,e);if(this.el=q.createElement(a,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Z.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(E)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(E),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Q:"?"===e[1]?et:"@"===e[1]?it:G})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(P.test(o.tagName)){const t=o.textContent.split(E),e=t.length-1;if(e>0){o.textContent=k?k.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),Z.nextNode(),l.push({type:2,index:++s});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===N)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(E,t+1));)l.push({type:7,index:s}),t+=E.length-1}s++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function X(t,e,i=t,o){var s,n,r,l;if(e===W)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const p=z(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=X(t,a._$AS(t,e.values),a,o)),e}class J{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);Z.currentNode=s;let n=Z.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Y(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new ot(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Z.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Y{constructor(t,e,i,o){var s;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}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=X(this,t,e),z(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==W&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):D(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==H&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new J(s,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new q(t)),e}S(t){F(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new Y(this.M(U()),this.M(U()),this,this.options)):i=e[o],i._$AI(s),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,i,o,s){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=X(this,t,e,0),n=!z(t)||t!==this._$AH&&t!==W,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=X(this,o[i+r],e,r),l===W&&(l=this._$AH[r]),n||(n=!z(l)||l!==this._$AH[r]),l===H?t=H:t!==H&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Q extends G{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===H?void 0:t}}const tt=k?k.emptyScript:"";class et extends G{constructor(){super(...arguments),this.type=4}C(t){t&&t!==H?this.element.setAttribute(this.name,tt):this.element.removeAttribute(this.name)}}class it extends G{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=X(this,t,e,0))&&void 0!==i?i:H)===W)return;const o=this._$AH,s=t===H&&o!==H||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==H&&(o===H||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 ot{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){X(this,t)}}const st={L:"$lit$",P:E,V:N,I:1,N:V,R:J,j:D,D:X,H:Y,F:G,O:et,W:it,B:Q,Z:ot},nt=window.litHtmlPolyfillSupport;
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
@@ -87,17 +87,17 @@ var rt,lt;null==nt||nt(q,Y),(null!==(S=globalThis.litHtmlVersions)&&void 0!==S?S
|
|
|
87
87
|
* Copyright 2017 Google LLC
|
|
88
88
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
89
|
*/
|
|
90
|
-
const xt=1,vt=2,
|
|
90
|
+
const xt=1,vt=2,gt=t=>(...e)=>({_$litDirective$:t,values:e});class bt{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)}}
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
93
93
|
* Copyright 2018 Google LLC
|
|
94
94
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
-
*/const mt=
|
|
95
|
+
*/const mt=gt(class extends bt{constructor(t){var e;if(super(t),t.type!==xt||"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.et){this.et=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.et.add(t);return this.render(e)}const s=t.element.classList;this.et.forEach((t=>{t in e||(s.remove(t),this.et.delete(t))}));for(const t in e){const i=!!e[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.et.add(t)):(s.remove(t),this.et.delete(t)))}return W}}),{H:wt}=st,$t=()=>document.createComment(""),Ot=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore($t(),n),o=s.insertBefore($t(),n);i=new wt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},St=(t,e,i=t)=>(t._$AI(e,i),t),kt={},Ct=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Et=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Nt=gt(class extends bt{constructor(t){if(super(t),t.type!==vt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=St(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=St(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=St(n[f],r[y]),Ot(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=St(n[d],r[u]),Ot(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=Et(l,u,y),h=Et(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Ot(t,n[f]);St(e,r[u]),p[u]=e}else p[u]=St(i,r[u]),Ot(t,n[f],i),n[e]=null;u++}else Ct(n[d]),d--;else Ct(n[f]),f++;for(;u<=y;){const e=Ot(t,p[y+1]);St(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Ct(t)}return this.ut=l,((t,e=kt)=>{t._$AH=e})(t,p),W}}),Rt=Symbol.for(""),Mt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===Rt)return null===(i=t)||void 0===i?void 0:i._$litStatic$},Ut=t=>({_$litStatic$:t,r:Rt}),zt=new Map,Ft=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=Mt(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=zt.get(t))&&(r.raw=r,zt.set(t,e=r)),i=l}return t(e,...i)})(I);
|
|
96
96
|
/**
|
|
97
97
|
* @license
|
|
98
98
|
* Copyright 2020 Google LLC
|
|
99
99
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
100
|
-
*/var Dt,jt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Dt||(Dt={}));const Bt=ct.extend("--ft-typography-font-family",ft.titleFont),At=ct.extend("--ft-typography-font-family",ft.contentFont),Lt={fontFamily:At,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","SIZE","24px"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tt=ct.extend("--ft-typography-title-font-family",Bt),_t=ct.extend("--ft-typography-title-font-size",Lt.fontSize,"20px"),Pt=ct.extend("--ft-typography-title-font-weight",Lt.fontWeight,"normal"),It=ct.extend("--ft-typography-title-letter-spacing",Lt.letterSpacing,"0.15px"),Wt=ct.extend("--ft-typography-title-line-height",Lt.lineHeight,"24px"),Ht=ct.extend("--ft-typography-title-text-transform",Lt.textTransform,"inherit"),Kt=ct.extend("--ft-typography-title-dense-font-family",Bt),Zt=ct.extend("--ft-typography-title-dense-font-size",Lt.fontSize,"14px"),Vt=ct.extend("--ft-typography-title-dense-font-weight",Lt.fontWeight,"normal"),qt=ct.extend("--ft-typography-title-dense-letter-spacing",Lt.letterSpacing,"0.105px"),Xt=ct.extend("--ft-typography-title-dense-line-height",Lt.lineHeight,"24px"),Jt=ct.extend("--ft-typography-title-dense-text-transform",Lt.textTransform,"inherit"),Yt=ct.extend("--ft-typography-subtitle1-font-family",At),Gt=ct.extend("--ft-typography-subtitle1-font-size",Lt.fontSize,"16px"),Qt=ct.extend("--ft-typography-subtitle1-font-weight",Lt.fontWeight,"600"),te=ct.extend("--ft-typography-subtitle1-letter-spacing",Lt.letterSpacing,"0.144px"),ee=ct.extend("--ft-typography-subtitle1-line-height",Lt.lineHeight,"24px"),ie=ct.extend("--ft-typography-subtitle1-text-transform",Lt.textTransform,"inherit"),oe=ct.extend("--ft-typography-subtitle2-font-family",At),se=ct.extend("--ft-typography-subtitle2-font-size",Lt.fontSize,"14px"),ne=ct.extend("--ft-typography-subtitle2-font-weight",Lt.fontWeight,"normal"),re=ct.extend("--ft-typography-subtitle2-letter-spacing",Lt.letterSpacing,"0.098px"),le=ct.extend("--ft-typography-subtitle2-line-height",Lt.lineHeight,"24px"),ae=ct.extend("--ft-typography-subtitle2-text-transform",Lt.textTransform,"inherit"),pe={fontFamily:ct.extend("--ft-typography-body1-font-family",At),fontSize:ct.extend("--ft-typography-body1-font-size",Lt.fontSize,"16px"),fontWeight:ct.extend("--ft-typography-body1-font-weight",Lt.fontWeight,"normal"),letterSpacing:ct.extend("--ft-typography-body1-letter-spacing",Lt.letterSpacing,"0.496px"),lineHeight:ct.extend("--ft-typography-body1-line-height",Lt.lineHeight,"24px"),textTransform:ct.extend("--ft-typography-body1-text-transform",Lt.textTransform,"inherit")},ce=ct.extend("--ft-typography-body2-font-family",At),he=ct.extend("--ft-typography-body2-font-size",Lt.fontSize,"14px"),fe=ct.extend("--ft-typography-body2-font-weight",Lt.fontWeight,"normal"),de=ct.extend("--ft-typography-body2-letter-spacing",Lt.letterSpacing,"0.252px"),ue=ct.extend("--ft-typography-body2-line-height",Lt.lineHeight,"20px"),ye=ct.extend("--ft-typography-body2-text-transform",Lt.textTransform,"inherit"),xe={fontFamily:ct.extend("--ft-typography-caption-font-family",At),fontSize:ct.extend("--ft-typography-caption-font-size",Lt.fontSize,"12px"),fontWeight:ct.extend("--ft-typography-caption-font-weight",Lt.fontWeight,"normal"),letterSpacing:ct.extend("--ft-typography-caption-letter-spacing",Lt.letterSpacing,"0.396px"),lineHeight:ct.extend("--ft-typography-caption-line-height",Lt.lineHeight,"16px"),textTransform:ct.extend("--ft-typography-caption-text-transform",Lt.textTransform,"inherit")},ve=ct.extend("--ft-typography-breadcrumb-font-family",At),
|
|
100
|
+
*/var Dt,jt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Dt||(Dt={}));const Bt=ct.extend("--ft-typography-font-family",ft.titleFont),At=ct.extend("--ft-typography-font-family",ft.contentFont),Lt={fontFamily:At,fontSize:ct.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ct.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ct.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ct.create("--ft-typography-line-height","SIZE","24px"),textTransform:ct.create("--ft-typography-text-transform","UNKNOWN","inherit")},Tt=ct.extend("--ft-typography-title-font-family",Bt),_t=ct.extend("--ft-typography-title-font-size",Lt.fontSize,"20px"),Pt=ct.extend("--ft-typography-title-font-weight",Lt.fontWeight,"normal"),It=ct.extend("--ft-typography-title-letter-spacing",Lt.letterSpacing,"0.15px"),Wt=ct.extend("--ft-typography-title-line-height",Lt.lineHeight,"24px"),Ht=ct.extend("--ft-typography-title-text-transform",Lt.textTransform,"inherit"),Kt=ct.extend("--ft-typography-title-dense-font-family",Bt),Zt=ct.extend("--ft-typography-title-dense-font-size",Lt.fontSize,"14px"),Vt=ct.extend("--ft-typography-title-dense-font-weight",Lt.fontWeight,"normal"),qt=ct.extend("--ft-typography-title-dense-letter-spacing",Lt.letterSpacing,"0.105px"),Xt=ct.extend("--ft-typography-title-dense-line-height",Lt.lineHeight,"24px"),Jt=ct.extend("--ft-typography-title-dense-text-transform",Lt.textTransform,"inherit"),Yt=ct.extend("--ft-typography-subtitle1-font-family",At),Gt=ct.extend("--ft-typography-subtitle1-font-size",Lt.fontSize,"16px"),Qt=ct.extend("--ft-typography-subtitle1-font-weight",Lt.fontWeight,"600"),te=ct.extend("--ft-typography-subtitle1-letter-spacing",Lt.letterSpacing,"0.144px"),ee=ct.extend("--ft-typography-subtitle1-line-height",Lt.lineHeight,"24px"),ie=ct.extend("--ft-typography-subtitle1-text-transform",Lt.textTransform,"inherit"),oe=ct.extend("--ft-typography-subtitle2-font-family",At),se=ct.extend("--ft-typography-subtitle2-font-size",Lt.fontSize,"14px"),ne=ct.extend("--ft-typography-subtitle2-font-weight",Lt.fontWeight,"normal"),re=ct.extend("--ft-typography-subtitle2-letter-spacing",Lt.letterSpacing,"0.098px"),le=ct.extend("--ft-typography-subtitle2-line-height",Lt.lineHeight,"24px"),ae=ct.extend("--ft-typography-subtitle2-text-transform",Lt.textTransform,"inherit"),pe={fontFamily:ct.extend("--ft-typography-body1-font-family",At),fontSize:ct.extend("--ft-typography-body1-font-size",Lt.fontSize,"16px"),fontWeight:ct.extend("--ft-typography-body1-font-weight",Lt.fontWeight,"normal"),letterSpacing:ct.extend("--ft-typography-body1-letter-spacing",Lt.letterSpacing,"0.496px"),lineHeight:ct.extend("--ft-typography-body1-line-height",Lt.lineHeight,"24px"),textTransform:ct.extend("--ft-typography-body1-text-transform",Lt.textTransform,"inherit")},ce=ct.extend("--ft-typography-body2-font-family",At),he=ct.extend("--ft-typography-body2-font-size",Lt.fontSize,"14px"),fe=ct.extend("--ft-typography-body2-font-weight",Lt.fontWeight,"normal"),de=ct.extend("--ft-typography-body2-letter-spacing",Lt.letterSpacing,"0.252px"),ue=ct.extend("--ft-typography-body2-line-height",Lt.lineHeight,"20px"),ye=ct.extend("--ft-typography-body2-text-transform",Lt.textTransform,"inherit"),xe={fontFamily:ct.extend("--ft-typography-caption-font-family",At),fontSize:ct.extend("--ft-typography-caption-font-size",Lt.fontSize,"12px"),fontWeight:ct.extend("--ft-typography-caption-font-weight",Lt.fontWeight,"normal"),letterSpacing:ct.extend("--ft-typography-caption-letter-spacing",Lt.letterSpacing,"0.396px"),lineHeight:ct.extend("--ft-typography-caption-line-height",Lt.lineHeight,"16px"),textTransform:ct.extend("--ft-typography-caption-text-transform",Lt.textTransform,"inherit")},ve=ct.extend("--ft-typography-breadcrumb-font-family",At),ge=ct.extend("--ft-typography-breadcrumb-font-size",Lt.fontSize,"10px"),be=ct.extend("--ft-typography-breadcrumb-font-weight",Lt.fontWeight,"normal"),me=ct.extend("--ft-typography-breadcrumb-letter-spacing",Lt.letterSpacing,"0.33px"),we=ct.extend("--ft-typography-breadcrumb-line-height",Lt.lineHeight,"16px"),$e=ct.extend("--ft-typography-breadcrumb-text-transform",Lt.textTransform,"inherit"),Oe=ct.extend("--ft-typography-overline-font-family",At),Se=ct.extend("--ft-typography-overline-font-size",Lt.fontSize,"10px"),ke=ct.extend("--ft-typography-overline-font-weight",Lt.fontWeight,"normal"),Ce=ct.extend("--ft-typography-overline-letter-spacing",Lt.letterSpacing,"1.5px"),Ee=ct.extend("--ft-typography-overline-line-height",Lt.lineHeight,"16px"),Ne=ct.extend("--ft-typography-overline-text-transform",Lt.textTransform,"uppercase"),Re=ct.extend("--ft-typography-button-font-family",At),Me=ct.extend("--ft-typography-button-font-size",Lt.fontSize,"14px"),Ue=ct.extend("--ft-typography-button-font-weight",Lt.fontWeight,"600"),ze=ct.extend("--ft-typography-button-letter-spacing",Lt.letterSpacing,"1.246px"),Fe=ct.extend("--ft-typography-button-line-height",Lt.lineHeight,"16px"),De=ct.extend("--ft-typography-button-text-transform",Lt.textTransform,"uppercase"),je=d`
|
|
101
101
|
.ft-typography--title {
|
|
102
102
|
font-family: ${Tt};
|
|
103
103
|
font-size: ${_t};
|
|
@@ -164,8 +164,8 @@ const xt=1,vt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
164
164
|
`,Ie=d`
|
|
165
165
|
.ft-typography--breadcrumb {
|
|
166
166
|
font-family: ${ve};
|
|
167
|
-
font-size: ${
|
|
168
|
-
font-weight: ${
|
|
167
|
+
font-size: ${ge};
|
|
168
|
+
font-weight: ${be};
|
|
169
169
|
letter-spacing: ${me};
|
|
170
170
|
line-height: ${we};
|
|
171
171
|
text-transform: ${$e};
|
|
@@ -431,7 +431,7 @@ const xt=1,vt=2,bt=t=>(...e)=>({_$litDirective$:t,values:e});class gt{constructo
|
|
|
431
431
|
* Copyright 2017 Google LLC
|
|
432
432
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
433
433
|
*/
|
|
434
|
-
class ni extends
|
|
434
|
+
class ni extends bt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===H||null==t)return this.ft=void 0,this.it=t;if(t===W)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}ni.directiveName="unsafeHTML",ni.resultType=1;const ri=gt(ni);var li,ai;!function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",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="\f06e",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=""}(li||(li={})),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=""}(ai||(ai={})),new Map([...["abw"].map((t=>[t,ai.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,ai.AUDIO])),...["avi"].map((t=>[t,ai.AVI])),...["chm","xhs"].map((t=>[t,ai.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,ai.CODE])),...["csv"].map((t=>[t,ai.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ai.DITA])),...["epub"].map((t=>[t,ai.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ai.EXCEL])),...["flac"].map((t=>[t,ai.FLAC])),...["gif"].map((t=>[t,ai.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ai.GZIP])),...["html","htm","xhtml"].map((t=>[t,ai.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,ai.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ai.JPEG])),...["json"].map((t=>[t,ai.JSON])),...["m4a","m4p"].map((t=>[t,ai.M4A])),...["mov","qt"].map((t=>[t,ai.MOV])),...["mp3"].map((t=>[t,ai.MP3])),...["mp4","m4v"].map((t=>[t,ai.MP4])),...["ogg","oga"].map((t=>[t,ai.OGG])),...["pdf","ps"].map((t=>[t,ai.PDF])),...["png"].map((t=>[t,ai.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ai.POWERPOINT])),...["rar"].map((t=>[t,ai.RAR])),...["stp"].map((t=>[t,ai.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ai.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,ai.VIDEO])),...["wav"].map((t=>[t,ai.WAV])),...["wma"].map((t=>[t,ai.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ai.WORD])),...["xml","xsl","rdf"].map((t=>[t,ai.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ai.YAML])),...["zip"].map((t=>[t,ai.ZIP]))]);var pi,ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(pi||(pi={}));const hi=ct.create("--ft-icon-font-size","SIZE","24px"),fi=ct.extend("--ft-icon-fluid-topics-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-icons")),di=ct.extend("--ft-icon-file-format-font-family",ct.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ui=ct.extend("--ft-icon-material-font-family",ct.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class yi extends dt{constructor(){super(...arguments),this.variant=pi.fluid_topics}render(){return I`
|
|
435
435
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
436
436
|
${ri(this.getIcon())}
|
|
437
437
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
@@ -469,7 +469,7 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
469
469
|
.ft-icon--material {
|
|
470
470
|
font-family: ${ui}, "Material Icons", sans-serif;
|
|
471
471
|
}
|
|
472
|
-
`,ci([o()],yi.prototype,"variant",void 0),ci([n("slot")],yi.prototype,"slottedContent",void 0),l("ft-icon")(yi);var xi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class vi extends dt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return I``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}vi.elementDefinitions={},xi([o({type:String})],vi.prototype,"label",void 0),xi([o({type:Object,converter:t=>t})],vi.prototype,"value",void 0),xi([o({type:Boolean,reflect:!0})],vi.prototype,"selected",void 0);const
|
|
472
|
+
`,ci([o()],yi.prototype,"variant",void 0),ci([n("slot")],yi.prototype,"slottedContent",void 0),l("ft-icon")(yi);var xi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class vi extends dt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return I``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}vi.elementDefinitions={},xi([o({type:String})],vi.prototype,"label",void 0),xi([o({type:Object,converter:t=>t})],vi.prototype,"value",void 0),xi([o({type:Boolean,reflect:!0})],vi.prototype,"selected",void 0);const gi={labelSize:ct.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ct.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ct.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:ct.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ct.extend("--ft-select-selected-option-color",ft.colorOnSurface),helperColor:ct.extend("--ft-select-helper-color",ft.colorOnSurfaceMedium),optionsColor:ct.extend("--ft-select-options-color",ft.colorOnSurface),optionsZIndex:ct.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ct.external(ft.colorSurface,"Design system"),colorOnSurfaceDisabled:ct.external(ft.colorOnSurfaceDisabled,"Design system"),colorPrimary:ct.external(ft.colorPrimary,"Design system"),borderRadiusS:ct.external(ft.borderRadiusS,"Design system"),elevation02:ct.external(ft.elevation02,"Design system"),colorError:ct.external(ft.colorError,"Design system")};class bi extends dt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,s;let n=this.hasOptionsMenuOpen,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":n,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return I`
|
|
473
473
|
<div class="${mt(a)}" part="container">
|
|
474
474
|
<div class="ft-select--main-panel" part="main-panel">
|
|
475
475
|
<ft-input-label text="${this.label}"
|
|
@@ -517,7 +517,7 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
517
517
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
518
518
|
${t.label}
|
|
519
519
|
</div>
|
|
520
|
-
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}
|
|
520
|
+
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}bi.elementDefinitions={"ft-input-label":qe,"ft-typography":Ke,"ft-ripple":si,"ft-icon":yi},bi.styles=[_e,Pe,d`
|
|
521
521
|
*:focus {
|
|
522
522
|
outline: none;
|
|
523
523
|
}
|
|
@@ -531,7 +531,7 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
531
531
|
.ft-select--main-panel {
|
|
532
532
|
position: relative;
|
|
533
533
|
display: flex;
|
|
534
|
-
height: calc(4 * ${
|
|
534
|
+
height: calc(4 * ${gi.verticalSpacing} + ${gi.labelSize} + ${gi.selectedOptionSize});
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
.ft-select--input-panel {
|
|
@@ -543,8 +543,8 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
543
543
|
padding-left: 16px;
|
|
544
544
|
padding-right: 8px;
|
|
545
545
|
gap: 8px;
|
|
546
|
-
color: ${
|
|
547
|
-
${ht(Ye.color,
|
|
546
|
+
color: ${gi.selectedOptionColor};
|
|
547
|
+
${ht(Ye.color,gi.selectedOptionColor)};
|
|
548
548
|
}
|
|
549
549
|
|
|
550
550
|
.ft-select--input-panel,
|
|
@@ -560,7 +560,7 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
560
560
|
|
|
561
561
|
.ft-select--disabled .ft-select--input-panel,
|
|
562
562
|
.ft-select--disabled .ft-select--option {
|
|
563
|
-
color: ${
|
|
563
|
+
color: ${gi.colorOnSurfaceDisabled};
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -569,18 +569,18 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
ft-input-label {
|
|
572
|
-
${ht(Ve.fontSize,
|
|
573
|
-
${ht(Ve.raisedFontSize,
|
|
574
|
-
${ht(Ve.verticalSpacing,
|
|
572
|
+
${ht(Ve.fontSize,gi.selectedOptionSize)};
|
|
573
|
+
${ht(Ve.raisedFontSize,gi.labelSize)};
|
|
574
|
+
${ht(Ve.verticalSpacing,gi.verticalSpacing)};
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
578
|
-
color: ${
|
|
578
|
+
color: ${gi.colorPrimary};
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
582
|
-
${ht(Ve.borderColor,
|
|
583
|
-
${ht(Ve.textColor,
|
|
582
|
+
${ht(Ve.borderColor,gi.colorPrimary)};
|
|
583
|
+
${ht(Ve.textColor,gi.colorPrimary)};
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.ft-select--selected-option {
|
|
@@ -590,12 +590,12 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
590
590
|
overflow: hidden;
|
|
591
591
|
white-space: nowrap;
|
|
592
592
|
text-overflow: ellipsis;
|
|
593
|
-
${ht(pe.fontSize,
|
|
594
|
-
${ht(pe.lineHeight,
|
|
593
|
+
${ht(pe.fontSize,gi.selectedOptionSize)};
|
|
594
|
+
${ht(pe.lineHeight,gi.selectedOptionSize)};
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
.ft-select--in-error .ft-select--selected-option {
|
|
598
|
-
color: ${
|
|
598
|
+
color: ${gi.colorError};
|
|
599
599
|
}
|
|
600
600
|
|
|
601
601
|
ft-icon {
|
|
@@ -607,16 +607,16 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
.ft-select--filled .ft-select--input-panel {
|
|
610
|
-
border-radius: ${
|
|
610
|
+
border-radius: ${gi.borderRadiusS} ${gi.borderRadiusS} 0 0;
|
|
611
611
|
}
|
|
612
612
|
|
|
613
613
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
614
614
|
align-self: stretch;
|
|
615
|
-
padding-top: calc(${
|
|
615
|
+
padding-top: calc(${gi.labelSize} + 2 * ${gi.verticalSpacing});
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
.ft-select--outlined .ft-select--input-panel {
|
|
619
|
-
border-radius: ${
|
|
619
|
+
border-radius: ${gi.borderRadiusS};
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
.ft-select--options {
|
|
@@ -625,10 +625,10 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
625
625
|
top: 100%;
|
|
626
626
|
left: 0;
|
|
627
627
|
right: 0;
|
|
628
|
-
color: ${
|
|
629
|
-
background: ${
|
|
630
|
-
z-index: ${
|
|
631
|
-
box-shadow: ${
|
|
628
|
+
color: ${gi.optionsColor};
|
|
629
|
+
background: ${gi.colorSurface};
|
|
630
|
+
z-index: ${gi.optionsZIndex};
|
|
631
|
+
box-shadow: ${gi.elevation02};
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
.ft-select--fixed .ft-select--options {
|
|
@@ -639,6 +639,8 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
639
639
|
|
|
640
640
|
.ft-select--options-displayed .ft-select--options {
|
|
641
641
|
display: block;
|
|
642
|
+
max-height: ${gi.optionsHeight};
|
|
643
|
+
overflow-y: auto;
|
|
642
644
|
}
|
|
643
645
|
|
|
644
646
|
.ft-select--option {
|
|
@@ -651,10 +653,10 @@ class ni extends gt{constructor(t){if(super(t),this.it=H,t.type!==vt)throw Error
|
|
|
651
653
|
|
|
652
654
|
.ft-select--helper-text {
|
|
653
655
|
padding: 0 12px 0 16px;
|
|
654
|
-
color: ${
|
|
656
|
+
color: ${gi.helperColor};
|
|
655
657
|
}
|
|
656
658
|
|
|
657
659
|
.ft-select--in-error .ft-select--helper-text {
|
|
658
|
-
color: ${
|
|
660
|
+
color: ${gi.colorError};
|
|
659
661
|
}
|
|
660
|
-
`],xi([o({type:String})],
|
|
662
|
+
`],xi([o({type:String})],bi.prototype,"label",void 0),xi([o({type:String})],bi.prototype,"helper",void 0),xi([o({type:Boolean})],bi.prototype,"outlined",void 0),xi([o({type:Boolean})],bi.prototype,"disabled",void 0),xi([o({type:Boolean})],bi.prototype,"error",void 0),xi([o({type:Boolean})],bi.prototype,"fixedMenuPosition",void 0),xi([o({type:Array})],bi.prototype,"options",void 0),xi([s()],bi.prototype,"selectedOption",void 0),xi([s()],bi.prototype,"optionsDisplayed",void 0),xi([s()],bi.prototype,"focusOptions",void 0),xi([n(".ft-select")],bi.prototype,"container",void 0),xi([n(".ft-select--options")],bi.prototype,"optionsMenu",void 0),xi([n(".ft-select--input-panel")],bi.prototype,"mainPanel",void 0),xi([n(".ft-select--option:first-child")],bi.prototype,"firstOption",void 0),xi([n(".ft-select--option:focus")],bi.prototype,"focusedOption",void 0),xi([n(".ft-select--option.ft-select--option-selected")],bi.prototype,"selectedOptionElement",void 0),xi([n(".ft-select--option:last-child")],bi.prototype,"lastOption",void 0),xi([n("slot")],bi.prototype,"optionsSlot",void 0),l("ft-select")(bi),l("ft-select-option")(vi),t.FtSelect=bi,t.FtSelectCssVariables=gi,t.FtSelectOption=vi,Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-select",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"description": "Value selector for a predefined list of choices",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "^0.2.
|
|
23
|
-
"@fluid-topics/ft-input-label": "^0.2.
|
|
24
|
-
"@fluid-topics/ft-ripple": "^0.2.
|
|
25
|
-
"@fluid-topics/ft-typography": "^0.2.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "^0.2.
|
|
22
|
+
"@fluid-topics/ft-icon": "^0.2.15",
|
|
23
|
+
"@fluid-topics/ft-input-label": "^0.2.15",
|
|
24
|
+
"@fluid-topics/ft-ripple": "^0.2.15",
|
|
25
|
+
"@fluid-topics/ft-typography": "^0.2.15",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "^0.2.15",
|
|
27
27
|
"lit": "2.1.3"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "d8f4700bb2461618dc2d1786e0091360556e9e24"
|
|
30
30
|
}
|