UNPKG

@zeit-ui/vue

Version:

A popular UI framework for Vue

2 lines 4.71 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["dot"]=e():t["dot"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.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 i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));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="fb15")}({"7ce0":function(t,e,n){},b984:function(t,e,n){},ba8f:function(t,e,n){"use strict";var r=n("7ce0"),i=n.n(r);i.a},f319:function(t,e,n){"use strict";var r=n("b984"),i=n.n(r);i.a},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},fb15:function(t,e,n){"use strict";n.r(e);var r,i={};(n.r(i),n.d(i,"enums",(function(){return u})),n.d(i,"isMac",(function(){return s})),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"zi-dot-wrapper"},[n("span",{staticClass:"zi-dot",class:[t.type]}),t.$slots.default||t.label?n("span",{staticClass:"zi-dot-label"},[t._t("default",[t._v(t._s(t.label))])],2):t._e()])},a=[],u=function(t){return function(e){return!!Array.isArray(t)&&!!t.find((function(t){return t===e}))}},s=function(){if("undefined"===typeof window||!window.navigator)return!1;var t=navigator.userAgent.toLowerCase();return/macintosh|mac os x/i.test(t)},c=function(t){var e=t.getBoundingClientRect(),n=window.getComputedStyle(t),r=n.width,i=n.height,o=function(t,e){if(!t)return 0;var n=t.includes("px")?+t.split("px")[0]:t.includes("%")?+t.split("%")[0]*e*.01:t;return Number.isNaN(+n)?0:+n};return{width:o("".concat(r),e.width),height:o("".concat(i),e.height)}},l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"expand"},on:{enter:t.enter,"after-enter":t.afterEnter,leave:t.leave}},[t._t("default")],2)},f=[],d={name:"zi-transition-expand",methods:{enter:function(t){var e=c(t),n=e.width;t.style.width="".concat(n,"px"),t.style.position="absolute",t.style.visibility="hidden",t.style.height="auto";var r=c(t),i=r.height;t.style.width=null,t.style.position=null,t.style.visibility=null,t.style.height=0,c(t);var o=setTimeout((function(){t.style.height="".concat(i,"px"),clearTimeout(o)}),0)},afterEnter:function(t){t.style.height="auto"},leave:function(t){var e=c(t),n=e.height;t.style.height="".concat(n,"px"),c(t);var r=setTimeout((function(){t.style.height=0,clearTimeout(r)}),0)},afterLeave:function(t){t.style.height=null}}},p=d;n("ba8f");function h(t,e,n,r,i,o,a,u){var s,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=s):i&&(s=u?function(){i.call(this,this.$root.$options.shadowRoot)}:i),s)if(c.functional){c._injectStyles=s;var l=c.render;c.render=function(t,e){return s.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:c}}var y=h(p,l,f,!1,null,null,null),v=(y.exports,new Map,{name:"zi-dot",props:{type:{type:String,validator:i.enums(["primary","danger","success","warning"]),default:"primary"},label:String}}),m=v,g=(n("f319"),h(m,o,a,!1,null,"16adeb44",null)),b=g.exports;b.install=function(t){t.component(b.name,b)};var _=b;e["default"]=_}})["default"]})); //# sourceMappingURL=dot.umd.min.js.map