UNPKG

h_ui

Version:

A Vue.js 2.0 UI Components Framework

1 lines 7.01 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=171)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},10:function(t,e,n){var r=n(0),o=n(1),i=n(26),u=n(7),f=n(5),a=function(t,e,n){var c,p,l,d=t&a.F,s=t&a.G,y=t&a.S,v=t&a.P,x=t&a.B,g=t&a.W,b=s?o:o[e]||(o[e]={}),h=b.prototype,m=s?r:y?r[e]:(r[e]||{}).prototype;for(c in s&&(n=e),n)(p=!d&&m&&void 0!==m[c])&&f(b,c)||(l=p?m[c]:n[c],b[c]=s&&"function"!=typeof m[c]?n[c]:x&&p?i(l,r):g&&m[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((b.virtual||(b.virtual={}))[c]=l,t&a.R&&h&&!h[c]&&u(h,c,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},11:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},12:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},171:function(t,e,n){"use strict";var r=n(32);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;o||(o=document.createElement("textarea"),document.body.appendChild(o));var r=a(t),i=r.paddingSize,f=r.borderSize,c=r.boxSizing,p=r.contextStyle;o.setAttribute("style","".concat(p,";").concat(u)),o.value=t.value||t.placeholder||"";var l=o.scrollHeight,d=-1/0,s=1/0;"border-box"===c?l+=f:"content-box"===c&&(l-=i);o.value="";var y=o.scrollHeight-i;null!==e&&(d=y*e,"border-box"===c&&(d=d+i+f),l=Math.max(d,l));null!==n&&(s=y*n,"border-box"===c&&(s=s+i+f),l=Math.min(s,l));return{height:"".concat(l,"px"),minHeight:"".concat(d,"px"),maxHeight:"".concat(s,"px")}};var o,i=r(n(84)),u="\n height:0 !important;\n min-height:0 !important;\n max-height:none !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",f=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function a(t){var e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=(0,i.default)(e.getPropertyValue("padding-bottom"))+(0,i.default)(e.getPropertyValue("padding-top")),o=(0,i.default)(e.getPropertyValue("border-bottom-width"))+(0,i.default)(e.getPropertyValue("border-top-width"));return{contextStyle:f.map((function(t){return"".concat(t,":").concat(e.getPropertyValue(t))})).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}},18:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},2:function(t,e,n){t.exports=!n(9)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},26:function(t,e,n){var r=n(35);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},28:function(t,e,n){var r=n(6),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},3:function(t,e,n){var r=n(11),o=n(30),i=n(18),u=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},30:function(t,e,n){t.exports=!n(2)&&!n(9)((function(){return 7!=Object.defineProperty(n(28)("div"),"a",{get:function(){return 7}}).a}))},32:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},35:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},5:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},68:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},7:function(t,e,n){var r=n(3),o=n(12);t.exports=n(2)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},74:function(t,e,n){var r=n(10),o=n(15),i=n(9),u=n(68),f="["+u+"]",a=RegExp("^"+f+f+"*"),c=RegExp(f+f+"*$"),p=function(t,e,n){var o={},f=i((function(){return!!u[t]()||"​…"!="​…"[t]()})),a=o[t]=f?e(l):u[t];n&&(o[n]=a),r(r.P+r.F*f,"String",o)},l=p.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(a,"")),2&e&&(t=t.replace(c,"")),t};t.exports=p},84:function(t,e,n){t.exports=n(85)},85:function(t,e,n){n(86),t.exports=n(1).parseFloat},86:function(t,e,n){var r=n(10),o=n(87);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},87:function(t,e,n){var r=n(0).parseFloat,o=n(74).trim;t.exports=1/r(n(68)+"-0")!=-1/0?function(t){var e=o(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},9:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}}})}));