mand-mobile/docs/static/js/EnUSDocsComponentsFeedbackD...

1 line
230 KiB
JavaScript
Raw Normal View History

webpackJsonp([19],{"+0ou":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("9MUa"),a=o.n(i);for(var n in i)"default"!==n&&function(e){o.d(t,e,function(){return i[e]})}(n);var l=o("R9Y+"),s=o("VU/8"),r=s(a.a,l.a,!1,null,null,null);t["default"]=r.exports},"+eRn":function(e,t,o){var i,a,n;(function(){(function(l,s){a=[t,o("o9V8"),o("Svgr"),o("dgYx"),o("U6ik"),o("YqFQ")],i=s,n="function"==typeof i?i.apply(t,a):i,!(void 0!==n&&(e.exports=n))})(this,function(e,t,o,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(e){return e&&e.__esModule?e:{default:e}}(t),n=(0,i.getDpr)(),l=["getColumnValue","getColumnValues","getColumnIndex","getColumnIndexs","getColumnIndexByDefault","setColumnValues","refresh","inheritPickerApi"];e.default={name:"md-picker-column",props:{data:{type:Array,default:function(){return[]}},cols:{type:Number,default:1},defaultValue:{type:Array,default:function(){return[]}},defaultIndex:{type:Array,default:function(){return[]}},invalidIndex:{type:Array,default:function(){return[]}},lineHeight:{type:Number,default:45},keepIndex:{type:Boolean,default:!1}},data:function(){return{columnValues:[],scrollers:[],scrollDirect:1,scrollPosition:0,activedIndexs:[],isInitialed:!1,isScrollInitialed:!1,isScrolling:!1,isMouseDown:!1}},computed:{hooks:function(){var e=this.$el.querySelectorAll(".md-picker-column-hook");return e?Array.isArray(e)?e:Array.prototype.slice.call(e):[]},style:function(){return{maskerHeight:(2*this.lineHeight+10)*n,indicatorHeight:this.lineHeight*n}}},watch:{data:{handler:function(e){this.columnValues=(0,i.extend)([],e)},deep:!0}},created:function(){this.columnValues=(0,i.extend)([],this.data)},methods:{$_initColumnsScroller:function(){for(var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,o=t,i=this.hooks.length,a;o<i;o++)a=this.hooks[o],a&&this.$_initSingleColumnScroller(a,o);t||(this.$_initColumnIndex(),!this.isInitialed&&(this.isInitialed=!0,setTimeout(function(){e.$emit("initialed")},0))),this.isScrollInitialed=!0},$_initSingleColumnScroller:function(e,t){var i=this,n=this.$el.querySelectorAll(".column-list"),l=n[t];if(void 0!==t&&n&&e&&l){var s=e.getBoundingClientRect(),r=new a.default(function(e,t){(0,o.render)(l,e,t)},{scrollingX:!1,snapping:!0,snappingVelocity:1,animationDuration:350,scrollingComplete:function(){i.$_onColumnScrollEnd(t)}});r.setPosition(s.left+e.clientLeft,s.top+e.clientTop),r.setDimensions(e.clientWidth,e.clientHeight,l.offsetWidth,l.offsetHeight+this.style.maskerHeight),r.setSnapSize(0,this.style.indicatorHeight),this.$set(this.scrollers,t,r),this.$_resetScrollingPosition(t)}},$_initColumnIndex:function(){var e=this,t=this.columnValues,o=this.scrollers,a=this.defaultValue,n=this.defaultIndex;this.$_getColumnIndexByDefault(t,n,a,function(t,a){var n=o[t];return n?void(e.$_isColumnIndexInvalid(t,a)?e.$_scrollToValidIndex(n,t,a):(e.$_scrollToIndex(n,t,a),e.$set(e.activedIndexs,t,a))):((0,i.warn)("initialColumnIndex: scroller of column "+t+" is undefined"),1)})},$_getColumnIndexByDefault:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:i.noop;e&&(0,i.traverse)(e,function(e,i,n){var l=n[0],s=n[1],r=t[l],d=o[l];if(void 0===r&&void 0===d&&(r=0),void 0!==r&&s===r||void 0!==d&&(e.text===d||e.label===d||e.value===d))return a(l,s),2})},$_getColumnIndexByOffset:function(e){return Math.round(e/this.style.indicatorHeight)},$_getColumnOffsetByIndex:function(e){return e*this.style.indicatorHeight},$_isColumnIndexActive:function(e,t){var o=this.activedIndexs[e];return o===t},$_isColumnIndexInvalid:function(e,t){var o=this.invalidIndex[e];return(0,i.inArray)(o,t)},$_hasValidIndex:function(e){var t=!0,o=!1,a=void 0;try{for(var n=this.data[e].keys()[Symbol.iterator](),l,s;!(t=(l=n.next()).done);t=!0)if(s=l.value,!this.$_isColumnIndexInvalid(e,s))return!0}catch(e){o=!0,a=e}finally{try{!t&&n.return&&n.return()}finally{if(o)throw a}}return(0,i.warn)("hasValidIndex: has no va