Initial Commit
This commit is contained in:
commit
d4a69c41be
2748 files changed
+80489
No files matched your search
@@ -0,0 +1,4 @@
|
||||
/*! For license information please see 4680.44193f4ff52da004.js.LICENSE.txt */
|
||||
export const ids=["4680"];export const modules={87319:function(t,i,e){var o=e(9065),s=e(50778),r=e(65703),n=e(46289);let a=class extends r.K{};a.styles=[n.W],a=(0,o.gn)([(0,s.Mo)("mwc-list-item")],a)},27323:function(t,i,e){e.d(i,{O:function(){return d}});var o=e(9065),s=e(1105),r=e(57243),n=e(50778),a=e(35359),l=e(20552),h=e(91928);const c={fromAttribute:t=>null!==t&&(""===t||t),toAttribute:t=>"boolean"==typeof t?t?"":null:t};class d extends s.P{constructor(){super(...arguments),this.rows=2,this.cols=20,this.charCounter=!1}render(){const t=this.charCounter&&-1!==this.maxLength,i=t&&"internal"===this.charCounter,e=t&&!i,o=!!this.helper||!!this.validationMessage||e,s={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--end-aligned":this.endAligned,"mdc-text-field--with-internal-counter":i};return r.dy` <label class="mdc-text-field mdc-text-field--textarea ${(0,a.$)(s)}"> ${this.renderRipple()} ${this.outlined?this.renderOutline():this.renderLabel()} ${this.renderInput()} ${this.renderCharCounter(i)} ${this.renderLineRipple()} </label> ${this.renderHelperText(o,e)} `}renderInput(){const t=this.label?"label":void 0,i=-1===this.minLength?void 0:this.minLength,e=-1===this.maxLength?void 0:this.maxLength,o=this.autocapitalize?this.autocapitalize:void 0;return r.dy` <textarea aria-labelledby="${(0,l.o)(t)}" class="mdc-text-field__input" .value="${(0,h.a)(this.value)}" rows="${this.rows}" cols="${this.cols}" ?disabled="${this.disabled}" placeholder="${this.placeholder}" ?required="${this.required}" ?readonly="${this.readOnly}" minlength="${(0,l.o)(i)}" maxlength="${(0,l.o)(e)}" name="${(0,l.o)(""===this.name?void 0:this.name)}" inputmode="${(0,l.o)(this.inputMode)}" autocapitalize="${(0,l.o)(o)}" @input="${this.handleInputChange}" @blur="${this.onInputBlur}">
|
||||
</textarea>`}}(0,o.gn)([(0,n.IO)("textarea")],d.prototype,"formElement",void 0),(0,o.gn)([(0,n.Cb)({type:Number})],d.prototype,"rows",void 0),(0,o.gn)([(0,n.Cb)({type:Number})],d.prototype,"cols",void 0),(0,o.gn)([(0,n.Cb)({converter:c})],d.prototype,"charCounter",void 0)},88540:function(t,i,e){e.d(i,{W:function(){return o}});const o=e(57243).iv`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`},68107:function(t,i,e){var o=e(40810),s=e(73994),r=e(63983),n=e(71998),a=e(4576);o({target:"Iterator",proto:!0,real:!0},{every:function(t){n(this),r(t);var i=a(this),e=0;return!s(i,(function(i,o){if(!t(i,e++))return o()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},92181:function(t,i,e){e(68107)},30843:function(t,i,e){e.d(i,{e:()=>a});var o=e("97284");e("92745"),e("13334");function s(t){return"horizontal"===t?"row":"column"}class r extends o.IE{constructor(){super(...arguments),this._itemSize={},this._gaps={},this._padding={}}_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{itemSize:{width:"300px",height:"300px"},gap:"8px",padding:"match-gap"})}get _gap(){return this._gaps.row}get _idealSize(){return this._itemSize[(0,o.qF)(this.direction)]}get _idealSize1(){return this._itemSize[(0,o.qF)(this.direction)]}get _idealSize2(){return this._itemSize[(0,o.gu)(this.direction)]}get _gap1(){return this._gaps[(t=this.direction,"horizontal"===t?"column":"row")];var t}get _gap2(){return this._gaps[s(this.direction)]}get _padding1(){const t=this._padding,[i,e]="horizontal"===this.direction?["left","right"]:["top","bottom"];return[t[i],t[e]]}get _padding2(){const t=this._padding,[i,e]="horizontal"===this.direction?["top","bottom"]:["left","right"];return[t[i],t[e]]}set itemSize(t){const i=this._itemSize;"string"==typeof t&&(t={width:t,height:t});const e=parseInt(t.width),o=parseInt(t.height);e!==i.width&&(i.width=e,this._triggerReflow()),o!==i.height&&(i.height=o,this._triggerReflow())}set gap(t){this._setGap(t)}_setGap(t){const i=t.split(" ").map((t=>function(t){return"auto"===t?1/0:parseInt(t)}(t))),e=this._gaps;i[0]!==e.row&&(e.row=i[0],this._triggerReflow()),void 0===i[1]?i[0]!==e.column&&(e.column=i[0],this._triggerReflow()):i[1]!==e.column&&(e.column=i[1],this._triggerReflow())}set padding(t){const i=this._padding,e=t.split(" ").map((t=>function(t){return"match-gap"===t?1/0:parseInt(t)}(t)));1===e.length?(i.top=i.right=i.bottom=i.left=e[0],this._triggerReflow()):2===e.length?(i.top=i.bottom=e[0],i.right=i.left=e[1],this._triggerReflow()):3===e.length?(i.top=e[0],i.right=i.left=e[1],i.bottom=e[2],this._triggerReflow()):4===e.length&&(["top","right","bottom","left"].forEach(((t,o)=>i[t]=e[o])),this._triggerReflow())}}class n extends r{constructor(){super(...arguments),this._metrics=null,this.flex=null,this.justify=null}_getDefaultConfig(){return Object.assign({},super._getDefaultConfig(),{flex:!1,justify:"start"})}set gap(t){super._setGap(t)}_updateLayout(){const t=this.justify,[i,e]=this._padding1,[r,n]=this._padding2;["_gap1","_gap2"].forEach((i=>{const e=this[i];if(e===1/0&&!["space-between","space-around","space-evenly"].includes(t))throw new Error("grid layout: gap can only be set to 'auto' when justify is set to 'space-between', 'space-around' or 'space-evenly'");if(e===1/0&&"_gap2"===i)throw new Error(`grid layout: ${s(this.direction)}-gap cannot be set to 'auto' when direction is set to ${this.direction}`)}));const a=this.flex||["start","center","end"].includes(t),l={rolumns:-1,itemSize1:-1,itemSize2:-1,gap1:this._gap1===1/0?-1:this._gap1,gap2:a?this._gap2:0,padding1:{start:i===1/0?this._gap1:i,end:e===1/0?this._gap1:e},padding2:a?{start:r===1/0?this._gap2:r,end:n===1/0?this._gap2:n}:{start:0,end:0},positions:[]},h=this._viewDim2-l.padding2.start-l.padding2.end;if(h<=0)l.rolumns=0;else{const s=a?l.gap2:0;let r,n=0,c=0;if(h>=this._idealSize2&&(n=Math.floor((h-this._idealSize2)/(this._idealSize2+s))+1,c=n*this._idealSize2+(n-1)*s),this.flex){(h-c)/(this._idealSize2+s)>=.5&&(n+=1),l.rolumns=n,l.itemSize2=Math.round((h-s*(n-1))/n);switch(!0===this.flex?"area":this.flex.preserve){case"aspect-ratio":l.itemSize1=Math.round(this._idealSize1/this._idealSize2*l.itemSize2);break;case(0,o.qF)(this.direction):l.itemSize1=Math.round(this._idealSize1);break;default:l.itemSize1=Math.round(this._idealSize1*this._idealSize2/l.itemSize2)}}else l.itemSize1=this._idealSize1,l.itemSize2=this._idealSize2,l.rolumns=n;if(a){const i=l.rolumns*l.itemSize2+(l.rolumns-1)*l.gap2;r=this.flex||"start"===t?l.padding2.start:"end"===t?this._viewDim2-l.padding2.end-i:Math.round(this._viewDim2/2-i/2)}else{const o=h-l.rolumns*l.itemSize2;"space-between"===t?(l.gap2=Math.round(o/(l.rolumns-1)),r=0):"space-around"===t?(l.gap2=Math.round(o/l.rolumns),r=Math.round(l.gap2/2)):(l.gap2=Math.round(o/(l.rolumns+1)),r=l.gap2),this._gap1===1/0&&(l.gap1=l.gap2,i===1/0&&(l.padding1.start=r),e===1/0&&(l.padding1.end=r))}for(let t=0;t<l.rolumns;t++)l.positions.push(r),r+=l.itemSize2+l.gap2}this._metrics=l}}const a=t=>Object.assiLine truncated
|
||||
//# sourceMappingURL=4680.44193f4ff52da004.js.map
|
||||
Reference in new issue
Block a user