@covalent/components 1.0.13 → 4.8.1
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/actionRibbon.js +16 -0
- package/actionRibbon.js.LICENSE.txt +75 -0
- package/alert.js +19 -0
- package/alert.js.LICENSE.txt +75 -0
- package/appShell.js +94 -0
- package/appShell.js.LICENSE.txt +131 -0
- package/button.js +38 -0
- package/button.js.LICENSE.txt +91 -0
- package/checkbox.js +40 -0
- package/checkbox.js.LICENSE.txt +91 -0
- package/circularProgress.js +58 -0
- package/circularProgress.js.LICENSE.txt +41 -0
- package/dialog.js +28 -0
- package/dialog.js.LICENSE.txt +165 -0
- package/drawer.js +18 -0
- package/drawer.js.LICENSE.txt +90 -0
- package/emptyState.js +25 -0
- package/emptyState.js.LICENSE.txt +29 -0
- package/formField.js +7 -0
- package/formField.js.LICENSE.txt +61 -0
- package/icon.js +2 -0
- package/icon.js.LICENSE.txt +29 -0
- package/iconButton.js +26 -0
- package/iconButton.js.LICENSE.txt +85 -0
- package/iconCheckbox.js +51 -0
- package/iconCheckbox.js.LICENSE.txt +91 -0
- package/iconRadio.js +43 -0
- package/iconRadio.js.LICENSE.txt +85 -0
- package/{covalent-icons/lib/icons/covalent-icons → icons}/covalent-icons.css +138 -114
- package/{covalent-icons/lib/icons/covalent-icons → icons}/covalent-icons.eot +0 -0
- package/{covalent-icons/lib/icons/covalent-icons → icons}/covalent-icons.svg +6 -1
- package/{covalent-icons/lib/icons/covalent-icons → icons}/covalent-icons.ttf +0 -0
- package/{covalent-icons/lib/icons/covalent-icons → icons}/covalent-icons.woff +0 -0
- package/icons/favicon.ico +0 -0
- package/index.js +851 -594
- package/index.js.LICENSE.txt +206 -0
- package/linearProgress.js +28 -0
- package/linearProgress.js.LICENSE.txt +41 -0
- package/list.js +44 -0
- package/list.js.LICENSE.txt +125 -0
- package/listExpansion.js +61 -0
- package/listExpansion.js.LICENSE.txt +125 -0
- package/listItem.js +27 -0
- package/listItem.js.LICENSE.txt +79 -0
- package/listRadioItem.js +70 -0
- package/listRadioItem.js.LICENSE.txt +85 -0
- package/menu.js +83 -0
- package/menu.js.LICENSE.txt +125 -0
- package/package.json +14 -5
- package/radio.js +33 -0
- package/radio.js.LICENSE.txt +85 -0
- package/select.js +176 -0
- package/select.js.LICENSE.txt +131 -0
- package/slider.js +63 -0
- package/slider.js.LICENSE.txt +108 -0
- package/sliderRange.js +113 -0
- package/sliderRange.js.LICENSE.txt +108 -0
- package/snackBar.js +12 -0
- package/snackBar.js.LICENSE.txt +85 -0
- package/styles.css +1 -0
- package/styles.js +1 -0
- package/switch.js +63 -0
- package/switch.js.LICENSE.txt +108 -0
- package/tab.js +35 -0
- package/tab.js.LICENSE.txt +79 -0
- package/tabBar.js +53 -0
- package/tabBar.js.LICENSE.txt +79 -0
- package/textArea.js +96 -0
- package/textArea.js.LICENSE.txt +85 -0
- package/textField.js +69 -0
- package/textField.js.LICENSE.txt +85 -0
- package/theme.css +1 -0
- package/theme.js +1 -0
- package/toolbar.js +39 -0
- package/toolbar.js.LICENSE.txt +96 -0
- package/topAppBar.js +19 -0
- package/topAppBar.js.LICENSE.txt +102 -0
- package/topAppBarFixed.js +19 -0
- package/topAppBarFixed.js.LICENSE.txt +102 -0
- package/treeList.js +8 -0
- package/treeList.js.LICENSE.txt +17 -0
- package/treeListItem.js +24 -0
- package/treeListItem.js.LICENSE.txt +23 -0
- package/components/action-ribbon/action-ribbon-base.d.ts +0 -30
- package/components/action-ribbon/action-ribbon-base.d.ts.map +0 -1
- package/components/action-ribbon/action-ribbon.component.d.ts +0 -15
- package/components/action-ribbon/action-ribbon.component.d.ts.map +0 -1
- package/components/action-ribbon/foundation.d.ts +0 -53
- package/components/action-ribbon/foundation.d.ts.map +0 -1
- package/components/app-shell/app-shell.component.d.ts +0 -27
- package/components/app-shell/app-shell.component.d.ts.map +0 -1
- package/components/button/button.component.d.ts +0 -10
- package/components/button/button.component.d.ts.map +0 -1
- package/components/index.d.ts +0 -6
- package/components/index.d.ts.map +0 -1
- package/components/list/td-list-expansion.component.d.ts +0 -14
- package/components/list/td-list-expansion.component.d.ts.map +0 -1
- package/components/list/td-list-item.component.d.ts +0 -12
- package/components/list/td-list-item.component.d.ts.map +0 -1
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.css +0 -338
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.eot +0 -0
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.svg +0 -217
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.ttf +0 -0
- package/teradata-icons/lib/icons/teradata-icons/teradata-icons.woff +0 -0
package/actionRibbon.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
/*! For license information please see actionRibbon.js.LICENSE.txt */
|
2
|
+
(()=>{"use strict";var t={1996:(t,e,n)=>{n.d(e,{GB:()=>i,KT:()=>s,U3:()=>a,UX:()=>o,wl:()=>c});var i,r,o={CLOSING:"mdc-banner--closing",OPEN:"mdc-banner--open",OPENING:"mdc-banner--opening"},s={BANNER_ANIMATION_CLOSE_TIME_MS:250,BANNER_ANIMATION_OPEN_TIME_MS:300},a={CLOSED:"MDCBanner:closed",CLOSING:"MDCBanner:closing",OPENED:"MDCBanner:opened",OPENING:"MDCBanner:opening",ACTION_CLICKED:"MDCBanner:actionClicked"},c={CONTENT:".mdc-banner__content",PRIMARY_ACTION:".mdc-banner__primary-action",SECONDARY_ACTION:".mdc-banner__secondary-action",TEXT:".mdc-banner__text"};!function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SECONDARY=1]="SECONDARY",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(i||(i={})),function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SECONDARY=1]="SECONDARY",t[t.UNKNOWN=2]="UNKNOWN"}(r||(r={}))},6308:(t,e,n)=>{n.d(e,{K:()=>i});var i=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}()},7392:(t,e,n)=>{n.d(e,{H:()=>o,q:()=>r.qN});var i=n(5862),r=n(5610);class o extends i.oi{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},6551:(t,e,n)=>{n.d(e,{P:()=>i});const i=t=>(e,n)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,n)=>e.constructor._observers.set(n,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const n=this.constructor._observers.get(e);void 0!==n&&n.call(this,this[e],t)}))}}e.constructor._observers.set(n,t)}},5610:(t,e,n)=>{function i(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}n.d(e,{qN:()=>i});let r=!1;const o=()=>{},s={get passive(){return r=!0,!1}};document.addEventListener("x",o,s),document.removeEventListener("x",o)},3727:(t,e,n)=>{n.d(e,{Z:()=>d});var i=n(6308),r=n(1996);const{OPENING:o,OPEN:s,CLOSING:a}=r.UX;class c extends i.K{constructor(t){super(Object.assign(Object.assign({},c.defaultAdapter),t)),this.isOpened=!1,this.animationFrame=0,this.animationTimer=0}static get defaultAdapter(){return{addClass:()=>{},getContentHeight:()=>0,notifyActionClicked:()=>{},notifyClosed:()=>{},notifyClosing:()=>{},notifyOpened:()=>{},notifyOpening:()=>{},releaseFocus:()=>{},removeClass:()=>{},setStyleProperty:()=>{},trapFocus:()=>{}}}destroy(){cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0}open(){this.isOpened=!0,this.adapter.notifyOpening(),this.adapter.removeClass(a),this.adapter.addClass(o);const t=this.adapter.getContentHeight();this.animationFrame=requestAnimationFrame((()=>{this.adapter.addClass(s),this.adapter.setStyleProperty("height",`${t}px`),this.animationTimer=setTimeout((()=>{this.handleAnimationTimerEnd(),this.adapter.trapFocus(),this.adapter.notifyOpened()}),r.KT.BANNER_ANIMATION_OPEN_TIME_MS)}))}close(t){this.isOpened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.isOpened=!1,this.adapter.notifyClosing(t),this.adapter.addClass(a),this.adapter.setStyleProperty("height","0"),this.adapter.removeClass(s),this.adapter.removeClass(o),clearTimeout(this.animationTimer),this.animationTimer=setTimeout((()=>{this.adapter.releaseFocus(),this.handleAnimationTimerEnd(),this.adapter.notifyClosed(t)}),r.KT.BANNER_ANIMATION_CLOSE_TIME_MS))}isOpen(){return this.isOpened}handlePrimaryActionClick(){this.close(r.GB.PRIMARY)}handleSecondaryActionClick(){this.close(r.GB.SECONDARY)}layout(){const t=this.adapter.getContentHeight();console.log("he",t),this.adapter.setStyleProperty("height",`${t}px`)}handleAnimationTimerEnd(){this.animationTimer=0,this.adapter.removeClass(o),this.adapter.removeClass(a)}}const d=c},655:(t,e,n)=>{function i(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function r(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}n.d(e,{gn:()=>i,w6:()=>r}),Object.create,Object.create},8701:(t,e,n)=>{n.d(e,{ec:()=>d,i1:()=>l,iv:()=>c});const i=window,r=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),s=new WeakMap;class a{constructor(t,e,n){if(this._$cssResult$=!0,n!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&s.set(e,t))}return t}toString(){return this.cssText}}const c=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new a(n,t,o)},d=(t,e)=>{r?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=i.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))},l=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,o))(e)})(t):t},5674:(t,e,n)=>{n.d(e,{eZ:()=>i});const i=({finisher:t,descriptor:e})=>(n,i)=>{var r;if(void 0===i){const i=null!==(r=n.originalKey)&&void 0!==r?r:n.key,o=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(n.key)}:{...n,key:i};return null!=t&&(o.finisher=function(e){t(e,i)}),o}{const r=n.constructor;void 0!==e&&Object.defineProperty(n,i,e(i)),null==t||t(r,i)}}},5713:(t,e,n)=>{n.d(e,{M:()=>i});const i=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:n,elements:i}=e;return{kind:n,elements:i,finisher(e){customElements.define(t,e)}}})(t,e)},760:(t,e,n)=>{n.d(e,{C:()=>r});const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function r(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):i(t,e)}},7935:(t,e,n)=>{var i;null===(i=window.HTMLSlotElement)||void 0===i||i.prototype.assignedElements},43:(t,e,n)=>{n(7935)},2669:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(5674);function r(t,e){return(0,i.eZ)({descriptor:n=>{const i={get(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof n?Symbol():"__"+n;i.get=function(){var n,i;return void 0===this[e]&&(this[e]=null!==(i=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(t))&&void 0!==i?i:null),this[e]}}return i}})}},8732:(t,e,n)=>{n.d(e,{fl:()=>p,iv:()=>r.iv});var i,r=n(8701);const o=window,s=o.trustedTypes,a=s?s.emptyScript:"",c=o.reactiveElementPolyfillSupport,d={toAttribute(t,e){switch(e){case Boolean:t=t?a:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},l=(t,e)=>e!==t&&(e==e||t==t),h={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:l};class p extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const i=this._$Ep(n,e);void 0!==i&&(this._$Ev.set(i,n),t.push(i))})),t}static createProperty(t,e=h){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||h}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift((0,r.i1)(t))}else void 0!==t&&e.push((0,r.i1)(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return(0,r.ec)(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=h){var i;const r=this.constructor._$Ep(t,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:d).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:d;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let i=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||l)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}p.finalized=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==c||c({ReactiveElement:p}),(null!==(i=o.reactiveElementVersions)&&void 0!==i?i:o.reactiveElementVersions=[]).push("1.4.0")},8922:(t,e,n)=>{n.d(e,{dy:()=>s.dy,iv:()=>o.iv,oi:()=>a});var i,r,o=n(8732),s=n(3692);class a extends o.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,s.sY)(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return s.Jb}}a.finalized=!0,a._$litElement$=!0,null===(i=globalThis.litElementHydrateSupport)||void 0===i||i.call(globalThis,{LitElement:a});const c=globalThis.litElementPolyfillSupport;null==c||c({LitElement:a}),(null!==(r=globalThis.litElementVersions)&&void 0!==r?r:globalThis.litElementVersions=[]).push("3.2.2")},875:(t,e,n)=>{n.d(e,{XM:()=>r,Xe:()=>o,pX:()=>i});const i={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},r=t=>(...e)=>({_$litDirective$:t,values:e});class o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},7499:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(3692),r=n(875);const o=(0,r.XM)(class extends r.Xe{constructor(t){var e;if(super(t),t.type!==r.pX.ATTRIBUTE||"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 n,r;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.nt.add(t);return this.render(e)}const o=t.element.classList;this.nt.forEach((t=>{t in e||(o.remove(t),this.nt.delete(t))}));for(const t in e){const n=!!e[t];n===this.nt.has(t)||(null===(r=this.st)||void 0===r?void 0:r.has(t))||(n?(o.add(t),this.nt.add(t)):(o.remove(t),this.nt.delete(t)))}return i.Jb}})},3692:(t,e,n)=>{var i;n.d(e,{Jb:()=>E,dy:()=>A,sY:()=>S});const r=window,o=r.trustedTypes,s=o?o.createPolicy("lit-html",{createHTML:t=>t}):void 0,a=`lit$${(Math.random()+"").slice(9)}$`,c="?"+a,d=`<${c}>`,l=document,h=(t="")=>l.createComment(t),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,u=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,_=/>/g,v=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),g=/'/g,f=/"/g,y=/^(?:script|style|textarea|title)$/i,$=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),A=$(1),E=($(2),Symbol.for("lit-noChange")),x=Symbol.for("lit-nothing"),C=new WeakMap,S=(t,e,n)=>{var i,r;const o=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new R(e.insertBefore(h(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s},O=l.createTreeWalker(l,129,null,!1),w=(t,e)=>{const n=t.length-1,i=[];let r,o=2===e?"<svg>":"",c=u;for(let e=0;e<n;e++){const n=t[e];let s,l,h=-1,p=0;for(;p<n.length&&(c.lastIndex=p,l=c.exec(n),null!==l);)p=c.lastIndex,c===u?"!--"===l[1]?c=b:void 0!==l[1]?c=_:void 0!==l[2]?(y.test(l[2])&&(r=RegExp("</"+l[2],"g")),c=v):void 0!==l[3]&&(c=v):c===v?">"===l[0]?(c=null!=r?r:u,h=-1):void 0===l[1]?h=-2:(h=c.lastIndex-l[2].length,s=l[1],c=void 0===l[3]?v:'"'===l[3]?f:g):c===f||c===g?c=v:c===b||c===_?c=u:(c=v,r=void 0);const m=c===v&&t[e+1].startsWith("/>")?" ":"";o+=c===u?n+d:h>=0?(i.push(s),n.slice(0,h)+"$lit$"+n.slice(h)+a+m):n+a+(-2===h?(i.push(void 0),e):m)}const l=o+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s?s.createHTML(l):l,i]};class N{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const d=t.length-1,l=this.parts,[p,m]=w(t,e);if(this.el=N.createElement(p,n),O.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=O.nextNode())&&l.length<d;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(a)){const n=m[s++];if(t.push(e),void 0!==n){const t=i.getAttribute(n.toLowerCase()+"$lit$").split(a),e=/([.?@])?(.*)/.exec(n);l.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?I:"?"===e[1]?U:"@"===e[1]?H:k})}else l.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(y.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=o?o.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],h()),O.nextNode(),l.push({type:2,index:++r});i.append(t[e],h())}}}else if(8===i.nodeType)if(i.data===c)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)l.push({type:7,index:r}),t+=a.length-1}r++}}static createElement(t,e){const n=l.createElement("template");return n.innerHTML=t,n}}function P(t,e,n=t,i){var r,o,s,a;if(e===E)return e;let c=void 0!==i?null===(r=n._$Cl)||void 0===r?void 0:r[i]:n._$Cu;const d=p(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==d&&(null===(o=null==c?void 0:c._$AO)||void 0===o||o.call(c,!1),void 0===d?c=void 0:(c=new d(t),c._$AT(t,n,i)),void 0!==i?(null!==(s=(a=n)._$Cl)&&void 0!==s?s:a._$Cl=[])[i]=c:n._$Cu=c),void 0!==c&&(e=P(t,c._$AS(t,e.values),c,i)),e}class T{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:n},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:l).importNode(n,!0);O.currentNode=r;let o=O.nextNode(),s=0,a=0,c=i[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new R(o,o.nextSibling,this,t):1===c.type?e=new c.ctor(o,c.name,c.strings,this,t):6===c.type&&(e=new L(o,this,t)),this.v.push(e),c=i[++a]}s!==(null==c?void 0:c.index)&&(o=O.nextNode(),s++)}return r}m(t){let e=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class R{constructor(t,e,n,i){var r;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$C_=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}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=P(this,t,e),p(t)?t===x||null==t||""===t?(this._$AH!==x&&this._$AR(),this._$AH=x):t!==this._$AH&&t!==E&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>m(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==x&&p(this._$AH)?this._$AA.nextSibling.data=t:this.k(l.createTextNode(t)),this._$AH=t}T(t){var e;const{values:n,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=N.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(n);else{const t=new T(r,this),e=t.p(this.options);t.m(n),this.k(e),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new N(t)),e}O(t){m(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new R(this.S(h()),this.S(h()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class k{constructor(t,e,n,i,r){this.type=1,this._$AH=x,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=x}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(void 0===r)t=P(this,t,e,0),o=!p(t)||t!==this._$AH&&t!==E,o&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=P(this,i[n+s],e,s),a===E&&(a=this._$AH[s]),o||(o=!p(a)||a!==this._$AH[s]),a===x?t=x:t!==x&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!i&&this.P(t)}P(t){t===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class I extends k{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===x?void 0:t}}const M=o?o.emptyScript:"";class U extends k{constructor(){super(...arguments),this.type=4}P(t){t&&t!==x?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class H extends k{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=P(this,t,e,0))&&void 0!==n?n:x)===E)return;const i=this._$AH,r=t===x&&i!==x||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==x&&(i===x||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class L{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){P(this,t)}}const D=r.litHtmlPolyfillSupport;null==D||D(N,R),(null!==(i=r.litHtmlVersions)&&void 0!==i?i:r.litHtmlVersions=[]).push("2.3.0")},9662:(t,e,n)=>{n.d(e,{Cb:()=>r.C,IO:()=>o.I,Mo:()=>i.M});var i=n(5713),r=n(760),o=n(2669);n(7935),n(43)},8810:(t,e,n)=>{n.d(e,{$:()=>i.$});var i=n(7499)},5862:(t,e,n)=>{n.d(e,{dy:()=>i.dy,iv:()=>i.iv,oi:()=>i.oi}),n(8732),n(3692);var i=n(8922)}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(655),e=n(9662),i=n(7392),r=n(6551),o=n(1996),s=n(3727),a=n(5862),c=n(8810);class d extends i.H{constructor(){super(...arguments),this.mdcFoundationClass=s.Z,this.open=!0,this.labelText="",this.icon="",this.centered=!0,this.reason=o.GB.UNSPECIFIED}render(){const t={"mdc-banner":!0,negative:"negative"===this.state,positive:"positive"===this.state,caution:"caution"===this.state,active:"active"===this.state,"mdc-banner--centered":this.centered};return a.dy` <div class="${(0,c.$)(t)}" role="banner">
|
3
|
+
<div class="mdc-banner__content" role="alertdialog" aria-live="assertive">
|
4
|
+
<div class="mdc-banner__graphic-text-wrapper">
|
5
|
+
${this.icon?this.renderIcon():""}
|
6
|
+
<div class="mdc-banner__text">${this.labelText}</div>
|
7
|
+
</div>
|
8
|
+
<div class="mdc-banner__actions">
|
9
|
+
<slot name="action-items"></slot>
|
10
|
+
</div>
|
11
|
+
</div>
|
12
|
+
</div>`}renderIcon(){return a.dy` <div class="mdc-banner__graphic" role="img" alt="">
|
13
|
+
<slot name="icon">
|
14
|
+
<td-icon class="mdc-banner__icon"> ${this.icon} </td-icon>
|
15
|
+
</slot>
|
16
|
+
</div>`}createAdapter(){return Object.assign(Object.assign({},(0,i.q)(this.mdcRoot)),{getContentHeight:()=>this.mdcContent.offsetHeight,setStyleProperty:(t,e)=>this.mdcRoot.style.setProperty(t,e),trapFocus:()=>{var t;return null===(t=this.primaryActionEl)||void 0===t?void 0:t.focus()},releaseFocus:()=>{var t;return null===(t=this.primaryActionEl)||void 0===t?void 0:t.blur()},notifyActionClicked:t=>this.dispatchEvent(new CustomEvent(o.U3.ACTION_CLICKED,{bubbles:!0,cancelable:!0,detail:{reason:t}})),notifyClosed:t=>this.dispatchEvent(new CustomEvent(o.U3.CLOSED,{bubbles:!0,cancelable:!0,detail:{reason:t}})),notifyClosing:t=>this.dispatchEvent(new CustomEvent(o.U3.CLOSING,{bubbles:!0,cancelable:!0,detail:{reason:t}})),notifyOpened:()=>this.dispatchEvent(new CustomEvent(o.U3.OPENED,{bubbles:!0,cancelable:!0})),notifyOpening:()=>this.dispatchEvent(new CustomEvent(o.U3.OPENING,{bubbles:!0,cancelable:!0}))})}show(){this.open=!0}close(t=o.GB.UNSPECIFIED){this.reason=t,this.open=!1}firstUpdated(){super.firstUpdated(),this.open&&this.mdcFoundation.open()}}(0,t.gn)([(0,e.IO)(".mdc-banner"),(0,t.w6)("design:type",HTMLElement)],d.prototype,"mdcRoot",void 0),(0,t.gn)([(0,e.IO)(o.wl.CONTENT),(0,t.w6)("design:type",HTMLElement)],d.prototype,"mdcContent",void 0),(0,t.gn)([(0,e.IO)(o.wl.PRIMARY_ACTION),(0,t.w6)("design:type",HTMLElement)],d.prototype,"primaryActionEl",void 0),(0,t.gn)([(0,e.Cb)({type:Boolean,reflect:!0}),(0,r.P)((function(t){this.mdcFoundation&&(t?this.mdcFoundation.open():(this.mdcFoundation.close(this.reason),this.reason=o.GB.UNSPECIFIED))})),(0,t.w6)("design:type",Object)],d.prototype,"open",void 0),(0,t.gn)([(0,e.Cb)({type:String}),(0,t.w6)("design:type",Object)],d.prototype,"labelText",void 0),(0,t.gn)([(0,e.Cb)({type:String}),(0,t.w6)("design:type",Object)],d.prototype,"icon",void 0),(0,t.gn)([(0,e.Cb)({type:Boolean}),(0,t.w6)("design:type",Object)],d.prototype,"centered",void 0),(0,t.gn)([(0,e.Cb)(),(0,t.w6)("design:type",String)],d.prototype,"state",void 0);const l=a.iv`.mdc-banner__graphic{color:#fff;color:var(--mdc-theme-surface,#fff)}.mdc-banner__graphic{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee)}.mdc-banner__content,.mdc-banner__fixed{min-width:344px}@media(max-width:480px),(max-width:344px){.mdc-banner__content,.mdc-banner__fixed{min-width:100%}}.mdc-banner__content{max-width:720px}.mdc-banner{z-index:1;border-bottom-style:solid;box-sizing:border-box;display:none;flex-shrink:0;height:0;position:relative;width:100%}@media(max-width:480px){.mdc-banner .mdc-banner__fixed{left:0;right:0}.mdc-banner .mdc-banner__text{margin-left:16px;margin-right:36px}.mdc-banner .mdc-banner__text[dir=rtl],[dir=rtl] .mdc-banner .mdc-banner__text{margin-left:36px;margin-right:16px}}@media(max-width:480px){.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__content{flex-wrap:wrap}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__graphic{margin-bottom:12px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:16px;margin-right:8px;padding-bottom:4px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text[dir=rtl],[dir=rtl] .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:8px;margin-right:16px}.mdc-banner.mdc-banner--mobile-stacked .mdc-banner__actions{margin-left:auto}}.mdc-banner--closing,.mdc-banner--open,.mdc-banner--opening{display:flex}.mdc-banner--open{transition:height .3s ease}.mdc-banner--open .mdc-banner__content{transition:transform .3s ease;transform:translateY(0)}.mdc-banner--closing{transition:height 250ms ease}.mdc-banner--closing .mdc-banner__content{transition:transform 250ms ease}.mdc-banner--centered .mdc-banner__content{left:0;margin-left:auto;margin-right:auto;right:0}.mdc-banner__fixed{border-bottom-style:solid;box-sizing:border-box;height:inherit;position:fixed;width:100%}.mdc-banner__content{display:flex;min-height:52px;position:absolute;transform:translateY(-100%);width:100%}.mdc-banner__graphic-text-wrapper{display:flex;width:100%}.mdc-banner__graphic{margin-left:16px;margin-right:0;flex-shrink:0;margin-top:16px;margin-bottom:16px;text-align:center}.mdc-banner__graphic[dir=rtl],[dir=rtl] .mdc-banner__graphic{margin-left:0;margin-right:16px}.mdc-banner__icon{position:relative;top:50%;transform:translateY(-50%)}.mdc-banner__text{margin-left:24px;margin-right:90px;align-self:center;flex-grow:1;padding-top:16px;padding-bottom:16px}.mdc-banner__text[dir=rtl],[dir=rtl] .mdc-banner__text{margin-left:90px;margin-right:24px}.mdc-banner__actions{padding-left:0;padding-right:8px;align-self:flex-end;display:flex;flex-shrink:0;padding-bottom:8px;padding-top:8px}.mdc-banner__actions[dir=rtl],[dir=rtl] .mdc-banner__actions{padding-left:8px;padding-right:0}.mdc-banner__secondary-action{margin-left:0;margin-right:8px}.mdc-banner__secondary-action[dir=rtl],[dir=rtl] .mdc-banner__secondary-action{margin-left:8px;margin-right:0}.mdc-banner{background-color:#fff;border-bottom-color:rgba(0,0,0,.12);border-bottom-width:1px;border-radius:0}.mdc-banner .mdc-banner__text{color:#000}.mdc-banner .mdc-banner__text{letter-spacing:.0178571429em;font-size:.875rem;font-family:Roboto,sans-serif;font-weight:400;line-height:1.25rem}.mdc-banner .mdc-banner__graphic{border-radius:50%}.mdc-banner .mdc-banner__graphic{height:40px;width:40px}.mdc-banner .mdc-banner__fixed{background-color:#fff}.mdc-banner .mdc-banner__fixed{border-bottom-color:rgba(0,0,0,.12)}.mdc-banner .mdc-banner__fixed{border-bottom-width:1px}.mdc-banner .mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-text-button-label-text-color,#6200ee)}.mdc-banner .mdc-button .mdc-button__ripple::after,.mdc-banner .mdc-button .mdc-button__ripple::before{background-color:#6200ee;background-color:var(--mdc-text-button-hover-state-layer-color,#6200ee)}.mdc-banner .mdc-button.mdc-ripple-surface--hover .mdc-button__ripple::before,.mdc-banner .mdc-button:hover .mdc-button__ripple::before{opacity:.04;opacity:var(--mdc-text-button-hover-state-layer-opacity,.04)}.mdc-banner .mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,.mdc-banner .mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-text-button-focus-state-layer-opacity,.12)}.mdc-banner .mdc-button:not(.mdc-ripple-upgraded) .mdc-button__ripple::after{transition:opacity 150ms linear}.mdc-banner .mdc-button:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after{transition-duration:75ms;opacity:.1;opacity:var(--mdc-text-button-pressed-state-layer-opacity,.1)}.mdc-banner .mdc-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-text-button-pressed-state-layer-opacity, 0.1)}.mdc-banner__secondary-action{margin-left:0;margin-right:8px}.mdc-banner__secondary-action[dir=rtl],[dir=rtl] .mdc-banner__secondary-action{margin-left:8px;margin-right:0}.mdc-banner{--td-action-ribbon-background:transparent;background-color:var(--td-action-ribbon-background);overflow:hidden}.mdc-banner .mdc-banner__content{max-width:inherit}.mdc-banner .mdc-banner__graphic,.mdc-banner .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-neutral-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-text-icon-on-background);color:var(--mdc-theme-on-surface)}.mdc-banner .mdc-banner__text{--mdc-theme-on-surface:var(--mdc-theme-text-disabled-on-background);margin-left:16px;font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height)}.mdc-banner.caution{--td-action-ribbon-background:var(--mdc-theme-surface-caution-highlight)}.mdc-banner.caution .mdc-banner__graphic,.mdc-banner.caution .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-caution-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-caution)}.mdc-banner.negative{--td-action-ribbon-background:var( --mdc-theme-surface-negative-highlight )}.mdc-banner.negative .mdc-banner__graphic,.mdc-banner.negative .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-negative-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-error)}.mdc-banner.active{--td-action-ribbon-background:var( --mdc-theme-surface-secondary-highlight )}.mdc-banner.active .mdc-banner__graphic,.mdc-banner.active .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-secondary-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-secondary)}.mdc-banner.positive{--td-action-ribbon-background:var( --mdc-theme-surface-positive-highlight )}.mdc-banner.positive .mdc-banner__graphic,.mdc-banner.positive .mdc-banner__text{--mdc-theme-primary:var(--mdc-theme-surface-positive-highlight-hover);--mdc-theme-on-surface:var(--mdc-theme-positive)}::slotted(*){margin-left:8px}.mdc-banner__content{min-height:56px}.mdc-banner__graphic{background-color:rgba(0,0,0,0);margin-top:8px;margin-bottom:8px}.mdc-banner__actions{align-self:center}`;let h=class extends d{};h.styles=[l],h=(0,t.gn)([(0,e.Mo)("td-action-ribbon")],h)})()})();
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2016 Google Inc.
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
* @license
|
26
|
+
* Copyright 2017 Google LLC
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
28
|
+
*/
|
29
|
+
|
30
|
+
/**
|
31
|
+
* @license
|
32
|
+
* Copyright 2018 Google LLC
|
33
|
+
* SPDX-License-Identifier: Apache-2.0
|
34
|
+
*/
|
35
|
+
|
36
|
+
/**
|
37
|
+
* @license
|
38
|
+
* Copyright 2018 Google LLC
|
39
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
40
|
+
*/
|
41
|
+
|
42
|
+
/**
|
43
|
+
* @license
|
44
|
+
* Copyright 2019 Google LLC
|
45
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
46
|
+
*/
|
47
|
+
|
48
|
+
/**
|
49
|
+
* @license
|
50
|
+
* Copyright 2020 Google Inc.
|
51
|
+
*
|
52
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
53
|
+
* of this software and associated documentation files (the "Software"), to deal
|
54
|
+
* in the Software without restriction, including without limitation the rights
|
55
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
56
|
+
* copies of the Software, and to permit persons to whom the Software is
|
57
|
+
* furnished to do so, subject to the following conditions:
|
58
|
+
*
|
59
|
+
* The above copyright notice and this permission notice shall be included in
|
60
|
+
* all copies or substantial portions of the Software.
|
61
|
+
*
|
62
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
63
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
64
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
65
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
66
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
67
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
68
|
+
* THE SOFTWARE.
|
69
|
+
*/
|
70
|
+
|
71
|
+
/**
|
72
|
+
* @license
|
73
|
+
* Copyright 2021 Google LLC
|
74
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
75
|
+
*/
|
package/alert.js
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
/*! For license information please see alert.js.LICENSE.txt */
|
2
|
+
(()=>{"use strict";var t={1996:(t,e,n)=>{n.d(e,{GB:()=>i,KT:()=>s,U3:()=>a,UX:()=>o});var i,r,o={CLOSING:"mdc-banner--closing",OPEN:"mdc-banner--open",OPENING:"mdc-banner--opening"},s={BANNER_ANIMATION_CLOSE_TIME_MS:250,BANNER_ANIMATION_OPEN_TIME_MS:300},a={CLOSED:"MDCBanner:closed",CLOSING:"MDCBanner:closing",OPENED:"MDCBanner:opened",OPENING:"MDCBanner:opening",ACTION_CLICKED:"MDCBanner:actionClicked"};!function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SECONDARY=1]="SECONDARY",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(i||(i={})),function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SECONDARY=1]="SECONDARY",t[t.UNKNOWN=2]="UNKNOWN"}(r||(r={}))},6308:(t,e,n)=>{n.d(e,{K:()=>i});var i=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}()},7392:(t,e,n)=>{n.d(e,{H:()=>o,q:()=>r.qN});var i=n(5862),r=n(5610);class o extends i.oi{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}},6551:(t,e,n)=>{n.d(e,{P:()=>i});const i=t=>(e,n)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,n)=>e.constructor._observers.set(n,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const n=this.constructor._observers.get(e);void 0!==n&&n.call(this,this[e],t)}))}}e.constructor._observers.set(n,t)}},5610:(t,e,n)=>{function i(t){return{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)}}n.d(e,{qN:()=>i});let r=!1;const o=()=>{},s={get passive(){return r=!0,!1}};document.addEventListener("x",o,s),document.removeEventListener("x",o)},3727:(t,e,n)=>{n.d(e,{Z:()=>c});var i=n(6308),r=n(1996);const{OPENING:o,OPEN:s,CLOSING:a}=r.UX;class d extends i.K{constructor(t){super(Object.assign(Object.assign({},d.defaultAdapter),t)),this.isOpened=!1,this.animationFrame=0,this.animationTimer=0}static get defaultAdapter(){return{addClass:()=>{},getContentHeight:()=>0,notifyActionClicked:()=>{},notifyClosed:()=>{},notifyClosing:()=>{},notifyOpened:()=>{},notifyOpening:()=>{},releaseFocus:()=>{},removeClass:()=>{},setStyleProperty:()=>{},trapFocus:()=>{}}}destroy(){cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0}open(){this.isOpened=!0,this.adapter.notifyOpening(),this.adapter.removeClass(a),this.adapter.addClass(o);const t=this.adapter.getContentHeight();this.animationFrame=requestAnimationFrame((()=>{this.adapter.addClass(s),this.adapter.setStyleProperty("height",`${t}px`),this.animationTimer=setTimeout((()=>{this.handleAnimationTimerEnd(),this.adapter.trapFocus(),this.adapter.notifyOpened()}),r.KT.BANNER_ANIMATION_OPEN_TIME_MS)}))}close(t){this.isOpened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.isOpened=!1,this.adapter.notifyClosing(t),this.adapter.addClass(a),this.adapter.setStyleProperty("height","0"),this.adapter.removeClass(s),this.adapter.removeClass(o),clearTimeout(this.animationTimer),this.animationTimer=setTimeout((()=>{this.adapter.releaseFocus(),this.handleAnimationTimerEnd(),this.adapter.notifyClosed(t)}),r.KT.BANNER_ANIMATION_CLOSE_TIME_MS))}isOpen(){return this.isOpened}handlePrimaryActionClick(){this.close(r.GB.PRIMARY)}handleSecondaryActionClick(){this.close(r.GB.SECONDARY)}layout(){const t=this.adapter.getContentHeight();console.log("he",t),this.adapter.setStyleProperty("height",`${t}px`)}handleAnimationTimerEnd(){this.animationTimer=0,this.adapter.removeClass(o),this.adapter.removeClass(a)}}const c=d},655:(t,e,n)=>{function i(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function r(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}n.d(e,{gn:()=>i,w6:()=>r}),Object.create,Object.create},8701:(t,e,n)=>{n.d(e,{ec:()=>c,i1:()=>l,iv:()=>d});const i=window,r=i.ShadowRoot&&(void 0===i.ShadyCSS||i.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),s=new WeakMap;class a{constructor(t,e,n){if(this._$cssResult$=!0,n!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const n=void 0!==e&&1===e.length;n&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&s.set(e,t))}return t}toString(){return this.cssText}}const d=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,n,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1]),t[0]);return new a(n,t,o)},c=(t,e)=>{r?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const n=document.createElement("style"),r=i.litNonce;void 0!==r&&n.setAttribute("nonce",r),n.textContent=e.cssText,t.appendChild(n)}))},l=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const n of t.cssRules)e+=n.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,o))(e)})(t):t},5674:(t,e,n)=>{n.d(e,{eZ:()=>i});const i=({finisher:t,descriptor:e})=>(n,i)=>{var r;if(void 0===i){const i=null!==(r=n.originalKey)&&void 0!==r?r:n.key,o=null!=e?{kind:"method",placement:"prototype",key:i,descriptor:e(n.key)}:{...n,key:i};return null!=t&&(o.finisher=function(e){t(e,i)}),o}{const r=n.constructor;void 0!==e&&Object.defineProperty(n,i,e(i)),null==t||t(r,i)}}},5713:(t,e,n)=>{n.d(e,{M:()=>i});const i=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:n,elements:i}=e;return{kind:n,elements:i,finisher(e){customElements.define(t,e)}}})(t,e)},760:(t,e,n)=>{n.d(e,{C:()=>r});const i=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(n){n.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(n){n.createProperty(e.key,t)}};function r(t){return(e,n)=>void 0!==n?((t,e,n)=>{e.constructor.createProperty(n,t)})(t,e,n):i(t,e)}},7935:(t,e,n)=>{var i;null===(i=window.HTMLSlotElement)||void 0===i||i.prototype.assignedElements},43:(t,e,n)=>{n(7935)},2669:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(5674);function r(t,e){return(0,i.eZ)({descriptor:n=>{const i={get(){var e,n;return null!==(n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof n?Symbol():"__"+n;i.get=function(){var n,i;return void 0===this[e]&&(this[e]=null!==(i=null===(n=this.renderRoot)||void 0===n?void 0:n.querySelector(t))&&void 0!==i?i:null),this[e]}}return i}})}},8732:(t,e,n)=>{n.d(e,{fl:()=>p,iv:()=>r.iv});var i,r=n(8701);const o=window,s=o.trustedTypes,a=s?s.emptyScript:"",d=o.reactiveElementPolyfillSupport,c={toAttribute(t,e){switch(e){case Boolean:t=t?a:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let n=t;switch(e){case Boolean:n=null!==t;break;case Number:n=null===t?null:Number(t);break;case Object:case Array:try{n=JSON.parse(t)}catch(t){n=null}}return n}},l=(t,e)=>e!==t&&(e==e||t==t),h={attribute:!0,type:String,converter:c,reflect:!1,hasChanged:l};class p extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,n)=>{const i=this._$Ep(n,e);void 0!==i&&(this._$Ev.set(i,n),t.push(i))})),t}static createProperty(t,e=h){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const n="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,n,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,n){return{get(){return this[e]},set(i){const r=this[t];this[e]=i,this.requestUpdate(t,r,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||h}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const n of e)this.createProperty(n,t[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const n=new Set(t.flat(1/0).reverse());for(const t of n)e.unshift((0,r.i1)(t))}else void 0!==t&&e.push((0,r.i1)(t));return e}static _$Ep(t,e){const n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,n;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(n=t.hostConnected)||void 0===n||n.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return(0,r.ec)(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,n){this._$AK(t,n)}_$EO(t,e,n=h){var i;const r=this.constructor._$Ep(t,n);if(void 0!==r&&!0===n.reflect){const o=(void 0!==(null===(i=n.converter)||void 0===i?void 0:i.toAttribute)?n.converter:c).toAttribute(e,n.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(n=t.converter)||void 0===n?void 0:n.fromAttribute)?t.converter:c;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,n){let i=!0;void 0!==t&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||l)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===n.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,n))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const n=this._$AL;try{e=this.shouldUpdate(n),e?(this.willUpdate(n),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(n)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(n)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}p.finalized=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==d||d({ReactiveElement:p}),(null!==(i=o.reactiveElementVersions)&&void 0!==i?i:o.reactiveElementVersions=[]).push("1.4.0")},8922:(t,e,n)=>{n.d(e,{dy:()=>s.dy,iv:()=>o.iv,oi:()=>a});var i,r,o=n(8732),s=n(3692);class a extends o.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const n=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=n.firstChild),n}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,s.sY)(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return s.Jb}}a.finalized=!0,a._$litElement$=!0,null===(i=globalThis.litElementHydrateSupport)||void 0===i||i.call(globalThis,{LitElement:a});const d=globalThis.litElementPolyfillSupport;null==d||d({LitElement:a}),(null!==(r=globalThis.litElementVersions)&&void 0!==r?r:globalThis.litElementVersions=[]).push("3.2.2")},875:(t,e,n)=>{n.d(e,{XM:()=>r,Xe:()=>o,pX:()=>i});const i={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},r=t=>(...e)=>({_$litDirective$:t,values:e});class o{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,n){this._$Ct=t,this._$AM=e,this._$Ci=n}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}},7499:(t,e,n)=>{n.d(e,{$:()=>o});var i=n(3692),r=n(875);const o=(0,r.XM)(class extends r.Xe{constructor(t){var e;if(super(t),t.type!==r.pX.ATTRIBUTE||"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 n,r;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(n=this.st)||void 0===n?void 0:n.has(t))&&this.nt.add(t);return this.render(e)}const o=t.element.classList;this.nt.forEach((t=>{t in e||(o.remove(t),this.nt.delete(t))}));for(const t in e){const n=!!e[t];n===this.nt.has(t)||(null===(r=this.st)||void 0===r?void 0:r.has(t))||(n?(o.add(t),this.nt.add(t)):(o.remove(t),this.nt.delete(t)))}return i.Jb}})},3692:(t,e,n)=>{var i;n.d(e,{Jb:()=>x,dy:()=>A,sY:()=>S});const r=window,o=r.trustedTypes,s=o?o.createPolicy("lit-html",{createHTML:t=>t}):void 0,a=`lit$${(Math.random()+"").slice(9)}$`,d="?"+a,c=`<${d}>`,l=document,h=(t="")=>l.createComment(t),p=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,u=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,v=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),f=/'/g,g=/"/g,y=/^(?:script|style|textarea|title)$/i,$=t=>(e,...n)=>({_$litType$:t,strings:e,values:n}),A=$(1),x=($(2),Symbol.for("lit-noChange")),E=Symbol.for("lit-nothing"),C=new WeakMap,S=(t,e,n)=>{var i,r;const o=null!==(i=null==n?void 0:n.renderBefore)&&void 0!==i?i:e;let s=o._$litPart$;if(void 0===s){const t=null!==(r=null==n?void 0:n.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new k(e.insertBefore(h(),t),t,void 0,null!=n?n:{})}return s._$AI(t),s},w=l.createTreeWalker(l,129,null,!1),O=(t,e)=>{const n=t.length-1,i=[];let r,o=2===e?"<svg>":"",d=u;for(let e=0;e<n;e++){const n=t[e];let s,l,h=-1,p=0;for(;p<n.length&&(d.lastIndex=p,l=d.exec(n),null!==l);)p=d.lastIndex,d===u?"!--"===l[1]?d=b:void 0!==l[1]?d=v:void 0!==l[2]?(y.test(l[2])&&(r=RegExp("</"+l[2],"g")),d=_):void 0!==l[3]&&(d=_):d===_?">"===l[0]?(d=null!=r?r:u,h=-1):void 0===l[1]?h=-2:(h=d.lastIndex-l[2].length,s=l[1],d=void 0===l[3]?_:'"'===l[3]?g:f):d===g||d===f?d=_:d===b||d===v?d=u:(d=_,r=void 0);const m=d===_&&t[e+1].startsWith("/>")?" ":"";o+=d===u?n+c:h>=0?(i.push(s),n.slice(0,h)+"$lit$"+n.slice(h)+a+m):n+a+(-2===h?(i.push(void 0),e):m)}const l=o+(t[n]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s?s.createHTML(l):l,i]};class P{constructor({strings:t,_$litType$:e},n){let i;this.parts=[];let r=0,s=0;const c=t.length-1,l=this.parts,[p,m]=O(t,e);if(this.el=P.createElement(p,n),w.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=w.nextNode())&&l.length<c;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(a)){const n=m[s++];if(t.push(e),void 0!==n){const t=i.getAttribute(n.toLowerCase()+"$lit$").split(a),e=/([.?@])?(.*)/.exec(n);l.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?M:"?"===e[1]?U:"@"===e[1]?H:R})}else l.push({type:6,index:r})}for(const e of t)i.removeAttribute(e)}if(y.test(i.tagName)){const t=i.textContent.split(a),e=t.length-1;if(e>0){i.textContent=o?o.emptyScript:"";for(let n=0;n<e;n++)i.append(t[n],h()),w.nextNode(),l.push({type:2,index:++r});i.append(t[e],h())}}}else if(8===i.nodeType)if(i.data===d)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(a,t+1));)l.push({type:7,index:r}),t+=a.length-1}r++}}static createElement(t,e){const n=l.createElement("template");return n.innerHTML=t,n}}function N(t,e,n=t,i){var r,o,s,a;if(e===x)return e;let d=void 0!==i?null===(r=n._$Cl)||void 0===r?void 0:r[i]:n._$Cu;const c=p(e)?void 0:e._$litDirective$;return(null==d?void 0:d.constructor)!==c&&(null===(o=null==d?void 0:d._$AO)||void 0===o||o.call(d,!1),void 0===c?d=void 0:(d=new c(t),d._$AT(t,n,i)),void 0!==i?(null!==(s=(a=n)._$Cl)&&void 0!==s?s:a._$Cl=[])[i]=d:n._$Cu=d),void 0!==d&&(e=N(t,d._$AS(t,e.values),d,i)),e}class T{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:n},parts:i}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:l).importNode(n,!0);w.currentNode=r;let o=w.nextNode(),s=0,a=0,d=i[0];for(;void 0!==d;){if(s===d.index){let e;2===d.type?e=new k(o,o.nextSibling,this,t):1===d.type?e=new d.ctor(o,d.name,d.strings,this,t):6===d.type&&(e=new j(o,this,t)),this.v.push(e),d=i[++a]}s!==(null==d?void 0:d.index)&&(o=w.nextNode(),s++)}return r}m(t){let e=0;for(const n of this.v)void 0!==n&&(void 0!==n.strings?(n._$AI(t,n,e),e+=n.strings.length-2):n._$AI(t[e])),e++}}class k{constructor(t,e,n,i){var r;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=n,this.options=i,this._$C_=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}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=N(this,t,e),p(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==x&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>m(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==E&&p(this._$AH)?this._$AA.nextSibling.data=t:this.k(l.createTextNode(t)),this._$AH=t}T(t){var e;const{values:n,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=P.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(n);else{const t=new T(r,this),e=t.p(this.options);t.m(n),this.k(e),this._$AH=t}}_$AC(t){let e=C.get(t.strings);return void 0===e&&C.set(t.strings,e=new P(t)),e}O(t){m(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let n,i=0;for(const r of t)i===e.length?e.push(n=new k(this.S(h()),this.S(h()),this,this.options)):n=e[i],n._$AI(r),i++;i<e.length&&(this._$AR(n&&n._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var n;for(null===(n=this._$AP)||void 0===n||n.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._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class R{constructor(t,e,n,i,r){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,n,i){const r=this.strings;let o=!1;if(void 0===r)t=N(this,t,e,0),o=!p(t)||t!==this._$AH&&t!==x,o&&(this._$AH=t);else{const i=t;let s,a;for(t=r[0],s=0;s<r.length-1;s++)a=N(this,i[n+s],e,s),a===x&&(a=this._$AH[s]),o||(o=!p(a)||a!==this._$AH[s]),a===E?t=E:t!==E&&(t+=(null!=a?a:"")+r[s+1]),this._$AH[s]=a}o&&!i&&this.P(t)}P(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class M extends R{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===E?void 0:t}}const I=o?o.emptyScript:"";class U extends R{constructor(){super(...arguments),this.type=4}P(t){t&&t!==E?this.element.setAttribute(this.name,I):this.element.removeAttribute(this.name)}}class H extends R{constructor(t,e,n,i,r){super(t,e,n,i,r),this.type=5}_$AI(t,e=this){var n;if((t=null!==(n=N(this,t,e,0))&&void 0!==n?n:E)===x)return;const i=this._$AH,r=t===E&&i!==E||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==E&&(i===E||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,n;"function"==typeof this._$AH?this._$AH.call(null!==(n=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==n?n:this.element,t):this._$AH.handleEvent(t)}}class j{constructor(t,e,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const L=r.litHtmlPolyfillSupport;null==L||L(P,k),(null!==(i=r.litHtmlVersions)&&void 0!==i?i:r.litHtmlVersions=[]).push("2.3.0")},9662:(t,e,n)=>{n.d(e,{Cb:()=>r.C,IO:()=>o.I,Mo:()=>i.M});var i=n(5713),r=n(760),o=n(2669);n(7935),n(43)},8810:(t,e,n)=>{n.d(e,{$:()=>i.$});var i=n(7499)},5862:(t,e,n)=>{n.d(e,{dy:()=>i.dy,iv:()=>i.iv,oi:()=>i.oi}),n(8732),n(3692);var i=n(8922)}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t=n(655),e=n(9662),i=n(7392),r=n(6551),o=n(1996),s=n(3727),a=n(5862),d=n(8810);class c extends i.H{constructor(){super(...arguments),this.mdcFoundationClass=s.Z,this.open=!0,this.titleText="",this.descriptionText="",this.icon="",this.inline=!1,this.state="",this.reason=o.GB.UNSPECIFIED}render(){const t={"mdc-banner":!0,"td-banner--inline":this.inline,negative:"negative"===this.state,positive:"positive"===this.state,caution:"caution"===this.state,active:"active"===this.state};return a.dy` <div class="${(0,d.$)(t)}" role="banner">
|
3
|
+
<div class="mdc-banner__content" role="alertdialog" aria-live="assertive">
|
4
|
+
<div class="mdc-banner__graphic-text-wrapper">
|
5
|
+
${this.icon?this.renderIcon():""}
|
6
|
+
<div class="mdc-banner__text">
|
7
|
+
<span class="mdc-typography--body2">${this.titleText}</span>
|
8
|
+
<div class="mdc-typography--body1">${this.descriptionText}</div>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
<div class="mdc-banner__actions">
|
12
|
+
<slot name="action-items"></slot>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
</div>`}renderIcon(){return a.dy` <div class="mdc-banner__graphic" role="img" alt="">
|
16
|
+
<slot name="icon">
|
17
|
+
<td-icon class="mdc-banner__icon"> ${this.icon} </td-icon>
|
18
|
+
</slot>
|
19
|
+
</div>`}createAdapter(){return Object.assign(Object.assign({},(0,i.q)(this.mdcRoot)),{getContentHeight:()=>this.mdcContent.offsetHeight,setStyleProperty:(t,e)=>{this.mdcRoot.style.setProperty(t,e)},trapFocus:()=>{},releaseFocus:()=>{},notifyActionClicked:t=>this.dispatchEvent(new CustomEvent(o.U3.ACTION_CLICKED,{bubbles:!0,cancelable:!0,detail:{reason:t}})),notifyClosed:()=>{},notifyClosing:()=>{this.open=!1},notifyOpened:()=>{},notifyOpening:()=>{this.open=!0}})}show(){this.open=!0}close(t=o.GB.UNSPECIFIED){this.reason=t,this.open=!1}firstUpdated(){super.firstUpdated(),this.open&&this.mdcFoundation.open()}}(0,t.gn)([(0,e.IO)(".mdc-banner"),(0,t.w6)("design:type",HTMLElement)],c.prototype,"mdcRoot",void 0),(0,t.gn)([(0,e.IO)(".mdc-banner__content"),(0,t.w6)("design:type",HTMLElement)],c.prototype,"mdcContent",void 0),(0,t.gn)([(0,e.Cb)({type:Boolean,reflect:!0}),(0,r.P)((function(t){this.mdcFoundation&&(t?this.mdcFoundation.open():(this.mdcFoundation.close(this.reason),this.reason=o.GB.UNSPECIFIED))})),(0,t.w6)("design:type",Object)],c.prototype,"open",void 0),(0,t.gn)([(0,e.Cb)({type:String}),(0,t.w6)("design:type",Object)],c.prototype,"titleText",void 0),(0,t.gn)([(0,e.Cb)({type:String}),(0,t.w6)("design:type",Object)],c.prototype,"descriptionText",void 0),(0,t.gn)([(0,e.Cb)({type:String}),(0,t.w6)("design:type",Object)],c.prototype,"icon",void 0),(0,t.gn)([(0,e.Cb)({type:Boolean}),(0,t.w6)("design:type",Object)],c.prototype,"inline",void 0),(0,t.gn)([(0,e.Cb)(),(0,t.w6)("design:type",Object)],c.prototype,"state",void 0);const l=a.iv`:host .mdc-banner__graphic{color:#fff;color:var(--mdc-theme-surface,#fff)}:host .mdc-banner__graphic{background-color:#6200ee;background-color:var(--mdc-theme-primary,#6200ee)}:host .mdc-banner__content,:host .mdc-banner__fixed{min-width:344px}@media(max-width:480px),(max-width:344px){:host .mdc-banner__content,:host .mdc-banner__fixed{min-width:100%}}:host .mdc-banner__content{max-width:720px}:host .mdc-banner{z-index:1;border-bottom-style:solid;box-sizing:border-box;display:none;flex-shrink:0;height:0;position:relative;width:100%}@media(max-width:480px){:host .mdc-banner .mdc-banner__fixed{left:0;right:0}:host .mdc-banner .mdc-banner__text{margin-left:16px;margin-right:36px}:host .mdc-banner .mdc-banner__text[dir=rtl],[dir=rtl] :host .mdc-banner .mdc-banner__text{margin-left:36px;margin-right:16px}}@media(max-width:480px){:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__content{flex-wrap:wrap}:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__graphic{margin-bottom:12px}:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:16px;margin-right:8px;padding-bottom:4px}:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text[dir=rtl],[dir=rtl] :host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__text{margin-left:8px;margin-right:16px}:host .mdc-banner.mdc-banner--mobile-stacked .mdc-banner__actions{margin-left:auto}}:host .mdc-banner--closing,:host .mdc-banner--open,:host .mdc-banner--opening{display:flex}:host .mdc-banner--open{transition:height .3s ease}:host .mdc-banner--open .mdc-banner__content{transition:transform .3s ease;transform:translateY(0)}:host .mdc-banner--closing{transition:height 250ms ease}:host .mdc-banner--closing .mdc-banner__content{transition:transform 250ms ease}:host .mdc-banner--centered .mdc-banner__content{left:0;margin-left:auto;margin-right:auto;right:0}:host .mdc-banner__fixed{border-bottom-style:solid;box-sizing:border-box;height:inherit;position:fixed;width:100%}:host .mdc-banner__content{display:flex;min-height:52px;position:absolute;transform:translateY(-100%);width:100%}:host .mdc-banner__graphic-text-wrapper{display:flex;width:100%}:host .mdc-banner__graphic{margin-left:16px;margin-right:0;flex-shrink:0;margin-top:16px;margin-bottom:16px;text-align:center}:host .mdc-banner__graphic[dir=rtl],[dir=rtl] :host .mdc-banner__graphic{margin-left:0;margin-right:16px}:host .mdc-banner__icon{position:relative;top:50%;transform:translateY(-50%)}:host .mdc-banner__text{margin-left:24px;margin-right:90px;align-self:center;flex-grow:1;padding-top:16px;padding-bottom:16px}:host .mdc-banner__text[dir=rtl],[dir=rtl] :host .mdc-banner__text{margin-left:90px;margin-right:24px}:host .mdc-banner__actions{padding-left:0;padding-right:8px;align-self:flex-end;display:flex;flex-shrink:0;padding-bottom:8px;padding-top:8px}:host .mdc-banner__actions[dir=rtl],[dir=rtl] :host .mdc-banner__actions{padding-left:8px;padding-right:0}:host .mdc-banner__secondary-action{margin-left:0;margin-right:8px}:host .mdc-banner__secondary-action[dir=rtl],[dir=rtl] :host .mdc-banner__secondary-action{margin-left:8px;margin-right:0}:host .mdc-banner{background-color:#fff;border-bottom-color:rgba(0,0,0,.12);border-bottom-width:1px;border-radius:0}:host .mdc-banner .mdc-banner__text{color:#000}:host .mdc-banner .mdc-banner__text{letter-spacing:.0178571429em;font-size:.875rem;font-family:Roboto,sans-serif;font-weight:400;line-height:1.25rem}:host .mdc-banner .mdc-banner__graphic{border-radius:50%}:host .mdc-banner .mdc-banner__graphic{height:40px;width:40px}:host .mdc-banner .mdc-banner__fixed{background-color:#fff}:host .mdc-banner .mdc-banner__fixed{border-bottom-color:rgba(0,0,0,.12)}:host .mdc-banner .mdc-banner__fixed{border-bottom-width:1px}:host .mdc-banner .mdc-button:not(:disabled){color:#6200ee;color:var(--mdc-text-button-label-text-color,#6200ee)}:host .mdc-banner .mdc-button .mdc-button__ripple::after,:host .mdc-banner .mdc-button .mdc-button__ripple::before{background-color:#6200ee;background-color:var(--mdc-text-button-hover-state-layer-color,#6200ee)}:host .mdc-banner .mdc-button.mdc-ripple-surface--hover .mdc-button__ripple::before,:host .mdc-banner .mdc-button:hover .mdc-button__ripple::before{opacity:.04;opacity:var(--mdc-text-button-hover-state-layer-opacity,.04)}:host .mdc-banner .mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__ripple::before,:host .mdc-banner .mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__ripple::before{transition-duration:75ms;opacity:.12;opacity:var(--mdc-text-button-focus-state-layer-opacity,.12)}:host .mdc-banner .mdc-button:not(.mdc-ripple-upgraded) .mdc-button__ripple::after{transition:opacity 150ms linear}:host .mdc-banner .mdc-button:not(.mdc-ripple-upgraded):active .mdc-button__ripple::after{transition-duration:75ms;opacity:.1;opacity:var(--mdc-text-button-pressed-state-layer-opacity,.1)}:host .mdc-banner .mdc-button.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-text-button-pressed-state-layer-opacity, 0.1)}:host .mdc-banner__secondary-action{margin-left:0;margin-right:8px}:host .mdc-banner__secondary-action[dir=rtl],[dir=rtl] :host .mdc-banner__secondary-action{margin-left:8px;margin-right:0}:host .mdc-banner{--mdc-theme-surface:var(--mdc-theme-surface-neutral);background-color:var(--mdc-theme-surface)}:host .mdc-banner .mdc-banner__graphic{--mdc-theme-surface:var(--mdc-theme-text-icon-on-background)}:host .mdc-banner .mdc-banner__text{color:var(--mdc-theme-text-primary-on-background)}:host .mdc-banner .mdc-banner__text .mdc-typography--body2{font-family:var(--mdc-typography-body2-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:700;line-height:var(--mdc-typography-body2-line-height)}:host .mdc-banner .mdc-banner__text .mdc-typography--body1{color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-body1-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height)}:host .mdc-banner.caution{--mdc-theme-surface:var(--mdc-theme-surface-caution)}:host .mdc-banner.caution.td-banner--inline{--mdc-theme-surface:var(--mdc-theme-surface-caution-highlight)}:host .mdc-banner.caution.td-banner--inline .mdc-banner__graphic,:host .mdc-banner.caution.td-banner--inline .mdc-banner__text{--mdc-theme-surface:var(--mdc-theme-caution);--mdc-theme-text-primary-on-background:var(--mdc-theme-caution)}:host .mdc-banner.negative{--mdc-theme-surface:var(--mdc-theme-surface-negative)}:host .mdc-banner.negative.td-banner--inline{--mdc-theme-surface:var(--mdc-theme-surface-negative-highlight)}:host .mdc-banner.negative.td-banner--inline .mdc-banner__graphic,:host .mdc-banner.negative.td-banner--inline .mdc-banner__text{--mdc-theme-surface:var(--mdc-theme-negative);--mdc-theme-text-primary-on-background:var(--mdc-theme-negative)}:host .mdc-banner.active{--mdc-theme-surface:var(--mdc-theme-surface-secondary)}:host .mdc-banner.active.td-banner--inline{--mdc-theme-surface:var(--mdc-theme-surface-secondary-highlight)}:host .mdc-banner.active.td-banner--inline .mdc-banner__graphic,:host .mdc-banner.active.td-banner--inline .mdc-banner__text{--mdc-theme-surface:var(--mdc-theme-secondary);--mdc-theme-text-primary-on-background:var(--mdc-theme-secondary)}:host .mdc-banner.positive{--mdc-theme-surface:var(--mdc-theme-surface-positive)}:host .mdc-banner.positive.td-banner--inline{--mdc-theme-surface:var(--mdc-theme-surface-positive-highlight)}:host .mdc-banner.positive.td-banner--inline .mdc-banner__graphic,:host .mdc-banner.positive.td-banner--inline .mdc-banner__text{--mdc-theme-surface:var(--mdc-theme-positive);--mdc-theme-text-primary-on-background:var(--mdc-theme-positive)}:host .mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:0;opacity:var(--mdc-elevation-overlay-opacity,0);transition:opacity 280ms cubic-bezier(.4,0,.2,1);background-color:#fff;background-color:var(--mdc-elevation-overlay-color,#fff)}:host .mdc-banner{border-radius:8px;position:relative;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);overflow:hidden;border:none}:host .mdc-banner .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}:host .mdc-banner .mdc-banner__content{max-width:inherit}:host .mdc-banner .mdc-banner__graphic{background:0 0;margin-left:24px;width:24px}:host .mdc-banner .mdc-banner__text{margin-left:24px}:host .mdc-banner .mdc-banner__actions{align-self:center;align-items:center}:host .mdc-banner.td-banner--inline{border-radius:0;box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}:host ::slotted(*){margin-left:8px}`;let h=class extends c{};h.styles=[l],h=(0,t.gn)([(0,e.Mo)("td-alert")],h)})()})();
|
@@ -0,0 +1,75 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2016 Google Inc.
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
|
24
|
+
/**
|
25
|
+
* @license
|
26
|
+
* Copyright 2017 Google LLC
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
28
|
+
*/
|
29
|
+
|
30
|
+
/**
|
31
|
+
* @license
|
32
|
+
* Copyright 2018 Google LLC
|
33
|
+
* SPDX-License-Identifier: Apache-2.0
|
34
|
+
*/
|
35
|
+
|
36
|
+
/**
|
37
|
+
* @license
|
38
|
+
* Copyright 2018 Google LLC
|
39
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
40
|
+
*/
|
41
|
+
|
42
|
+
/**
|
43
|
+
* @license
|
44
|
+
* Copyright 2019 Google LLC
|
45
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
46
|
+
*/
|
47
|
+
|
48
|
+
/**
|
49
|
+
* @license
|
50
|
+
* Copyright 2020 Google Inc.
|
51
|
+
*
|
52
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
53
|
+
* of this software and associated documentation files (the "Software"), to deal
|
54
|
+
* in the Software without restriction, including without limitation the rights
|
55
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
56
|
+
* copies of the Software, and to permit persons to whom the Software is
|
57
|
+
* furnished to do so, subject to the following conditions:
|
58
|
+
*
|
59
|
+
* The above copyright notice and this permission notice shall be included in
|
60
|
+
* all copies or substantial portions of the Software.
|
61
|
+
*
|
62
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
63
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
64
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
65
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
66
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
67
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
68
|
+
* THE SOFTWARE.
|
69
|
+
*/
|
70
|
+
|
71
|
+
/**
|
72
|
+
* @license
|
73
|
+
* Copyright 2021 Google LLC
|
74
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
75
|
+
*/
|