Initial Commit
This commit is contained in:
commit
d4a69c41be
2748 files changed
+80489
No files matched your search
@@ -0,0 +1,3 @@
|
||||
/*! For license information please see 5903.b43169fcf4f6049c.js.LICENSE.txt */
|
||||
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["5903"],{88618:function(t,e,i){i.d(e,{Wg:function(){return s},qN:function(){return d.q}});i(71695),i(47021);var r,n,o=i(9065),a=i(50778),d=i(11911);const c=null!==(n=null===(r=window.ShadyDOM)||void 0===r?void 0:r.inUse)&&void 0!==n&&n;class s extends d.H{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||c)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}s.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,o.gn)([(0,a.Cb)({type:Boolean})],s.prototype,"disabled",void 0)},4918:function(t,e,i){i.d(e,{a:()=>b});i("71695"),i("40251"),i("47021");var r=i("9065"),n=i("80573"),o={ROOT:"mdc-form-field"},a={LABEL_SELECTOR:".mdc-form-field > label"};const d=function(t){function e(i){var n=t.call(this,(0,r.pi)((0,r.pi)({},e.defaultAdapter),i))||this;return n.click=function(){n.handleClick()},n}return(0,r.ZT)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(n.K);var c=i("11911"),s=i("88618"),l=i("78611"),h=i("57243"),p=i("50778"),m=i("35359");let u,f=t=>t;class b extends c.H{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=d}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof s.Wg){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof s.Wg){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return(0,h.dy)(u||(u=f` <div class="mdc-form-field ${0}"> <slot></slot> <label class="mdc-label" @click="${0}">${0}</label> </div>`),(0,m.$)(t),this._labelClick,this.label)}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}(0,r.gn)([(0,p.Cb)({type:Boolean})],b.prototype,"alignEnd",void 0),(0,r.gn)([(0,p.Cb)({type:Boolean})],b.prototype,"spaceBetween",void 0),(0,r.gn)([(0,p.Cb)({type:Boolean})],b.prototype,"nowrap",void 0),(0,r.gn)([(0,p.Cb)({type:String}),(0,l.P)((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],b.prototype,"label",void 0),(0,r.gn)([(0,p.IO)(".mdc-form-field")],b.prototype,"mdcRoot",void 0),(0,r.gn)([(0,p.vZ)("",!0,"*")],b.prototype,"slottedInputs",void 0),(0,r.gn)([(0,p.IO)("label")],b.prototype,"labelEl",void 0)},6394:function(t,e,i){i.d(e,{W:function(){return n}});let r;const n=(0,i(57243).iv)(r||(r=(t=>t)`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto,sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:.875rem;font-size:var(--mdc-typography-body2-font-size, .875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight,400);letter-spacing:.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, .0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration,inherit);text-transform:inherit
Line truncated
|
||||
//# sourceMappingURL=5903.b43169fcf4f6049c.js.map
|
||||
Reference in new issue
Block a user