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 989.1003268b838197b0.js.LICENSE.txt */
|
||||
"use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["989"],{88618:function(t,e,o){o.d(e,{Wg:function(){return l},qN:function(){return a.q}});o(71695),o(47021);var n,r,i=o(9065),d=o(50778),a=o(11911);const s=null!==(r=null===(n=window.ShadyDOM)||void 0===n?void 0:n.inUse)&&void 0!==r&&r;class l extends a.H{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||s)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))}))}}l.shadowRootOptions={mode:"open",delegatesFocus:!0},(0,i.gn)([(0,d.Cb)({type:Boolean})],l.prototype,"disabled",void 0)},36204:function(t,e,o){o.d(e,{o:()=>l});o("52247"),o("71695"),o("47021");var n=o("9065"),r=o("80573"),i={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},d=function(t){function e(o){var r=t.call(this,(0,n.pi)((0,n.pi)({},e.defaultAdapter),o))||this;return r.shakeAnimationEndHandler=function(){r.handleShakeAnimationEnd()},r}return(0,n.ZT)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return i},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(t){var o=e.cssClasses.LABEL_SHAKE;t?this.adapter.addClass(o):this.adapter.removeClass(o)},e.prototype.float=function(t){var o=e.cssClasses,n=o.LABEL_FLOAT_ABOVE,r=o.LABEL_SHAKE;t?this.adapter.addClass(n):(this.adapter.removeClass(n),this.adapter.removeClass(r))},e.prototype.setRequired=function(t){var o=e.cssClasses.LABEL_REQUIRED;t?this.adapter.addClass(o):this.adapter.removeClass(o)},e.prototype.handleShakeAnimationEnd=function(){var t=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(t)},e}(r.K);var a=o("92903");class s extends a.Xe{constructor(t){switch(super(t),this.foundation=null,this.previousPart=null,t.type){case a.pX.ATTRIBUTE:case a.pX.PROPERTY:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(t,[e]){if(t!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=t;const e=t.element;e.classList.add("mdc-floating-label");const o=(t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),getWidth:()=>t.scrollWidth,registerInteractionHandler:(e,o)=>{t.addEventListener(e,o)},deregisterInteractionHandler:(e,o)=>{t.removeEventListener(e,o)}}))(e);this.foundation=new d(o),this.foundation.init()}return this.render(e)}render(t){return this.foundation}}const l=(0,a.XM)(s)},9219:function(t,e,o){o.d(e,{_:()=>l});o("52247");var n=o("9065"),r=o("80573"),i={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},d=function(t){function e(o){var r=t.call(this,(0,n.pi)((0,n.pi)({},e.defaultAdapter),o))||this;return r.transitionEndHandler=function(t){r.handleTransitionEnd(t)},r}return(0,n.ZT)(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return i},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(i.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(i.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},eLine truncated
|
||||
//# sourceMappingURL=989.1003268b838197b0.js.map
|
||||
Reference in new issue
Block a user