Comparing version 0.1.20 to 0.1.21
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("mint-ui/lib/spinner")):"function"==typeof define&&define.amd?define("indicator",["vue","mint-ui/lib/spinner"],t):"object"==typeof exports?exports.indicator=t(require("vue"),require("mint-ui/lib/spinner")):(e.MINT=e.MINT||{},e.MINT.indicator=t(e.Vue,e["MINT.index.spinner"]))}(this,function(e,t){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}({0:function(e,t,n){e.exports=n(200)},1:function(t,n){t.exports=e},191:function(e,t){e.exports="<div class=mint-indicator v-show=visible transition=mint-indicator> <div class=mint-indicator-wrapper :style=\"{ 'padding': text ? '20px' : '15px' }\"> <spinner class=mint-indicator-spin :type=convertedSpinnerType :size=32></spinner> <span class=mint-indicator-text v-show=text>{{ text }}</span> </div> <div class=mint-indicator-mask @touchmove.stop.prevent></div> </div>"},192:function(e,t,n){var i,o;n(214),i=n(212),o=n(191),e.exports=i||{},e.exports.__esModule&&(e.exports=e.exports["default"]),o&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=o)},200:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),r=i(o),s=r["default"].extend(n(192)),p=void 0,u=void 0;e.exports={open:function(e){p||(p=new s({el:document.createElement("div")})),p.visible||("string"==typeof e?(p.text=e,p.spinnerType="snake"):"[object Object]"===Object.prototype.toString.call(e)?(p.text=e.text||"",p.spinnerType=e.spinnerType||"snake"):(p.text="",p.spinnerType="snake"),p.$appendTo(document.body),u&&clearTimeout(u),r["default"].nextTick(function(){p.visible=!0}))},close:function(){p&&r["default"].nextTick(function(){p.visible=!1,u=setTimeout(function(){p.$el&&(p.$el.style.display="none")},400)})}}},212:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(223),r=i(o);t["default"]={data:function(){return{visible:!1}},components:{Spinner:r["default"]},computed:{convertedSpinnerType:function(){switch(this.spinnerType){case"double-bounce":return 1;case"triple-bounce":return 2;case"fading-circle":return 3;default:return 0}}},props:{text:String,spinnerType:{type:String,"default":"snake"}}}},214:function(e,t){},223:function(e,n){e.exports=t}})}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("mint-ui/lib/spinner")):"function"==typeof define&&define.amd?define("indicator",["vue","mint-ui/lib/spinner"],t):"object"==typeof exports?exports.indicator=t(require("vue"),require("mint-ui/lib/spinner")):(e.MINT=e.MINT||{},e.MINT.indicator=t(e.Vue,e["MINT.index.spinner"]))}(this,function(e,t){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}({0:function(e,t,n){e.exports=n(201)},1:function(t,n){t.exports=e},153:function(e,t){},192:function(e,t){e.exports="<div class=mint-indicator v-show=visible transition=mint-indicator> <div class=mint-indicator-wrapper :style=\"{ 'padding': text ? '20px' : '15px' }\"> <spinner class=mint-indicator-spin :type=convertedSpinnerType :size=32></spinner> <span class=mint-indicator-text v-show=text>{{ text }}</span> </div> <div class=mint-indicator-mask @touchmove.stop.prevent></div> </div>"},193:function(e,t,n){var i,o;i=n(213),o=n(192),e.exports=i||{},e.exports.__esModule&&(e.exports=e.exports["default"]),o&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=o)},201:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),r=i(o);n(153);var s=r["default"].extend(n(193)),p=void 0,u=void 0;e.exports={open:function(e){p||(p=new s({el:document.createElement("div")})),p.visible||("string"==typeof e?(p.text=e,p.spinnerType="snake"):"[object Object]"===Object.prototype.toString.call(e)?(p.text=e.text||"",p.spinnerType=e.spinnerType||"snake"):(p.text="",p.spinnerType="snake"),p.$appendTo(document.body),u&&clearTimeout(u),r["default"].nextTick(function(){p.visible=!0}))},close:function(){p&&r["default"].nextTick(function(){p.visible=!1,u=setTimeout(function(){p.$el&&(p.$el.style.display="none")},400)})}}},213:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(222),r=i(o);t["default"]={data:function(){return{visible:!1}},components:{Spinner:r["default"]},computed:{convertedSpinnerType:function(){switch(this.spinnerType){case"double-bounce":return 1;case"triple-bounce":return 2;case"fading-circle":return 3;default:return 0}}},props:{text:String,spinnerType:{type:String,"default":"snake"}}}},222:function(e,n){e.exports=t}})}); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("infinite-scroll",[],t):"object"==typeof exports?exports["infinite-scroll"]=t():(e.MINT=e.MINT||{},e.MINT["infinite-scroll"]=t())}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}({0:function(e,t,n){e.exports=n(201)},5:function(e,t){},196:function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e){e.directive("infiniteScroll",u)}var n=function(e,t){var n,i,o,r,c,s=function(){e.apply(r,c),i=n};return function(){if(r=this,c=arguments,n=Date.now(),o&&(clearTimeout(o),o=null),i){var e=t-(n-i);e<0?s():o=setTimeout(function(){s()},e)}else s()}},i=function(e){return e===window?Math.max(window.pageYOffset||0,document.documentElement.scrollTop):e.scrollTop},o=document.defaultView.getComputedStyle,r=function(e){for(var t=e;t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&1===t.nodeType;){var n=o(t).overflowY;if("scroll"===n||"auto"===n)return t;t=t.parentNode}return window},c=function(e){return e===window?document.documentElement.clientHeight:e.clientHeight},s=function(e){return e===window?i(window):e.getBoundingClientRect().top+i(window)},l=function(e){for(var t=e.parentNode;t;){if("HTML"===t.tagName)return!0;if(11===t.nodeType)return!1;t=t.parentNode}return!1},u={doBind:function(){if(!this.binded){this.binded=!0;var e=this,t=e.el;e.scrollEventTarget=r(t),e.scrollListener=n(e.doCheck.bind(e),200),e.scrollEventTarget.addEventListener("scroll",e.scrollListener);var i=t.getAttribute("infinite-scroll-disabled"),o=!1;i&&(this.vm.$watch(i,function(t){e.disabled=t,!t&&e.immediateCheck&&e.doCheck()}),o=Boolean(e.vm.$get(i))),e.disabled=o;var c=t.getAttribute("infinite-scroll-distance"),s=0;c&&(s=Number(e.vm.$get(c)),isNaN(s)&&(s=0)),e.distance=s;var l=t.getAttribute("infinite-scroll-immediate-check"),u=!0;l&&(u=Boolean(e.vm.$get(l))),e.immediateCheck=u,u&&e.doCheck();var d=t.getAttribute("infinite-scroll-listen-for-event");d&&e.vm.$on(d,function(){e.doCheck()})}},doCheck:function(e){var t=this.scrollEventTarget,n=this.el,o=this.distance;if(e===!0||!this.disabled){var r=i(t),l=r+c(t),u=!1;if(t===n)u=t.scrollHeight-l<=o;else{var d=s(n)-s(t)+n.offsetHeight+r;u=l+o>=d}u&&this.expression&&this.vm.$get(this.expression)}},bind:function(){var e=this,t=this.el;e.vm.$on("hook:ready",function(){l(t)&&e.doBind()}),this.bindTryCount=0;var n=function i(){e.bindTryCount>10||(e.bindTryCount++,l(t)?e.doBind():setTimeout(i,50))};n()},unbind:function(){this.scrollEventTarget.removeEventListener("scroll",this.scrollListener)}};window.Vue&&(window.infiniteScroll=u,Vue.use(t)),e.install=t,e.infiniteScroll=u})},201:function(e,t,n){"use strict";e.exports=n(202)},202:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(196),r=i(o);n(5),r["default"].name="infinite-scroll",e.exports=r["default"]}})}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("infinite-scroll",[],t):"object"==typeof exports?exports["infinite-scroll"]=t():(e.MINT=e.MINT||{},e.MINT["infinite-scroll"]=t())}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}({0:function(e,t,n){e.exports=n(202)},5:function(e,t){},197:function(e,t,n){!function(e,n){n(t)}(this,function(e){"use strict";function t(e){e.directive("infiniteScroll",u)}var n=function(e,t){var n,i,o,r,c,s=function(){e.apply(r,c),i=n};return function(){if(r=this,c=arguments,n=Date.now(),o&&(clearTimeout(o),o=null),i){var e=t-(n-i);e<0?s():o=setTimeout(function(){s()},e)}else s()}},i=function(e){return e===window?Math.max(window.pageYOffset||0,document.documentElement.scrollTop):e.scrollTop},o=document.defaultView.getComputedStyle,r=function(e){for(var t=e;t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&1===t.nodeType;){var n=o(t).overflowY;if("scroll"===n||"auto"===n)return t;t=t.parentNode}return window},c=function(e){return e===window?document.documentElement.clientHeight:e.clientHeight},s=function(e){return e===window?i(window):e.getBoundingClientRect().top+i(window)},l=function(e){for(var t=e.parentNode;t;){if("HTML"===t.tagName)return!0;if(11===t.nodeType)return!1;t=t.parentNode}return!1},u={doBind:function(){if(!this.binded){this.binded=!0;var e=this,t=e.el;e.scrollEventTarget=r(t),e.scrollListener=n(e.doCheck.bind(e),200),e.scrollEventTarget.addEventListener("scroll",e.scrollListener);var i=t.getAttribute("infinite-scroll-disabled"),o=!1;i&&(this.vm.$watch(i,function(t){e.disabled=t,!t&&e.immediateCheck&&e.doCheck()}),o=Boolean(e.vm.$get(i))),e.disabled=o;var c=t.getAttribute("infinite-scroll-distance"),s=0;c&&(s=Number(e.vm.$get(c)),isNaN(s)&&(s=0)),e.distance=s;var l=t.getAttribute("infinite-scroll-immediate-check"),u=!0;l&&(u=Boolean(e.vm.$get(l))),e.immediateCheck=u,u&&e.doCheck();var d=t.getAttribute("infinite-scroll-listen-for-event");d&&e.vm.$on(d,function(){e.doCheck()})}},doCheck:function(e){var t=this.scrollEventTarget,n=this.el,o=this.distance;if(e===!0||!this.disabled){var r=i(t),l=r+c(t),u=!1;if(t===n)u=t.scrollHeight-l<=o;else{var d=s(n)-s(t)+n.offsetHeight+r;u=l+o>=d}u&&this.expression&&this.vm.$get(this.expression)}},bind:function(){var e=this,t=this.el;e.vm.$on("hook:ready",function(){l(t)&&e.doBind()}),this.bindTryCount=0;var n=function i(){e.bindTryCount>10||(e.bindTryCount++,l(t)?e.doBind():setTimeout(i,50))};n()},unbind:function(){this.scrollEventTarget.removeEventListener("scroll",this.scrollListener)}};window.Vue&&(window.infiniteScroll=u,Vue.use(t)),e.install=t,e.infiniteScroll=u})},202:function(e,t,n){"use strict";e.exports=n(203)},203:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}var o=n(197),r=i(o);n(5),r["default"].name="infinite-scroll",e.exports=r["default"]}})}); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("lazyload",[],t):"object"==typeof exports?exports.lazyload=t():(e.MINT=e.MINT||{},e.MINT.lazyload=t())}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}({0:function(e,t,n){e.exports=n(203)},5:function(e,t){},197:function(e,t){"use strict";t.install=function(e,t){var n="data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEXs7Oxc9QatAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==";t||(t={error:n,loading:n,"try":3});var r={error:t.error?t.error:n,loading:t.loading?t.loading:n,hasbind:!1,isInChild:!1,childEl:null,"try":t["try"]?t["try"]:1},i=[],o=function(e,t){var n=void 0;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}},l=o(function(){for(var e=0;e<i.length;++e){var t=i[e];s(t)}},300),s=function(e){var t=void 0,n=void 0;e.parentEl?(t=e.parentEl.offsetHeight,n=e.parentEl.scrollTop):(t=window.screen.availHeight,n=document.documentElement.scrollTop||document.body.scrollTop);var r=(n+t)*window.devicePixelRatio*1.3;e.y<r&&d(e)},d=function(e){return!(e["try"]>=r["try"])&&(e["try"]++,void c(e).then(function(t){var n=i.indexOf(e);n!==-1&&i.splice(n,1),e.bindType?e.el.setAttribute("style",e.bindType+": url("+e.src+")"):e.el.setAttribute("src",e.src),e.el.setAttribute("lazy","loaded")})["catch"](function(t){e.bindType?e.el.setAttribute("style",e.bindType+": url("+r.error+")"):e.el.setAttribute("src",r.error),e.el.setAttribute("lazy","error")}))},c=function(e){return e.bindType?e.el.setAttribute("style",e.bindType+": url("+r.loading+")"):e.el.setAttribute("src",r.loading),new Promise(function(t,n){var r=new Image;r.src=e.src,r.onload=function(){t(e.src)},r.onerror=function(){n()}})},u=function(e){var t=void 0,r=i.length;for(e=e||n,t=0;t<r;t++)i[t].src==e&&i.splice(t,1);0==i.length&&(window.removeEventListener("scroll",l),window.removeEventListener("wheel",l),window.removeEventListener("mousewheel",l),window.removeEventListener("resize",l))},a=function(e){var t=e.offsetTop,n=e.offsetHeight;for(t;e=e.offsetParent;)t+=e.offsetTop;return{y:(t+n)*window.devicePixelRatio}};e.directive("lazy",{bind:function(){var t=this;r.hasbind||e.nextTick(function(){document.getElementById(Object.keys(t.modifiers)[0])&&(r.isInChild=!0,r.childEl=document.getElementById(Object.keys(t.modifiers)[0])),r.hasbind=!0,r.isInChild&&r.childEl.addEventListener("scroll",l),window.addEventListener("scroll",l),window.addEventListener("wheel",l),window.addEventListener("mousewheel",l),window.addEventListener("resize",l),l()})},update:function(e,t){var n=this;this.el.setAttribute("lazy","loading"),this.arg?this.el.setAttribute("style",this.arg+": url("+r.loading+")"):this.el.setAttribute("src",r.loading);var o=null;this.vm.$nextTick(function(){document.getElementById(Object.keys(n.modifiers)[0])&&(o=document.getElementById(Object.keys(n.modifiers)[0]));var t=a(n.el);i.push({bindType:n.arg,"try":0,parentEl:o,el:n.el,src:e,y:t.y}),l()})},unbind:function(e){u(e)}})}},203:function(e,t,n){"use strict";e.exports=n(204)},204:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(197),o=r(i);n(5),o["default"].name="lazy",e.exports=o["default"]}})}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("lazyload",[],t):"object"==typeof exports?exports.lazyload=t():(e.MINT=e.MINT||{},e.MINT.lazyload=t())}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}({0:function(e,t,n){e.exports=n(204)},5:function(e,t){},198:function(e,t){"use strict";t.install=function(e,t){var n="data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEXs7Oxc9QatAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==";t||(t={error:n,loading:n,"try":3});var r={error:t.error?t.error:n,loading:t.loading?t.loading:n,hasbind:!1,isInChild:!1,childEl:null,"try":t["try"]?t["try"]:1},i=[],o=function(e,t){var n=void 0;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}},l=o(function(){for(var e=0;e<i.length;++e){var t=i[e];s(t)}},300),s=function(e){var t=void 0,n=void 0;e.parentEl?(t=e.parentEl.offsetHeight,n=e.parentEl.scrollTop):(t=window.screen.availHeight,n=document.documentElement.scrollTop||document.body.scrollTop);var r=(n+t)*window.devicePixelRatio*1.3;e.y<r&&d(e)},d=function(e){return!(e["try"]>=r["try"])&&(e["try"]++,void c(e).then(function(t){var n=i.indexOf(e);n!==-1&&i.splice(n,1),e.bindType?e.el.setAttribute("style",e.bindType+": url("+e.src+")"):e.el.setAttribute("src",e.src),e.el.setAttribute("lazy","loaded")})["catch"](function(t){e.bindType?e.el.setAttribute("style",e.bindType+": url("+r.error+")"):e.el.setAttribute("src",r.error),e.el.setAttribute("lazy","error")}))},c=function(e){return e.bindType?e.el.setAttribute("style",e.bindType+": url("+r.loading+")"):e.el.setAttribute("src",r.loading),new Promise(function(t,n){var r=new Image;r.src=e.src,r.onload=function(){t(e.src)},r.onerror=function(){n()}})},u=function(e){var t=void 0,r=i.length;for(e=e||n,t=0;t<r;t++)i[t].src==e&&i.splice(t,1);0==i.length&&(window.removeEventListener("scroll",l),window.removeEventListener("wheel",l),window.removeEventListener("mousewheel",l),window.removeEventListener("resize",l))},a=function(e){var t=e.offsetTop,n=e.offsetHeight;for(t;e=e.offsetParent;)t+=e.offsetTop;return{y:(t+n)*window.devicePixelRatio}};e.directive("lazy",{bind:function(){var t=this;r.hasbind||e.nextTick(function(){document.getElementById(Object.keys(t.modifiers)[0])&&(r.isInChild=!0,r.childEl=document.getElementById(Object.keys(t.modifiers)[0])),r.hasbind=!0,r.isInChild&&r.childEl.addEventListener("scroll",l),window.addEventListener("scroll",l),window.addEventListener("wheel",l),window.addEventListener("mousewheel",l),window.addEventListener("resize",l),l()})},update:function(e,t){var n=this;this.el.setAttribute("lazy","loading"),this.arg?this.el.setAttribute("style",this.arg+": url("+r.loading+")"):this.el.setAttribute("src",r.loading);var o=null;this.vm.$nextTick(function(){document.getElementById(Object.keys(n.modifiers)[0])&&(o=document.getElementById(Object.keys(n.modifiers)[0]));var t=a(n.el);i.push({bindType:n.arg,"try":0,parentEl:o,el:n.el,src:e,y:t.y}),l()})},unbind:function(e){u(e)}})}},204:function(e,t,n){"use strict";e.exports=n(205)},205:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var i=n(198),o=r(i);n(5),o["default"].name="lazy",e.exports=o["default"]}})}); |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("message-box",["vue"],t):"object"==typeof exports?exports["message-box"]=t(require("vue")):(e.MINT=e.MINT||{},e.MINT["message-box"]=t(e.Vue))}(this,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var o={};return t.m=e,t.c=o,t.p="/dist/",t(0)}({0:function(e,t,o){e.exports=o(205)},1:function(t,o){t.exports=e},6:function(e,t,o){!function(t,n){e.exports=n(o(1))}(this,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=n(i),r=o(2),l=o(1),a=n(l);o(3);var u=1,c=[],d=function(e){if(-1===c.indexOf(e)){var t=function(e){var t=e.__vue__;if(!t){var o=e.previousSibling;o.__vue__&&(t=o.__vue__)}return t};s["default"].transition(e,{afterEnter:function(e){var o=t(e);o&&o.doAfterOpen&&o.doAfterOpen()},afterLeave:function(e){var o=t(e);o&&o.doAfterClose&&o.doAfterClose()}})}},f=function(e){return 3===e.nodeType?e.nextElementSibling:e};t["default"]={props:{visible:{type:Boolean,twoWay:!0,"default":!1},transition:{type:String,"default":""},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,"default":!1},modalClass:{},closeOnPressEscape:{type:Boolean,"default":!1},closeOnClickModal:{type:Boolean,"default":!1}},created:function(){this.transition&&d(this.transition)},compiled:function(){this._popupId="popup-"+u++,a["default"].register(this._popupId,this)},beforeDestroy:function(){a["default"].deregister(this._popupId),a["default"].closeModal(this._popupId)},data:function(){return{bodyOverflow:null,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,s["default"].nextTick(function(){t.open()}))}else this.close()}},methods:{open:function(e){var t=this;if(!this.rendered)return this.rendered=!0,void(this.visible=!0);var o=(0,r.merge)({},this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var n=Number(o.openDelay);n>0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(o)},n):this.doOpen(o)},doOpen:function(e){if(!this.willOpen||this.willOpen()){this._opening=!0,this.visible=!0;var t=f(this.$el),o=e.modal;o&&(this._closing&&(a["default"].closeModal(this._popupId),this._closing=!1),a["default"].openModal(this._popupId,a["default"].nextZIndex(),t,e.modalClass),this.bodyOverflow||(this.bodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden"),"static"===getComputedStyle(t).position&&(t.style.position="absolute");var n=e.zIndex;o?t.style.zIndex=a["default"].nextZIndex():n&&(t.style.zIndex=n),this.onOpen&&this.onOpen(),this.transition||this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(function(){e._closeTimer=null,e.doClose()},t):this.doClose()}},doClose:function(){this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),this.modal&&(document.body.style.overflow=this.bodyOverflow),this.transition||this.doAfterClose()},doAfterClose:function(){a["default"].closeModal(this._popupId),this._closing=!1}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){var e=i.modalDom;return e||(e=document.createElement("div"),i.modalDom=e,e.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),e.addEventListener("click",function(){i.doOnModalClick&&i.doOnModalClick()})),e},n={},i={zIndex:1e3,getInstance:function(e){return n[e]},register:function(e,t){e&&t&&(n[e]=t)},deregister:function(e){e&&(n[e]=null,delete n[e])},nextZIndex:function(){return i.zIndex++},modalStack:[],doOnModalClick:function(){var e=i.modalStack[i.modalStack.length-1];if(e){var t=i.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i){if(e&&void 0!==t){for(var s=this.modalStack,r=0,l=s.length;l>r;r++){var a=s[r];if(a.id===e)return}var u=o();if(u.classList.add("v-modal"),u.classList.add("v-modal-enter"),i){var c=i.trim().split(/\s+/);c.forEach(function(e){return u.classList.add(e)})}setTimeout(function(){u.classList.remove("v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(u):document.body.appendChild(u),t&&(u.style.zIndex=t),u.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=o();if(t.length>0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var s=i.modalClass.trim().split(/\s+/);s.forEach(function(e){return n.classList.remove(e)})}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var r=t.length-1;r>=0;r--)if(t[r].id===e){t.splice(r,1);break}}0===t.length&&(n.classList.add("v-modal-leave"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none"),n.classList.remove("v-modal-leave")},200))}};window.addEventListener("keydown",function(e){if(27===e.keyCode&&i.modalStack.length>0){var t=i.modalStack[i.modalStack.length-1];if(!t)return;var o=i.getInstance(t.id);o.closeOnPressEscape&&o.close()}}),t["default"]=i},function(e,t){"use strict";function o(e){for(var t=1,o=arguments.length;o>t;t++){var n=arguments[t];for(var i in n)if(n.hasOwnProperty(i)){var s=n[i];void 0!==s&&(e[i]=s)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.merge=o},function(e,t){},function(t,o){t.exports=e}])})},153:function(e,t){},190:function(e,t){e.exports="<div class=msgbox-wrapper> <div class=msgbox v-if=rendered v-show=visible transition=pop-bounce> <div class=msgbox-header v-if=\"title !== ''\"> <div class=msgbox-title>{{ title }}</div> </div> <div class=msgbox-content v-if=\"message !== ''\"> <div class=\"msgbox-status d-icon {{ type ? 'icon-' + type : '' }}\"></div> <div class=msgbox-message><p>{{ message }}</p></div> <div class=msgbox-input v-show=showInput> <input type=text v-model=inputValue :placeholder=inputPlaceholder v-el:input/> <div class=msgbox-errormsg :style=\"{ visibility: !!editorErrorMessage ? 'visible' : 'hidden' }\">{{editorErrorMessage}}</div> </div> </div> <div class=msgbox-btns :class=\"{ 'msgbox-btns-reverse': confirmButtonPosition === 'left' }\"> <button class=\"{{ cancelButtonClasses }}\" v-show=showCancelButton @click=\"handleAction('cancel')\">{{ cancelButtonText }}</button> <button class=\"{{ confirmButtonClasses }}\" v-show=showConfirmButton @click=\"handleAction('confirm')\">{{ confirmButtonText }}</button> </div> </div> </div>"},193:function(e,t,o){var n,i;o(215),o(213),n=o(210),i=o(190),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),i&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=i)},205:function(e,t,o){"use strict";e.exports=o(206)},206:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var i=o(211),s=n(i);o(153),e.exports=s["default"]},210:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=n(i),r="确定",l="取消";t["default"]={mixins:[s["default"]],props:{modal:{"default":!0},closeOnPressEscape:{"default":!0}},computed:{confirmButtonClasses:function(){var e="msgbox-btn msgbox-confirm "+this.confirmButtonClass;return this.confirmButtonHighlight&&(e+=" msgbox-confirm-highlight"),e},cancelButtonClasses:function(){var e="msgbox-btn msgbox-cancel "+this.cancelButtonClass;return this.cancelButtonHighlight&&(e+=" msgbox-cancel-highlight"),e}},methods:{handleAction:function(e){if("prompt"!==this.$type||"confirm"!==e||this.validate()){var t=this.callback;this.visible=!1,t(e)}},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!",!1;var t=this.inputValidator;if("function"==typeof t){var o=t(this.inputValue);if(o===!1)return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!",!1;if("string"==typeof o)return this.editorErrorMessage=o,!1}}return this.editorErrorMessage="",!0}},watch:{inputValue:function(){"prompt"===this.$type&&this.validate()},visible:function(e){var t=this;e&&"prompt"===this.$type&&setTimeout(function(){t.$els.input&&t.$els.input.focus()},500)}},data:function(){return{title:"",message:"",type:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:r,cancelButtonText:l,confirmButtonPosition:"right",confirmButtonHighlight:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",cancelButtonHighlight:!1,editorErrorMessage:null,callback:null}}}},211:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.MessageBox=void 0;var i,s,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=o(1),a=n(l),u=o(193),c=n(u),d="确定",f="取消",p={title:"",message:"",type:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:d,cancelButtonText:f,confirmButtonClass:"",cancelButtonClass:""},h=function(e){for(var t=1,o=arguments.length;t<o;t++){var n=arguments[t];for(var i in n)if(n.hasOwnProperty(i)){var s=n[i];void 0!==s&&(e[i]=s)}}return e},m=a["default"].extend(c["default"]),v=[],g=function(){s=new m({el:document.createElement("div")}),s.callback=function(e){if(i){var t=i.callback;if("function"==typeof t&&(s.showInput?t(s.inputValue,e):t(e)),i.resolve){var o=i.options.$type;"confirm"===o||"prompt"===o?"confirm"===e?s.showInput?i.resolve(s.inputValue,e):i.resolve(e):"cancel"===e&&i.reject&&i.reject(e):i.resolve(e)}}}},y=function(){if(s||g(),(!s.visible||s.closeTimer)&&v.length>0){i=v.shift();var e=i.options;for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);s.$appendTo(document.body),a["default"].nextTick(function(){s.visible=!0})}},b=function x(e,t){return"string"==typeof e?(e={title:e},arguments[1]&&(e.message=arguments[1]),arguments[2]&&(e.type=arguments[2])):e.callback&&!t&&(t=e.callback),"undefined"!=typeof Promise?new Promise(function(o,n){v.push({options:h({},p,x.defaults||{},e),callback:t,resolve:o,reject:n}),y()}):(v.push({options:h({},p,x.defaults||{},e),callback:t}),void y())};b.setDefaults=function(e){b.defaults=e},b.alert=function(e,t,o){return"object"===("undefined"==typeof t?"undefined":r(t))&&(o=t,t=""),b(h({title:t,message:e,$type:"alert"},o))},b.confirm=function(e,t,o){return"object"===("undefined"==typeof t?"undefined":r(t))&&(o=t,t=""),b(h({title:t,message:e,$type:"confirm",showCancelButton:!0},o))},b.prompt=function(e,t,o){return"object"===("undefined"==typeof t?"undefined":r(t))&&(o=t,t=""),b(h({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},o))},b.close=function(){s.visible=!1,v=[],i=null},t["default"]=b,t.MessageBox=b},213:function(e,t){},215:function(e,t){}})}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("message-box",["vue"],t):"object"==typeof exports?exports["message-box"]=t(require("vue")):(e.MINT=e.MINT||{},e.MINT["message-box"]=t(e.Vue))}(this,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var o={};return t.m=e,t.c=o,t.p="/dist/",t(0)}({0:function(e,t,o){e.exports=o(206)},1:function(t,o){t.exports=e},6:function(e,t,o){!function(t,n){e.exports=n(o(1))}(this,function(e){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=n(i),r=o(2),l=o(1),a=n(l);o(3);var u=1,c=[],d=function(e){if(-1===c.indexOf(e)){var t=function(e){var t=e.__vue__;if(!t){var o=e.previousSibling;o.__vue__&&(t=o.__vue__)}return t};s["default"].transition(e,{afterEnter:function(e){var o=t(e);o&&o.doAfterOpen&&o.doAfterOpen()},afterLeave:function(e){var o=t(e);o&&o.doAfterClose&&o.doAfterClose()}})}},f=function(e){return 3===e.nodeType?e.nextElementSibling:e};t["default"]={props:{visible:{type:Boolean,twoWay:!0,"default":!1},transition:{type:String,"default":""},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,"default":!1},modalClass:{},closeOnPressEscape:{type:Boolean,"default":!1},closeOnClickModal:{type:Boolean,"default":!1}},created:function(){this.transition&&d(this.transition)},compiled:function(){this._popupId="popup-"+u++,a["default"].register(this._popupId,this)},beforeDestroy:function(){a["default"].deregister(this._popupId),a["default"].closeModal(this._popupId)},data:function(){return{bodyOverflow:null,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,s["default"].nextTick(function(){t.open()}))}else this.close()}},methods:{open:function(e){var t=this;if(!this.rendered)return this.rendered=!0,void(this.visible=!0);var o=(0,r.merge)({},this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var n=Number(o.openDelay);n>0?this._openTimer=setTimeout(function(){t._openTimer=null,t.doOpen(o)},n):this.doOpen(o)},doOpen:function(e){if(!this.willOpen||this.willOpen()){this._opening=!0,this.visible=!0;var t=f(this.$el),o=e.modal;o&&(this._closing&&(a["default"].closeModal(this._popupId),this._closing=!1),a["default"].openModal(this._popupId,a["default"].nextZIndex(),t,e.modalClass),this.bodyOverflow||(this.bodyOverflow=document.body.style.overflow),document.body.style.overflow="hidden"),"static"===getComputedStyle(t).position&&(t.style.position="absolute");var n=e.zIndex;o?t.style.zIndex=a["default"].nextZIndex():n&&(t.style.zIndex=n),this.onOpen&&this.onOpen(),this.transition||this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout(function(){e._closeTimer=null,e.doClose()},t):this.doClose()}},doClose:function(){this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),this.modal&&(document.body.style.overflow=this.bodyOverflow),this.transition||this.doAfterClose()},doAfterClose:function(){a["default"].closeModal(this._popupId),this._closing=!1}}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){var e=i.modalDom;return e||(e=document.createElement("div"),i.modalDom=e,e.addEventListener("touchmove",function(e){e.preventDefault(),e.stopPropagation()}),e.addEventListener("click",function(){i.doOnModalClick&&i.doOnModalClick()})),e},n={},i={zIndex:1e3,getInstance:function(e){return n[e]},register:function(e,t){e&&t&&(n[e]=t)},deregister:function(e){e&&(n[e]=null,delete n[e])},nextZIndex:function(){return i.zIndex++},modalStack:[],doOnModalClick:function(){var e=i.modalStack[i.modalStack.length-1];if(e){var t=i.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i){if(e&&void 0!==t){for(var s=this.modalStack,r=0,l=s.length;l>r;r++){var a=s[r];if(a.id===e)return}var u=o();if(u.classList.add("v-modal"),u.classList.add("v-modal-enter"),i){var c=i.trim().split(/\s+/);c.forEach(function(e){return u.classList.add(e)})}setTimeout(function(){u.classList.remove("v-modal-enter")},200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(u):document.body.appendChild(u),t&&(u.style.zIndex=t),u.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=o();if(t.length>0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var s=i.modalClass.trim().split(/\s+/);s.forEach(function(e){return n.classList.remove(e)})}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var r=t.length-1;r>=0;r--)if(t[r].id===e){t.splice(r,1);break}}0===t.length&&(n.classList.add("v-modal-leave"),setTimeout(function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none"),n.classList.remove("v-modal-leave")},200))}};window.addEventListener("keydown",function(e){if(27===e.keyCode&&i.modalStack.length>0){var t=i.modalStack[i.modalStack.length-1];if(!t)return;var o=i.getInstance(t.id);o.closeOnPressEscape&&o.close()}}),t["default"]=i},function(e,t){"use strict";function o(e){for(var t=1,o=arguments.length;o>t;t++){var n=arguments[t];for(var i in n)if(n.hasOwnProperty(i)){var s=n[i];void 0!==s&&(e[i]=s)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.merge=o},function(e,t){},function(t,o){t.exports=e}])})},154:function(e,t){},191:function(e,t){e.exports="<div class=msgbox-wrapper> <div class=msgbox v-if=rendered v-show=visible transition=pop-bounce> <div class=msgbox-header v-if=\"title !== ''\"> <div class=msgbox-title>{{ title }}</div> </div> <div class=msgbox-content v-if=\"message !== ''\"> <div class=\"msgbox-status d-icon {{ type ? 'icon-' + type : '' }}\"></div> <div class=msgbox-message><p>{{ message }}</p></div> <div class=msgbox-input v-show=showInput> <input type=text v-model=inputValue :placeholder=inputPlaceholder v-el:input/> <div class=msgbox-errormsg :style=\"{ visibility: !!editorErrorMessage ? 'visible' : 'hidden' }\">{{editorErrorMessage}}</div> </div> </div> <div class=msgbox-btns :class=\"{ 'msgbox-btns-reverse': confirmButtonPosition === 'left' }\"> <button class=\"{{ cancelButtonClasses }}\" v-show=showCancelButton @click=\"handleAction('cancel')\">{{ cancelButtonText }}</button> <button class=\"{{ confirmButtonClasses }}\" v-show=showConfirmButton @click=\"handleAction('confirm')\">{{ confirmButtonText }}</button> </div> </div> </div>"},194:function(e,t,o){var n,i;o(215),o(214),n=o(211),i=o(191),e.exports=n||{},e.exports.__esModule&&(e.exports=e.exports["default"]),i&&(("function"==typeof e.exports?e.exports.options||(e.exports.options={}):e.exports).template=i)},206:function(e,t,o){"use strict";e.exports=o(207)},207:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var i=o(212),s=n(i);o(154),e.exports=s["default"]},211:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=n(i),r="确定",l="取消";t["default"]={mixins:[s["default"]],props:{modal:{"default":!0},closeOnPressEscape:{"default":!0}},computed:{confirmButtonClasses:function(){var e="msgbox-btn msgbox-confirm "+this.confirmButtonClass;return this.confirmButtonHighlight&&(e+=" msgbox-confirm-highlight"),e},cancelButtonClasses:function(){var e="msgbox-btn msgbox-cancel "+this.cancelButtonClass;return this.cancelButtonHighlight&&(e+=" msgbox-cancel-highlight"),e}},methods:{handleAction:function(e){if("prompt"!==this.$type||"confirm"!==e||this.validate()){var t=this.callback;this.visible=!1,t(e)}},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!",!1;var t=this.inputValidator;if("function"==typeof t){var o=t(this.inputValue);if(o===!1)return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!",!1;if("string"==typeof o)return this.editorErrorMessage=o,!1}}return this.editorErrorMessage="",!0}},watch:{inputValue:function(){"prompt"===this.$type&&this.validate()},visible:function(e){var t=this;e&&"prompt"===this.$type&&setTimeout(function(){t.$els.input&&t.$els.input.focus()},500)}},data:function(){return{title:"",message:"",type:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:r,cancelButtonText:l,confirmButtonPosition:"right",confirmButtonHighlight:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",cancelButtonHighlight:!1,editorErrorMessage:null,callback:null}}}},212:function(e,t,o){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.MessageBox=void 0;var i,s,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=o(1),a=n(l),u=o(194),c=n(u),d="确定",f="取消",p={title:"",message:"",type:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:d,cancelButtonText:f,confirmButtonClass:"",cancelButtonClass:""},h=function(e){for(var t=1,o=arguments.length;t<o;t++){var n=arguments[t];for(var i in n)if(n.hasOwnProperty(i)){var s=n[i];void 0!==s&&(e[i]=s)}}return e},m=a["default"].extend(c["default"]),v=[],g=function(){s=new m({el:document.createElement("div")}),s.callback=function(e){if(i){var t=i.callback;if("function"==typeof t&&(s.showInput?t(s.inputValue,e):t(e)),i.resolve){var o=i.options.$type;"confirm"===o||"prompt"===o?"confirm"===e?s.showInput?i.resolve({value:s.inputValue,action:e}):i.resolve(e):"cancel"===e&&i.reject&&i.reject(e):i.resolve(e)}}}},y=function(){if(s||g(),(!s.visible||s.closeTimer)&&v.length>0){i=v.shift();var e=i.options;for(var t in e)e.hasOwnProperty(t)&&(s[t]=e[t]);s.$appendTo(document.body),a["default"].nextTick(function(){s.visible=!0})}},b=function x(e,t){return"string"==typeof e?(e={title:e},arguments[1]&&(e.message=arguments[1]),arguments[2]&&(e.type=arguments[2])):e.callback&&!t&&(t=e.callback),"undefined"!=typeof Promise?new Promise(function(o,n){v.push({options:h({},p,x.defaults||{},e),callback:t,resolve:o,reject:n}),y()}):(v.push({options:h({},p,x.defaults||{},e),callback:t}),void y())};b.setDefaults=function(e){b.defaults=e},b.alert=function(e,t,o){return"object"===("undefined"==typeof t?"undefined":r(t))&&(o=t,t=""),b(h({title:t,message:e,$type:"alert"},o))},b.confirm=function(e,t,o){return"object"===("undefined"==typeof t?"undefined":r(t))&&(o=t,t=""),b(h({title:t,message:e,$type:"confirm",showCancelButton:!0},o))},b.prompt=function(e,t,o){return"object"===("undefined"==typeof t?"undefined":r(t))&&(o=t,t=""),b(h({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},o))},b.close=function(){s.visible=!1,v=[],i=null},t["default"]=b,t.MessageBox=b},214:function(e,t){},215:function(e,t){}})}); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("toast",["vue"],e):"object"==typeof exports?exports.toast=e(require("vue")):(t.MINT=t.MINT||{},t.MINT.toast=e(t.Vue))}(this,function(t){return function(t){function e(s){if(o[s])return o[s].exports;var n=o[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="/dist/",e(0)}({0:function(t,e,o){t.exports=o(207)},1:function(e,o){e.exports=t},152:function(t,e){},198:function(t,e,o){!function(e,s){t.exports=s(o(1))}(this,function(t){return function(t){function e(s){if(o[s])return o[s].exports;var n=o[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="/lib/",e(0)}([function(t,e,o){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t=t||{};var e=void 0,o=void 0,s=void 0,n=void 0,r=void 0;"string"==typeof t?(e=t,s=3e3,o="middle",n="",r=""):(e=t.message,s=t.duration||3e3,o=t.position||"middle",n=t.className||"",r=t.iconClass||"");var u=a();u.message=e,u.position=o,u.className=n,u.iconClass=r,i["default"].nextTick(function(){u.$appendTo(document.body),setTimeout(function(){u.$remove(),p(u)},s)})};var n=o(5),i=s(n),r=i["default"].extend(o(3)),u=[],a=function(){if(u.length>0){var t=u[0];return u.splice(0,1),t}return new r({el:document.createElement("div")})},p=function(t){t&&u.push(t)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={props:{message:String,className:{type:String,"default":""},position:{type:String,"default":"middle"},iconClass:{type:String,"default":""}},computed:{customClass:function(){var t=[];switch(this.position){case"top":t.push("is-placetop");break;case"bottom":t.push("is-placebottom");break;default:t.push("is-placemiddle")}return t.push(this.className),t.join(" ")}}}},function(t,e){t.exports="<div class=\"mint-toast {{ customClass }}\" transition=mint-toast-pop :style=\"{ 'padding': iconClass === '' ? '10px' : '20px' }\"> <i class=\"mint-toast-icon {{ iconClass }}\" v-if=\"iconClass !== ''\"></i> <span class=mint-toast-text :style=\"{ 'padding-top': iconClass === '' ? '0' : '10px' }\">{{ message }}</span> </div>"},function(t,e,o){var s,n;o(4),s=o(1),n=o(2),t.exports=s||{},t.exports.__esModule&&(t.exports=t.exports["default"]),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e){},function(e,o){e.exports=t}])})},207:function(t,e,o){"use strict";t.exports=o(208)},208:function(t,e,o){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}var n=o(198),i=s(n);o(152),t.exports=i["default"]}})}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("toast",["vue"],e):"object"==typeof exports?exports.toast=e(require("vue")):(t.MINT=t.MINT||{},t.MINT.toast=e(t.Vue))}(this,function(t){return function(t){function e(s){if(o[s])return o[s].exports;var n=o[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="/dist/",e(0)}({0:function(t,e,o){t.exports=o(208)},1:function(e,o){e.exports=t},152:function(t,e){},199:function(t,e,o){!function(e,s){t.exports=s(o(1))}(this,function(t){return function(t){function e(s){if(o[s])return o[s].exports;var n=o[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var o={};return e.m=t,e.c=o,e.p="/lib/",e(0)}([function(t,e,o){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){t=t||{};var e=void 0,o=void 0,s=void 0,n=void 0,r=void 0;"string"==typeof t?(e=t,s=3e3,o="middle",n="",r=""):(e=t.message,s=t.duration||3e3,o=t.position||"middle",n=t.className||"",r=t.iconClass||"");var u=a();u.message=e,u.position=o,u.className=n,u.iconClass=r,i["default"].nextTick(function(){u.$appendTo(document.body),setTimeout(function(){u.$remove(),p(u)},s)})};var n=o(5),i=s(n),r=i["default"].extend(o(3)),u=[],a=function(){if(u.length>0){var t=u[0];return u.splice(0,1),t}return new r({el:document.createElement("div")})},p=function(t){t&&u.push(t)}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={props:{message:String,className:{type:String,"default":""},position:{type:String,"default":"middle"},iconClass:{type:String,"default":""}},computed:{customClass:function(){var t=[];switch(this.position){case"top":t.push("is-placetop");break;case"bottom":t.push("is-placebottom");break;default:t.push("is-placemiddle")}return t.push(this.className),t.join(" ")}}}},function(t,e){t.exports="<div class=\"mint-toast {{ customClass }}\" transition=mint-toast-pop :style=\"{ 'padding': iconClass === '' ? '10px' : '20px' }\"> <i class=\"mint-toast-icon {{ iconClass }}\" v-if=\"iconClass !== ''\"></i> <span class=mint-toast-text :style=\"{ 'padding-top': iconClass === '' ? '0' : '10px' }\">{{ message }}</span> </div>"},function(t,e,o){var s,n;o(4),s=o(1),n=o(2),t.exports=s||{},t.exports.__esModule&&(t.exports=t.exports["default"]),n&&(("function"==typeof t.exports?t.exports.options:t.exports).template=n)},function(t,e){},function(e,o){e.exports=t}])})},208:function(t,e,o){"use strict";t.exports=o(209)},209:function(t,e,o){"use strict";function s(t){return t&&t.__esModule?t:{"default":t}}var n=o(199),i=s(n);o(152),t.exports=i["default"]}})}); |
{ | ||
"name": "mint-ui", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"description": "Mobile UI elements for vue.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
297401