Initial Commit
This commit is contained in:
commit
d4a69c41be
2748 files changed
+80489
No files matched your search
@@ -0,0 +1,481 @@
|
||||
/*! For license information please see 6931.6e4eddca80c27864.js.LICENSE.txt */
|
||||
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["6931"],{70176:function(){window.JSCompiler_renameProperty=function(e,t){return e}},44223:function(e,t,i){i.d(t,{n:function(){return a},z:function(){return o}});i(19134),i(97003),i(70176);const s={},n=/-[a-z]/g,r=/([A-Z])/g;function o(e){return s[e]||(s[e]=e.indexOf("-")<0?e:e.replace(n,(e=>e[1].toUpperCase())))}function a(e){return s[e]||(s[e]=e.replace(r,"-$1").toLowerCase())}},19883:function(e,t,i){i.d(t,{o:function(){return r}});i(71695),i(46692),i(47021),i(70176);let s=0;function n(){}n.prototype.__mixinApplications,n.prototype.__mixinSet;const r=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=s++;function n(s){let n=s.__mixinSet;if(n&&n[i])return s;let r=t,o=r.get(s);if(!o){o=e(s),r.set(s,o);let t=Object.create(o.__mixinSet||n||null);t[i]=!0,o.__mixinSet=t}return o}return n}},85695:function(e,t,i){i.d(t,{T8:function(){return d}});i(92745),i(70176);let s=!1,n=[],r=[];function o(){s=!0,requestAnimationFrame((function(){s=!1,a(n),setTimeout((function(){!function(e){for(let t=0,i=e.length;t<i;t++)l(e.shift())}(r)}))}))}function a(e){for(;e.length;)l(e.shift())}function l(e){const t=e[0],i=e[1],s=e[2];try{i.apply(t,s)}catch(n){setTimeout((()=>{throw n}))}}function d(e,t,i){s||o(),r.push([e,t,i])}},97333:function(e,t,i){i.d(t,{Kk:function(){return a},Rq:function(){return l},iY:function(){return d}});i(71695),i(19134),i(5740),i(97003),i(47021),i(72700),i(8038),i(71513),i(75656),i(50100),i(18084),i(70176);let s,n,r=/(url\()([^)]*)(\))/g,o=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function a(e,t){if(e&&o.test(e))return e;if("//"===e)return e;if(void 0===s){s=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",s="http://a/c%20d"===e.href}catch(i){}}if(t||(t=document.baseURI||window.location.href),s)try{return new URL(e,t).href}catch(i){return e}return n||(n=document.implementation.createHTMLDocument("temp"),n.base=n.createElement("base"),n.head.appendChild(n.base),n.anchor=n.createElement("a"),n.body.appendChild(n.anchor)),n.base.href=t,n.anchor.href=e,n.anchor.href||e}function l(e,t){return e.replace(r,(function(e,i,s,n){return i+"'"+a(s.replace(/["']/g,""),t)+"'"+n}))}function d(e){return e.substring(0,e.lastIndexOf("/")+1)}},70617:function(e,t,i){i.r(t),i.d(t,{allowTemplateFromDomModule:function(){return g},cancelSyntheticClickEvents:function(){return O},fastDomIf:function(){return k},getSanitizeDOMValue:function(){return u},legacyNoObservedAttributes:function(){return F},legacyOptimizations:function(){return v},legacyUndefined:function(){return I},legacyWarnings:function(){return C},orderedComputed:function(){return S},passiveTouchGestures:function(){return _},removeNestedTemplates:function(){return V},rootPath:function(){return l},sanitizeDOMValue:function(){return h},setAllowTemplateFromDomModule:function(){return y},setCancelSyntheticClickEvents:function(){return A},setFastDomIf:function(){return L},setLegacyNoObservedAttributes:function(){return M},setLegacyOptimizations:function(){return b},setLegacyUndefined:function(){return E},setLegacyWarnings:function(){return w},setOrderedComputed:function(){return T},setPassiveTouchGestures:function(){return p},setRemoveNestedTemplates:function(){return z},setRootPath:function(){return d},setSanitizeDOMValue:function(){return c},setStrictTemplatePolicy:function(){return f},setSuppressTemplateNotifications:function(){return R},setSyncInitialRender:function(){return P},setUseAdoptedStyleSheetsWithBuiltCSS:function(){return B},strictTemplatePolicy:function(){return m},supportsAdoptingStyleSheets:function(){return a},suppressTemplateNotifications:function(){return N},syncInitialRender:function(){return x},useAdoptedStyleSheetsWithBuiltCSS:function(){return D},useNativeCSSProperties:function(){return r},useNativeCustomElements:function(){return o},useShadow:function(){return n}});i(70176);var s=i(97333);const n=!window.ShadyDOM||!window.ShadyDOM.inUse,r=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),o=!window.customElements.polyfillWrapFlushCallback,a=n&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let l=window.Polymer&&window.Polymer.rootPath||(0,s.iY)(document.baseURI||window.location.href);const d=function(e){l=e};let h=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;const c=function(e){h=e},u=function(){return h};let _=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;const p=function(e){_=e};let m=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;const f=function(e){m=e};let g=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;const y=function(e){g=e};let v=window.Polymer&&window.Polymer.legacyOptimizations||!1;const b=function(e){v=e};letLine truncated
|
||||
<style>
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
:host([hidden]) {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
<span part="checkmark" aria-hidden="true"></span>
|
||||
<div part="content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
`))}static get is(){return"vaadin-combo-box-item"}}(0,n.M)(h)},10210:function(e,t,i){i.d(t,{z:()=>S});var s=i("44223"),n=i("85695"),r=i("19883");const o=(0,r.o)((e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},manualValidation:{type:Boolean,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}_requestValidation(){this.manualValidation||this.validate()}}));i("52247"),i("71695"),i("39527"),i("99790"),i("47021"),i("19423"),i("52805"),i("23669"),i("41360"),i("34595"),i("36993");function a(e,t,i=0){let s=t;for(const n of e.subCaches){const e=n.parentCacheIndex;if(s<=e)break;if(s<=e+n.flatSize)return a(n,s-e-1,i+1);s-=n.flatSize}return{cache:e,item:e.items[s],index:s,page:Math.floor(s/e.pageSize),level:i}}function l({getItemId:e},t,i,s=0,n=0){for(let r=0;r<t.items.length;r++){const o=t.items[r];if(o&&e(o)===e(i))return{cache:t,level:s,item:o,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:n+t.getFlatIndex(r)}}for(const r of t.subCaches){const o=l({getItemId:e},r,i,s+1,n+t.getFlatIndex(r.parentCacheIndex)+1);if(o)return o}}function d(e,[t,...i],s=0){t===1/0&&(t=e.size-1);const n=e.getFlatIndex(t),r=e.getSubCache(t);return r&&r.flatSize>0&&i.length?d(r,i,s+n+1):s+n}class h{constructor(e,t,i,s,n){this.context=void 0,this.pageSize=void 0,this.items=[],this.pendingRequests={},this.__subCacheByIndex={},this.__size=0,this.__flatSize=0,this.context=e,this.pageSize=t,this.size=i,this.parentCache=s,this.parentCacheIndex=n,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((e=>e.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){if(this.__size!==e){if(this.__size=e,void 0!==this.context.placeholder){this.items.length=e||0;for(let s=0;s<e;s++){var t,i;(t=this.items)[i=s]||(t[i]=this.context.placeholder)}}Object.keys(this.pendingRequests).forEach((e=>{parseInt(e)*this.pageSize>=this.size&&delete this.pendingRequests[e]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((e,t)=>(t.recalculateFlatSize(),e+t.flatSize)),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach(((e,t)=>{const s=i+t;(void 0===this.size||s<this.size)&&(this.items[s]=e)}))}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new h(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce(((e,i)=>{const s=i.parentCacheIndex;return t>s?e+i.flatSize:e}),t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=a(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=a(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}class c extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:s,getItemId:n,isPlaceholder:r,placeholder:o,dataProvider:a,dataProviderParams:l}){super(),this.host=void 0,this.dataProvider=void 0,this.dataProviderParams=void 0,this.pageSize=void 0,this.isExpanded=void 0,this.getItemId=void 0,this.rootCache=void 0,this.placeholder=void 0,this.isPlaceholder=void 0,this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=s,this.placeholder=o,this.isPlaceholder=r,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this
Line truncated
|
||||
<style>
|
||||
:host([opened]) {
|
||||
pointer-events: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<slot></slot>
|
||||
|
||||
<vaadin-combo-box-overlay
|
||||
id="overlay"
|
||||
opened="[[_overlayOpened]]"
|
||||
loading$="[[loading]]"
|
||||
theme$="[[_theme]]"
|
||||
position-target="[[inputElement]]"
|
||||
no-vertical-overlap
|
||||
></vaadin-combo-box-overlay>
|
||||
`))}}(0,o.M)(u),t()}catch(h){t(h)}}))},21768:function(e,t,i){i.a(e,(async function(e,s){try{i.d(t,{H:function(){return a}});i(19083),i(61006);var n=i(73072),r=i(59125),o=e([r]);r=(o.then?(await o)():o)[0];const a=e=>class extends((0,r.y)(e)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!(0,n.Qu)(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);""===t?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};s()}catch(a){s(a)}}))},77260:function(e,t,i){i.a(e,(async function(e,t){try{var s=i(11709),n=i(40701),r=i(8058),o=i(71786),a=i(38243),l=i(20087),d=i(21768),h=e([d]);d=(h.then?(await h)():h)[0];let c,u,_=e=>e;const p=(0,l.iv)(c||(c=_`
|
||||
#overlay {
|
||||
width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
|
||||
}
|
||||
|
||||
[part='content'] {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
`));(0,l.hC)("vaadin-combo-box-overlay",[a.r,p],{moduleId:"vaadin-combo-box-overlay-styles"});class m extends((0,d.H)((0,o.F)((0,r.U)((0,l.Tb)(s.H3))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return(0,s.dy)(u||(u=_`
|
||||
<div id="backdrop" part="backdrop" hidden></div>
|
||||
<div part="overlay" id="overlay">
|
||||
<div part="loader"></div>
|
||||
<div part="content" id="content"><slot></slot></div>
|
||||
</div>
|
||||
`))}}(0,n.M)(m),t()}catch(c){t(c)}}))},72373:function(e,t,i){i.d(t,{h:function(){return s}});const s=class{toString(){return""}}},37996:function(e,t,i){i.a(e,(async function(e,s){try{i.d(t,{t:function(){return d}});i(71695),i(52805),i(23669),i(19134),i(11740),i(97003),i(39527),i(67670),i(13334),i(34595),i(47021);var n=i(94146),r=i(23885),o=i(20997),a=i(72373),l=e([o]);o=(l.then?(await l)():l)[0];const d=e=>class extends e{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map((e=>parseInt(e,10))).reduce(((e,t)=>e+t))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${(0,r.l)()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(e=>e.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const s=[...this.children].find((e=>!e.hidden&&e.index===this.__virtualizer.lastVisibleIndex));if(!s||e!==s.index)return;const n=s.getBoundingClientRect(),r=this.getBoundingClientRect(),o=n.bottom-r.bottom+this._viewportTotalPaddingBottom;o>0&&(this.scrollTop+=o)}_isItemSelected(e,t,i){return!(e instanceof a.h)&&(i&&void 0!==e&&void 0!==t?(0,n.U)(i,e)===(0,n.U)(i,t):e===t)}__initVirtualizer(){this.__virtualizer=new o.d({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map((()=>{const e=document.createElement(`${this.__hostTagName}-item`);return e.addEventListener("click",this.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e}))}_updateElement(e,t){const i=this.items[t],s=this.focusedIndex,n=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:n,renderer:this.renderer,focused:!this.loading&&s===t}),"function"==typeof this.itemClassNameGenerator?e.className=this.itemClassNameGenerator(i):""!==e.className&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",void 0!==t&&"option"),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof a.h&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(e=>{const t=0===this.scrollTop,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()}))}__requestItemByIndex(e){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))}))}_visibleItemsCount(){this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex);return this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};s()}catch(d){s(d)}}))},88698:function(e,t,i){i.a(e,(async function(e,t){try{var s=i(11709),n=i(40701),r=i(37996),o=e([r]);r=(o.then?(await o)():o)[0];let a,l=e=>e;cl
Line truncated
|
||||
<style>
|
||||
:host {
|
||||
display: block;
|
||||
min-height: 1px;
|
||||
overflow: auto;
|
||||
|
||||
/* Fixes item background from getting on top of scrollbars on Safari */
|
||||
transform: translate3d(0, 0, 0);
|
||||
|
||||
/* Enable momentum scrolling on iOS */
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
/* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
|
||||
box-shadow: 0 0 0 white;
|
||||
}
|
||||
|
||||
#selector {
|
||||
border-width: var(--_vaadin-combo-box-items-container-border-width);
|
||||
border-style: var(--_vaadin-combo-box-items-container-border-style);
|
||||
border-color: var(--_vaadin-combo-box-items-container-border-color, transparent);
|
||||
position: relative;
|
||||
}
|
||||
</style>
|
||||
<div id="selector">
|
||||
<slot></slot>
|
||||
</div>
|
||||
`))}}(0,n.M)(d),t()}catch(a){t(a)}}))},45679:function(e,t,i){i("38046"),i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("19134"),i("5740"),i("11740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("13334"),i("36993"),i("47021");var s=i("57243");const n=[],r=new Set,o=new Set;function a(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function l(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function d(e){return e.map((e=>e.cssText)).join("\n")}const h="vaadin-themable-mixin-style";function c(e){r.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(h),s=t.prototype._template;i.textContent=s.content.getElementById(h).textContent}}(i):i||r.delete(t)}))}function u(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(h).textContent=d(e.getStylesForThis())}o.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&u(i)}))}let _;const p=(0,s.iv)(_||(_=(e=>e)`
|
||||
:host {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
min-height: 36px;
|
||||
padding: 8px 32px 8px 10px;
|
||||
overflow: hidden;
|
||||
font-family: var(--material-font-family);
|
||||
font-size: var(--material-small-font-size);
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
/* It's the list-box's responsibility to add the focus style */
|
||||
:host([focused]) {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Checkmark */
|
||||
[part='checkmark']::before {
|
||||
display: var(--_material-item-selected-icon-display, none);
|
||||
content: '';
|
||||
font-family: material-icons;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
font-weight: 400;
|
||||
width: 24px;
|
||||
text-align: center;
|
||||
margin-right: 10px;
|
||||
color: var(--material-secondary-text-color);
|
||||
flex: none;
|
||||
}
|
||||
|
||||
:host([selected]) [part='checkmark']::before {
|
||||
content: var(--material-icons-check);
|
||||
}
|
||||
|
||||
@media (any-hover: hover) {
|
||||
:host(:hover:not([disabled])) {
|
||||
background-color: var(--material-secondary-background-color);
|
||||
}
|
||||
}
|
||||
|
||||
:host([focused]:not([disabled])) {
|
||||
background-color: var(--material-divider-color);
|
||||
}
|
||||
|
||||
/* Disabled */
|
||||
:host([disabled]) {
|
||||
color: var(--material-disabled-text-color);
|
||||
cursor: default;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* RTL specific styles */
|
||||
:host([dir='rtl']) {
|
||||
padding: 8px 10px 8px 32px;
|
||||
}
|
||||
|
||||
:host([dir='rtl']) [part='checkmark']::before {
|
||||
margin-right: 0;
|
||||
margin-left: 10px;
|
||||
}
|
||||
`));!function(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):n.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&o.forEach((i=>{if(l(e,i)&&function(e){return a(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),u(e),c(e)}}))}("vaadin-item",p,{moduleId:"material-item"});var m=i("20087");let f;const g=(0,m.iv)(f||(f=(e=>e)`
|
||||
:host {
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
padding: 4px 10px;
|
||||
--_material-item-selected-icon-display: block;
|
||||
}
|
||||
`));(0,m.hC)("vaadin-combo-box-item",[p,g],{moduleId:"material-combo-box-item"})},28737:function(e,t,i){i.a(e,(async function(e,t){try{i(45679),i(75244);var s=i(60180),n=e([s]);s=(n.then?(await n)():n)[0],t()}catch(r){t(r)}}))},75244:function(e,t,i){i("38046");var s=i("7930");let n;const r=(0,s.iv)(n||(n=(e=>e)`
|
||||
[part~='loader'] {
|
||||
height: 2px;
|
||||
background: var(--material-background-color)
|
||||
linear-gradient(
|
||||
90deg,
|
||||
transparent 0%,
|
||||
transparent 20%,
|
||||
var(--material-primary-color) 20%,
|
||||
var(--material-primary-color) 40%,
|
||||
transparent 40%,
|
||||
transparent 60%,
|
||||
var(--material-primary-color) 60%,
|
||||
var(--material-primary-color) 80%,
|
||||
transparent 80%,
|
||||
transparent 100%
|
||||
)
|
||||
0 0 / 400% 100% repeat-x;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
:host(:not([loading])) [part~='loader'] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
:host([loading]) [part='loader'] {
|
||||
animation:
|
||||
3s linear infinite material-loader-progress,
|
||||
0.3s 0.1s both material-loader-fade-in;
|
||||
}
|
||||
|
||||
[part='loader']::before {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 100%;
|
||||
opacity: 0.16;
|
||||
background: var(--material-primary-color);
|
||||
}
|
||||
|
||||
@keyframes material-loader-fade-in {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes material-loader-progress {
|
||||
0% {
|
||||
background-position: 0 0;
|
||||
background-size: 300% 100%;
|
||||
}
|
||||
|
||||
33% {
|
||||
background-position: -100% 0;
|
||||
background-size: 400% 100%;
|
||||
}
|
||||
|
||||
67% {
|
||||
background-position: -200% 0;
|
||||
background-size: 250% 100%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: -300% 0;
|
||||
background-size: 300% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/* RTL specific styles */
|
||||
|
||||
@keyframes material-loader-progress-rtl {
|
||||
0% {
|
||||
background-position: 100% 0;
|
||||
background-size: 300% 100%;
|
||||
}
|
||||
|
||||
33% {
|
||||
background-position: 200% 0;
|
||||
background-size: 400% 100%;
|
||||
}
|
||||
|
||||
67% {
|
||||
background-position: 300% 0;
|
||||
background-size: 250% 100%;
|
||||
}
|
||||
|
||||
100% {
|
||||
background-position: 400% 0;
|
||||
background-size: 300% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
:host([loading][dir='rtl']) [part='loader'] {
|
||||
animation:
|
||||
3s linear infinite material-loader-progress-rtl,
|
||||
0.3s 0.1s both material-loader-fade-in;
|
||||
}
|
||||
`));i("88039");var o=i("68305");let a;const l=(0,s.iv)(a||(a=(e=>e)`
|
||||
/* prettier-ignore */
|
||||
:host {
|
||||
/* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */
|
||||
--material-shadow-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
||||
--material-shadow-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 3px -2px rgba(0, 0, 0, 0.4);
|
||||
--material-shadow-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
|
||||
--material-shadow-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);
|
||||
--material-shadow-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);
|
||||
--material-shadow-elevation-12dp: 0 12px 16px 1px rgba(0, 0, 0, 0.14), 0 4px 22px 3px rgba(0, 0, 0, 0.12), 0 6px 7px -4px rgba(0, 0, 0, 0.4);
|
||||
--material-shadow-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.4);
|
||||
--material-shadow-elevation-24dp: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
`));(0,o.I)("shadow",l);let d;const h=(0,s.iv)(d||(d=(e=>e)`
|
||||
:host {
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
/* TODO (@jouni): remove unnecessary multiplication after https://github.com/vaadin/vaadin-overlay/issues/90 is fixed */
|
||||
bottom: calc(1px * var(--vaadin-overlay-viewport-bottom) + 16px);
|
||||
left: 16px;
|
||||
}
|
||||
|
||||
[part='overlay'] {
|
||||
background-color: var(--material-background-color);
|
||||
border-radius: 4px;
|
||||
box-shadow: var(--material-shadow-elevation-4dp);
|
||||
color: var(--material-body-text-color);
|
||||
font-family: var(--material-font-family);
|
||||
font-size: var(--material-body-font-size);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
[part='content'] {
|
||||
padding: 8px 0;
|
||||
}
|
||||
|
||||
[part='backdrop'] {
|
||||
opacity: 0.2;
|
||||
animation: 0.2s vaadin-overlay-backdrop-enter;
|
||||
will-change: opacity;
|
||||
}
|
||||
|
||||
@keyframes vaadin-overlay-backdrop-enter {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
`));(0,s.hC)("",h,{moduleId:"material-overlay"});const c=h;(0,s.hC)("",c,{moduleId:"material-menu-overlay"});var u=i("20087");let _,p,m,f=e=>e;const g=(0,u.iv)(_||(_=f`
|
||||
[part='overlay'] {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
[part='content'] {
|
||||
padding: 0;
|
||||
}
|
||||
`)),y=(0,u.iv)(p||(p=f`
|
||||
[part~='loader'] {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
top: -2px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
`));(0,u.hC)("vaadin-combo-box-overlay",[c,g,r,y,(0,u.iv)(m||(m=f`
|
||||
:host {
|
||||
--_vaadin-combo-box-items-container-border-width: 8px 0;
|
||||
--_vaadin-combo-box-items-container-border-style: solid;
|
||||
}
|
||||
`))],{moduleId:"material-combo-box-overlay"})},40029:function(e,t,i){i.d(t,{Wc:function(){return a},YA:function(){return h},rs:function(){return l},t$:function(){return d}});i(52247),i(92745),i(85664);let s=0,n=0;const r=[];let o=!1;const a={after(e){return{run(t){return window.setTimeout(t,e)},cancel(e){window.clearTimeout(e)}}},run(e,t){return window.setTimeout(e,t)},cancel(e){window.clearTimeout(e)}},l={run(e){return window.requestAnimationFrame(e)},cancel(e){window.cancelAnimationFrame(e)}},d={run(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},h={run(e){o||(o=!0,queueMicrotask((()=>function(){o=!1;const e=r.length;for(let i=0;i<e;i++){const e=r[i];if(e)try{e()}catch(t){setTimeout((()=>{throw t}))}}r.splice(0,e),n+=e}()))),r.push(e);const t=s;return s+=1,t},cancel(e){const t=e-n;if(t>=0){if(!r[t])throw new Error(`invalid async handle: ${e}`);r[t]=null}}}},90850:function(e,t,i){i.d(t,{G6:function(){return a},T:function(){return l},gn:function(){return o}});i(19134),i(5740);const s=e=>e.test(navigator.userAgent),n=e=>e.test(navigator.platform);s(/Android/),s(/Chrome/)&&/Google Inc/.test(navigator.vendor);s(/Firefox/);const r=n(/^iPad/)||n(/^Mac/)&&navigator.maxTouchPoints>1,o=n(/^iPhone/)||r,a=s(/^((?!chrome|android)(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))*[s\u017F]afari/i),l=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}})();window.ShadowRoot&&"adoptedStyleSheets"in Document.prototype&&CSSStyleSheet.prototype},48001:function(e,t,i){i.d(t,{k:function(){return s}});i(71695),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(39527),i(41360),i(47021);const s=(0,i(19883).o)((e=>"function"==typeof e.prototype.addController?e:class extends e{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((e=>{e.hostConnected&&e.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((e=>{e.hostDisconnected&&e.hostDisconnected()}))}addController(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}))},41353:function(e,t,i){i.d(t,{Ex:function(){return r},dx:function(){return n},yl:function(){return a}});i(71695),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(39527),i(41360),i(47021);const s=new Set;class n{static debounce(e,t,i){return e instanceof n?e._cancelAsync():e=new n,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run((()=>{this._timer=null,s.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),s.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function r(e){s.add(e)}function o(){const e=Boolean(s.size);return s.forEach((e=>{try{e.flush()}catch(t){setTimeout((()=>{throw t}))}})),e}const a=()=>{let e;do{e=o()}while(e)}},40701:function(e,t,i){i.d(t,{M:function(){return o}});var s,n;i(71695),i(19134),i(92519),i(42179),i(89256),i(24931),i(88463),i(57449),i(19814),i(97003),i(39527),i(41360),i(47021);(s=window).Vaadin||(s.Vaadin={}),(n=window.Vaadin).featureFlags||(n.featureFlags={});const r={};function o(e,t="24.6.2"){if(Object.defineProperty(e,"version",{get(){return t}}),e.experimental){const t="string"==typeof e.experimental?e.experimental:`${i=e.is.split("-").slice(1).join("-"),i.replace(/-[a-z]/g,(e=>e[1].toUpperCase()))}Component`;if(!window.Vaadin.featureFlags[t]&&!r[t])return r[t]=new Set,r[t].add(e),void Object.defineProperty(window.Vaadin.featureFlags,t,{get(){return 0===r[t].size},set(e){e&&r[t].size>0&&(r[t].forEach((e=>{customElements.define(e.is,e)})),r[t].clear())}});if(r[t])return void r[t].add(e)}var i;const s=customElements.get(e.is);if(s){const t=s.version;t&&e.version&&t===e.version?console.warn(`The component ${e.is} has been loaded twice`):console.error(`Tried to define ${e.is} version ${e.version} when version ${s.version} is already in use. Something will probably break.`)}else customElements.define(e.is,e)}},8058:function(e,t,i){i.d(t,{U:function(){return o}});i(19083),i(92745);const s=[];function n(e,t,i=e.getAttribute("dir")){t?e.setAttribute("dir",t):null!=i&&e.removeAttribute("dir")}function r(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const e=r();s.forEach((t=>{n(t,e)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const o=e=>class extends e{static get properties(){return{dir:{type:String,value:"",reflectT
Line truncated
|
||||
:host {
|
||||
/* Text colors */
|
||||
--material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));
|
||||
--material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));
|
||||
--material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));
|
||||
|
||||
/* Primary colors */
|
||||
--material-primary-color: var(--primary-color, #6200ee);
|
||||
--material-primary-contrast-color: var(--dark-theme-base-color, #fff);
|
||||
--material-primary-text-color: var(--material-primary-color);
|
||||
|
||||
/* Error colors */
|
||||
--material-error-color: var(--error-color, #b00020);
|
||||
--material-error-text-color: var(--material-error-color);
|
||||
|
||||
/* Background colors */
|
||||
--material-background-color: var(--light-theme-background-color, #fff);
|
||||
--material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);
|
||||
--material-disabled-color: rgba(0, 0, 0, 0.26);
|
||||
|
||||
/* Divider colors */
|
||||
--material-divider-color: rgba(0, 0, 0, 0.12);
|
||||
|
||||
/* Undocumented internal properties (prefixed with three dashes) */
|
||||
|
||||
/* Text field tweaks */
|
||||
--_material-text-field-input-line-background-color: initial;
|
||||
--_material-text-field-input-line-opacity: initial;
|
||||
--_material-text-field-input-line-hover-opacity: initial;
|
||||
--_material-text-field-focused-label-opacity: initial;
|
||||
|
||||
/* Button tweaks */
|
||||
--_material-button-raised-background-color: initial;
|
||||
--_material-button-outline-color: initial;
|
||||
|
||||
/* Grid tweaks */
|
||||
--_material-grid-row-hover-background-color: initial;
|
||||
|
||||
/* Split layout tweaks */
|
||||
--_material-split-layout-splitter-background-color: initial;
|
||||
|
||||
background-color: var(--material-background-color);
|
||||
color: var(--material-body-text-color);
|
||||
}
|
||||
|
||||
[theme~='dark'] {
|
||||
/* Text colors */
|
||||
--material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));
|
||||
--material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));
|
||||
--material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));
|
||||
|
||||
/* Primary colors */
|
||||
--material-primary-color: var(--light-primary-color, #7e3ff2);
|
||||
--material-primary-text-color: #b794f6;
|
||||
|
||||
/* Error colors */
|
||||
--material-error-color: var(--error-color, #de2839);
|
||||
--material-error-text-color: var(--material-error-color);
|
||||
|
||||
/* Background colors */
|
||||
--material-background-color: var(--dark-theme-background-color, #303030);
|
||||
--material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);
|
||||
--material-disabled-color: rgba(255, 255, 255, 0.3);
|
||||
|
||||
/* Divider colors */
|
||||
--material-divider-color: rgba(255, 255, 255, 0.12);
|
||||
|
||||
/* Undocumented internal properties (prefixed with three dashes) */
|
||||
|
||||
/* Text field tweaks */
|
||||
--_material-text-field-input-line-background-color: #fff;
|
||||
--_material-text-field-input-line-opacity: 0.7;
|
||||
--_material-text-field-input-line-hover-opacity: 1;
|
||||
--_material-text-field-focused-label-opacity: 1;
|
||||
|
||||
/* Button tweaks */
|
||||
--_material-button-raised-background-color: rgba(255, 255, 255, 0.08);
|
||||
--_material-button-outline-color: rgba(255, 255, 255, 0.2);
|
||||
|
||||
/* Grid tweaks */
|
||||
--_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);
|
||||
--_material-grid-row-selected-overlay-opacity: 0.16;
|
||||
|
||||
/* Split layout tweaks */
|
||||
--_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);
|
||||
|
||||
background-color: var(--material-background-color);
|
||||
color: var(--material-body-text-color);
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
`));(0,s.hC)("",d,{moduleId:"material-color-light"});const h=(0,s.iv)(o||(o=l`
|
||||
:host {
|
||||
/* Text colors */
|
||||
--material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));
|
||||
--material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));
|
||||
--material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));
|
||||
|
||||
/* Primary colors */
|
||||
--material-primary-color: var(--light-primary-color, #7e3ff2);
|
||||
--material-primary-text-color: #b794f6;
|
||||
|
||||
/* Error colors */
|
||||
--material-error-color: var(--error-color, #de2839);
|
||||
--material-error-text-color: var(--material-error-color);
|
||||
|
||||
/* Background colors */
|
||||
--material-background-color: var(--dark-theme-background-color, #303030);
|
||||
--material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);
|
||||
--material-disabled-color: rgba(255, 255, 255, 0.3);
|
||||
|
||||
/* Divider colors */
|
||||
--material-divider-color: rgba(255, 255, 255, 0.12);
|
||||
|
||||
/* Undocumented internal properties (prefixed with three dashes) */
|
||||
|
||||
/* Text field tweaks */
|
||||
--_material-text-field-input-line-background-color: #fff;
|
||||
--_material-text-field-input-line-opacity: 0.7;
|
||||
--_material-text-field-input-line-hover-opacity: 1;
|
||||
--_material-text-field-focused-label-opacity: 1;
|
||||
|
||||
/* Button tweaks */
|
||||
--_material-button-raised-background-color: rgba(255, 255, 255, 0.08);
|
||||
--_material-button-outline-color: rgba(255, 255, 255, 0.2);
|
||||
|
||||
/* Grid tweaks */
|
||||
--_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);
|
||||
--_material-grid-row-selected-overlay-opacity: 0.16;
|
||||
|
||||
/* Split layout tweaks */
|
||||
--_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);
|
||||
|
||||
background-color: var(--material-background-color);
|
||||
color: var(--material-body-text-color);
|
||||
}
|
||||
`));(0,s.hC)("",h,{moduleId:"material-color-dark"});const c=(0,s.iv)(a||(a=l`
|
||||
:host {
|
||||
/* Text colors */
|
||||
--material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));
|
||||
--material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));
|
||||
--material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));
|
||||
|
||||
/* Primary colors */
|
||||
--material-primary-color: var(--primary-color, #6200ee);
|
||||
--material-primary-contrast-color: var(--dark-theme-base-color, #fff);
|
||||
--material-primary-text-color: var(--material-primary-color);
|
||||
|
||||
/* Error colors */
|
||||
--material-error-color: var(--error-color, #b00020);
|
||||
--material-error-text-color: var(--material-error-color);
|
||||
|
||||
/* Background colors */
|
||||
--material-background-color: var(--light-theme-background-color, #fff);
|
||||
--material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);
|
||||
--material-disabled-color: rgba(0, 0, 0, 0.26);
|
||||
|
||||
/* Divider colors */
|
||||
--material-divider-color: rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
`));(0,n.I)("color-base",c)},68305:function(e,t,i){i.d(t,{I:()=>s});i("19134"),i("11740"),i("97003"),i("13334"),i("7930");const s=(e,...t)=>{((e,...t)=>{const i=document.createElement("style");i.id=e,i.textContent=t.map((e=>e.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)})(`material-${e}`,t)}},7930:function(e,t,i){i.d(t,{iv:()=>s.iv,hC:()=>_});i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("19134"),i("5740"),i("11740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("13334"),i("36993"),i("47021");var s=i("57243");const n=[],r=new Set,o=new Set;function a(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function l(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function d(e){return e.map((e=>e.cssText)).join("\n")}const h="vaadin-themable-mixin-style";function c(e){r.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(h),s=t.prototype._template;i.textContent=s.content.getElementById(h).textContent}}(i):i||r.delete(t)}))}function u(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(h).textContent=d(e.getStylesForThis())}o.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&u(i)}))}function _(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):n.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&o.forEach((i=>{if(l(e,i)&&function(e){return a(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),u(e),c(e)}}))}},88039:function(e,t,i){var s=i(40701);class n extends HTMLElement{static get is(){return"vaadin-material-styles"}}(0,s.M)(n)},75662:function(e,t,i){i.d(t,{hC:()=>_});i("19134"),i("11740"),i("97003"),i("13334"),i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("5740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("36993"),i("47021");var s=i("57243");const n=[],r=new Set,o=new Set;function a(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function l(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function d(e){return e.map((e=>e.cssText)).join("\n")}const h="vaadin-themable-mixin-style";function c(e){r.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(h),s=t.prototype._template;i.textContent=s.content.getElementById(h).textContent}}(i):i||r.delete(t)}))}function u(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(h).textContent=d(e.getStylesForThis())}o.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&u(i)}))}function _(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):n.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&o.forEach((i=>{if(l(e,i)&&function(e){return a(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules beforLine truncated
|
||||
//# sourceMappingURL=6931.6e4eddca80c27864.js.map
|
||||
Reference in new issue
Block a user