From 1f2abc75903f217f78fe7ddea58d24db118a3f26 Mon Sep 17 00:00:00 2001 From: Duc Doan Date: Thu, 25 Apr 2019 16:44:27 +0700 Subject: [PATCH] v1.0.2 --- dist/css/bootstrap-msg.css | 2 +- dist/css/bootstrap-msg.css.map | 2 +- dist/js/bootstrap-msg.js | 4 ++-- dist/js/bootstrap-msg.js.map | 2 +- index.js | 2 +- package.json | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/css/bootstrap-msg.css b/dist/css/bootstrap-msg.css index df9b766..e1c2c7d 100644 --- a/dist/css/bootstrap-msg.css +++ b/dist/css/bootstrap-msg.css @@ -1,2 +1,2 @@ -/*! BootstrapMsg v1.0.1 | Copyright (c) 2016-present Duc Doan (ducdhm@gmail.com) */#msg{position:fixed;z-index:9999999999;opacity:0;width:400px;top:-100%;left:50%;transform:translateX(-50%);transition:all .3s ease-in-out;overflow:hidden}#msg i{font-size:20px;vertical-align:middle;width:1em;text-align:center}#msg span{font-size:15px}#msg .msg-progress{position:absolute;margin:0;padding:0;border-width:2px 0;bottom:0;left:0;width:0;border-radius:0}#msg.showed{top:50px;opacity:1}@media (min-width:1200px){#msg{width:600px}}@media (max-width:479px){#msg{width:300px}} +/*! BootstrapMsg v1.0.2 | Copyright (c) 2016-present Duc Doan (ducdhm@gmail.com) */#msg{position:fixed;z-index:9999999999;opacity:0;width:400px;top:-100%;left:50%;transform:translateX(-50%);transition:all .3s ease-in-out;overflow:hidden}#msg i{font-size:20px;vertical-align:middle;width:1em;text-align:center}#msg span{font-size:15px}#msg .msg-progress{position:absolute;margin:0;padding:0;border-width:2px 0;bottom:0;left:0;width:0;border-radius:0}#msg.showed{top:50px;opacity:1}@media (min-width:1200px){#msg{width:600px}}@media (max-width:479px){#msg{width:300px}} /*# sourceMappingURL=bootstrap-msg.css.map */ \ No newline at end of file diff --git a/dist/css/bootstrap-msg.css.map b/dist/css/bootstrap-msg.css.map index 3df40ee..ae08b6b 100644 --- a/dist/css/bootstrap-msg.css.map +++ b/dist/css/bootstrap-msg.css.map @@ -1 +1 @@ -{"version":3,"sources":["bootstrap-msg.css","css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/bootstrap-msg.scss"],"names":[],"mappings":"AAAA,kFAAkF,CCAlF,KACA,cAAA,CACA,kBAAA,CACA,SAAA,CACA,WAAA,CACA,SAAA,CACA,QAAA,CACA,0BAAA,CACA,8BAAA,CACA,eAAmB,CACnB,OACA,cAAA,CACA,qBAAA,CACA,SAAA,CACA,iBAAuB,CACvB,UACA,cAAoB,CACpB,mBACA,iBAAA,CACA,QAAA,CACA,SAAA,CACA,kBAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,eAAqB,CACrB,YACA,QAAA,CACA,SAAe,CACf,0BACA,KACA,WAAmB,CAAE,CACrB,yBACA,KACA,WAAmB,CAAE","file":"bootstrap-msg.css","sourcesContent":["/*! BootstrapMsg v1.0.1 | Copyright (c) 2016-present Duc Doan (ducdhm@gmail.com) */\n#msg {\n position: fixed;\n z-index: 9999999999;\n opacity: 0;\n width: 400px;\n top: -100%;\n left: 50%;\n transform: translateX(-50%);\n transition: all 0.3s ease-in-out;\n overflow: hidden; }\n #msg i {\n font-size: 20px;\n vertical-align: middle;\n width: 1em;\n text-align: center; }\n #msg span {\n font-size: 15px; }\n #msg .msg-progress {\n position: absolute;\n margin: 0;\n padding: 0;\n border-width: 2px 0;\n bottom: 0;\n left: 0;\n width: 0;\n border-radius: 0; }\n #msg.showed {\n top: 50px;\n opacity: 1; }\n @media (min-width: 1200px) {\n #msg {\n width: 600px; } }\n @media (max-width: 479px) {\n #msg {\n width: 300px; } }\n\n/*# sourceMappingURL=bootstrap-msg.css.map */","#msg {\n position: fixed;\n z-index: 9999999999;\n opacity: 0;\n width: 400px;\n top: -100%;\n left: 50%;\n transform: translateX(-50%);\n transition: all 0.3s ease-in-out;\n overflow: hidden; }\n #msg i {\n font-size: 20px;\n vertical-align: middle;\n width: 1em;\n text-align: center; }\n #msg span {\n font-size: 15px; }\n #msg .msg-progress {\n position: absolute;\n margin: 0;\n padding: 0;\n border-width: 2px 0;\n bottom: 0;\n left: 0;\n width: 0;\n border-radius: 0; }\n #msg.showed {\n top: 50px;\n opacity: 1; }\n @media (min-width: 1200px) {\n #msg {\n width: 600px; } }\n @media (max-width: 479px) {\n #msg {\n width: 300px; } }\n"]} \ No newline at end of file +{"version":3,"sources":["bootstrap-msg.css","css ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./src/bootstrap-msg.scss"],"names":[],"mappings":"AAAA,kFAAkF,CCAlF,KACA,cAAA,CACA,kBAAA,CACA,SAAA,CACA,WAAA,CACA,SAAA,CACA,QAAA,CACA,0BAAA,CACA,8BAAA,CACA,eAAmB,CACnB,OACA,cAAA,CACA,qBAAA,CACA,SAAA,CACA,iBAAuB,CACvB,UACA,cAAoB,CACpB,mBACA,iBAAA,CACA,QAAA,CACA,SAAA,CACA,kBAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,eAAqB,CACrB,YACA,QAAA,CACA,SAAe,CACf,0BACA,KACA,WAAmB,CAAE,CACrB,yBACA,KACA,WAAmB,CAAE","file":"bootstrap-msg.css","sourcesContent":["/*! BootstrapMsg v1.0.2 | Copyright (c) 2016-present Duc Doan (ducdhm@gmail.com) */\n#msg {\n position: fixed;\n z-index: 9999999999;\n opacity: 0;\n width: 400px;\n top: -100%;\n left: 50%;\n transform: translateX(-50%);\n transition: all 0.3s ease-in-out;\n overflow: hidden; }\n #msg i {\n font-size: 20px;\n vertical-align: middle;\n width: 1em;\n text-align: center; }\n #msg span {\n font-size: 15px; }\n #msg .msg-progress {\n position: absolute;\n margin: 0;\n padding: 0;\n border-width: 2px 0;\n bottom: 0;\n left: 0;\n width: 0;\n border-radius: 0; }\n #msg.showed {\n top: 50px;\n opacity: 1; }\n @media (min-width: 1200px) {\n #msg {\n width: 600px; } }\n @media (max-width: 479px) {\n #msg {\n width: 300px; } }\n\n/*# sourceMappingURL=bootstrap-msg.css.map */","#msg {\n position: fixed;\n z-index: 9999999999;\n opacity: 0;\n width: 400px;\n top: -100%;\n left: 50%;\n transform: translateX(-50%);\n transition: all 0.3s ease-in-out;\n overflow: hidden; }\n #msg i {\n font-size: 20px;\n vertical-align: middle;\n width: 1em;\n text-align: center; }\n #msg span {\n font-size: 15px; }\n #msg .msg-progress {\n position: absolute;\n margin: 0;\n padding: 0;\n border-width: 2px 0;\n bottom: 0;\n left: 0;\n width: 0;\n border-radius: 0; }\n #msg.showed {\n top: 50px;\n opacity: 1; }\n @media (min-width: 1200px) {\n #msg {\n width: 600px; } }\n @media (max-width: 479px) {\n #msg {\n width: 300px; } }\n"]} \ No newline at end of file diff --git a/dist/js/bootstrap-msg.js b/dist/js/bootstrap-msg.js index d1d9fb4..db2a3a0 100644 --- a/dist/js/bootstrap-msg.js +++ b/dist/js/bootstrap-msg.js @@ -1,3 +1,3 @@ -/*! BootstrapMsg v1.0.1 | Copyright (c) 2016-present Duc Doan (ducdhm@gmail.com) */ -!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("jQuery")):"function"==typeof define&&define.amd?define("Msg",["jQuery"],n):"object"==typeof exports?exports.Msg=n(require("jQuery")):e.Msg=n(e.jQuery)}("undefined"!=typeof self?self:this,function(e){return function(e){var n={};function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(n){return e[n]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(n,t){n.exports=e},function(e,n,t){},function(e,n,t){"use strict";t.r(n);var i=t(0),o=t.n(i),r={info:"fa fa-info-circle",success:"fa fa-check-circle",warning:"fa fa-exclamation-circle",danger:"fa fa-times-circle"},s={ICONS:{BOOTSTRAP:{info:"glyphicon glyphicon-info-sign",success:"glyphicon glyphicon-ok-sign",warning:"glyphicon glyphicon-exclamation-sign",danger:"glyphicon glyphicon-remove-sign"},FONTAWESOME:r},icon:r,timeout:{info:5e3,success:5e3,warning:5e3,danger:5e3},version:"1.0.1",timer:null,init:function(){var e=this,n=o()('\n
\n×\n\n\n
\n
\n');return n.find('[data-dismiss="msg"]').on("click",function(n){n.preventDefault(),e.hideMsg()}),n.appendTo(document.body),e},showMsg:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout[e],i=this,r=o()("#msg"),s=r.find("div");r.find("span").html(n),r.find("i").attr("class",i.icon[e]),r.attr("class","alert alert-".concat(e," showed")),s.attr("class","alert alert-".concat(e," msg-progress")).css("width",0),clearTimeout(this.timer),t>0&&(s.stop().animate({width:"100%"},t),this.timer=setTimeout(function(){i.hideMsg()},t))},info:function(e,n){this.showMsg("info",e,n)},success:function(e,n){this.showMsg("success",e,n)},warning:function(e,n){this.showMsg("warning",e,n)},error:function(e,n){this.danger(e,n)},danger:function(e,n){this.showMsg("danger",e,n)},hideMsg:function(){o()("#msg").removeClass("showed")}}.init();t.d(n,"default",function(){return s}),t(1)}]).default}); +/*! BootstrapMsg v1.0.2 | Copyright (c) 2016-present Duc Doan (ducdhm@gmail.com) */ +!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("jQuery")):"function"==typeof define&&define.amd?define("Msg",["jQuery"],n):"object"==typeof exports?exports.Msg=n(require("jQuery")):e.Msg=n(e.jQuery)}("undefined"!=typeof self?self:this,function(e){return function(e){var n={};function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(i,o,function(n){return e[n]}.bind(null,o));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(n,t){n.exports=e},function(e,n,t){},function(e,n,t){"use strict";t.r(n);var i=t(0),o=t.n(i),r={info:"fa fa-info-circle",success:"fa fa-check-circle",warning:"fa fa-exclamation-circle",danger:"fa fa-times-circle"},s={ICONS:{BOOTSTRAP:{info:"glyphicon glyphicon-info-sign",success:"glyphicon glyphicon-ok-sign",warning:"glyphicon glyphicon-exclamation-sign",danger:"glyphicon glyphicon-remove-sign"},FONTAWESOME:r},icon:r,timeout:{info:5e3,success:5e3,warning:5e3,danger:5e3},version:"1.0.2",timer:null,init:function(){var e=this,n=o()('\n
\n×\n\n\n
\n
\n');return n.find('[data-dismiss="msg"]').on("click",function(n){n.preventDefault(),e.hideMsg()}),n.appendTo(document.body),e},showMsg:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout[e],i=this,r=o()("#msg"),s=r.find("div");r.find("span").html(n),r.find("i").attr("class",i.icon[e]),r.attr("class","alert alert-".concat(e," showed")),s.attr("class","alert alert-".concat(e," msg-progress")).css("width",0),clearTimeout(this.timer),t>0&&(s.stop().animate({width:"100%"},t),this.timer=setTimeout(function(){i.hideMsg()},t))},info:function(e,n){this.showMsg("info",e,n)},success:function(e,n){this.showMsg("success",e,n)},warning:function(e,n){this.showMsg("warning",e,n)},error:function(e,n){this.danger(e,n)},danger:function(e,n){this.showMsg("danger",e,n)},hideMsg:function(){o()("#msg").removeClass("showed")}}.init();t.d(n,"default",function(){return s}),t(1)}]).default}); //# sourceMappingURL=bootstrap-msg.js.map \ No newline at end of file diff --git a/dist/js/bootstrap-msg.js.map b/dist/js/bootstrap-msg.js.map index a2c66a7..2a5a688 100644 --- a/dist/js/bootstrap-msg.js.map +++ b/dist/js/bootstrap-msg.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack://Msg/webpack/universalModuleDefinition","webpack://Msg/webpack/bootstrap","webpack://Msg/external \"jQuery\"","webpack://Msg/./src/defaults/iconFa.js","webpack://Msg/./src/bootstrap-msg.js","webpack://Msg/./src/defaults/icon.js","webpack://Msg/./src/defaults/timeout.js","webpack://Msg/./src/index.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__0__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","iconFa","info","success","warning","danger","bootstrap_msg","ICONS","BOOTSTRAP","FONTAWESOME","icon","timeout","version","timer","init","msg","$","find","on","e","preventDefault","hideMsg","appendTo","document","body","showMsg","type","message","arguments","length","undefined","progress","html","attr","concat","css","clearTimeout","stop","animate","width","setTimeout","error","removeClass"],"mappings":";CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WACA,mBAAAC,eAAAC,IACAD,OAAA,iBAAAJ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AAM,SAAUyB,EAAShB,GACzB/C,KAAK6D,QAAQ,OAAQE,EAAShB,IAE9BR,QAAS,SAAUwB,EAAShB,GAC5B/C,KAAK6D,QAAQ,UAAWE,EAAShB,IAEjCP,QAAS,SAAUuB,EAAShB,GAC5B/C,KAAK6D,QAAQ,UAAWE,EAAShB,IAEjC8B,MAAO,SAAUd,EAAShB,GAC1B/C,KAAKyC,OAAOsB,EAAShB,IAErBN,OAAQ,SAAUsB,EAAShB,GAC3B/C,KAAK6D,QAAQ,SAAUE,EAAShB,IAEhCU,QAAS,WACTL,IAAE,QAAQ0B,YAAY,YAEpB5B,OGlEFtD,wCAAQ","file":"js/bootstrap-msg.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"jQuery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Msg\", [\"jQuery\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Msg\"] = factory(require(\"jQuery\"));\n\telse\n\t\troot[\"Msg\"] = factory(root[\"jQuery\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","export default {\rinfo: 'fa fa-info-circle',\rsuccess: 'fa fa-check-circle',\rwarning: 'fa fa-exclamation-circle',\rdanger: 'fa fa-times-circle'\r\n};\r\n","import $ from 'jquery';\rimport TIMEOUT from './defaults/timeout';\r\nimport iconBs from './defaults/icon';\r\nimport iconFa from './defaults/iconFa';\rexport default {\rICONS: {\rBOOTSTRAP: iconBs,\rFONTAWESOME: iconFa\r},\ricon: iconFa,\rtimeout: TIMEOUT,\rversion: '1.0.1',\rtimer: null,\rinit: function () {\rconst self = this;\rconst msg = $(`\r
\r×\r\r\r
\r
\r`);\rmsg.find('[data-dismiss=\"msg\"]').on('click', function (e) {\re.preventDefault();\rself.hideMsg();\r});\rmsg.appendTo(document.body);\rreturn self;\r},\rshowMsg: function (type, message, timeout = this.timeout[type]) {\rconst self = this;\rconst msg = $('#msg');\rconst progress = msg.find('div');\rmsg.find('span').html(message);\rmsg.find('i').attr('class', self.icon[type]);\rmsg.attr('class', `alert alert-${type} showed`);\rprogress.attr('class', `alert alert-${type} msg-progress`).css('width', 0);\rclearTimeout(this.timer);\rif (timeout > 0) {\rprogress.stop().animate({\rwidth: '100%'\r}, timeout);\rthis.timer = setTimeout(function () {\rself.hideMsg();\r}, timeout);\r}\r},\rinfo: function (message, timeout) {\rthis.showMsg('info', message, timeout);\r},\rsuccess: function (message, timeout) {\rthis.showMsg('success', message, timeout);\r},\rwarning: function (message, timeout) {\rthis.showMsg('warning', message, timeout);\r},\rerror: function (message, timeout) {\rthis.danger(message, timeout);\r},\rdanger: function (message, timeout) {\rthis.showMsg('danger', message, timeout);\r},\rhideMsg: function () {\r$('#msg').removeClass('showed');\r}\r\n}.init();\r\n","export default {\rinfo: 'glyphicon glyphicon-info-sign',\rsuccess: 'glyphicon glyphicon-ok-sign',\rwarning: 'glyphicon glyphicon-exclamation-sign',\rdanger: 'glyphicon glyphicon-remove-sign'\r\n};\r\n","export default {\rinfo: 5 * 1000,\rsuccess: 5 * 1000,\rwarning: 5 * 1000,\rdanger: 5 * 1000\r\n}","require('./bootstrap-msg.scss');\r\nexport default from './bootstrap-msg';"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack://Msg/webpack/universalModuleDefinition","webpack://Msg/webpack/bootstrap","webpack://Msg/external \"jQuery\"","webpack://Msg/./src/defaults/iconFa.js","webpack://Msg/./src/bootstrap-msg.js","webpack://Msg/./src/defaults/icon.js","webpack://Msg/./src/defaults/timeout.js","webpack://Msg/./src/index.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__0__","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","iconFa","info","success","warning","danger","bootstrap_msg","ICONS","BOOTSTRAP","FONTAWESOME","icon","timeout","version","timer","init","msg","$","find","on","e","preventDefault","hideMsg","appendTo","document","body","showMsg","type","message","arguments","length","undefined","progress","html","attr","concat","css","clearTimeout","stop","animate","width","setTimeout","error","removeClass"],"mappings":";CAAA,SAAAA,EAAAC,GACA,iBAAAC,SAAA,iBAAAC,OACAA,OAAAD,QAAAD,EAAAG,QAAA,WACA,mBAAAC,eAAAC,IACAD,OAAA,iBAAAJ,GACA,iBAAAC,QACAA,QAAA,IAAAD,EAAAG,QAAA,WAEAJ,EAAA,IAAAC,EAAAD,EAAA,QARA,CASC,oBAAAO,UAAAC,KAAA,SAAAC,GACD,mBCTA,IAAAC,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAV,QAGA,IAAAC,EAAAO,EAAAE,GAAA,CACAC,EAAAD,EACAE,GAAA,EACAZ,QAAA,IAUA,OANAa,EAAAH,GAAAI,KAAAb,EAAAD,QAAAC,IAAAD,QAAAS,GAGAR,EAAAW,GAAA,EAGAX,EAAAD,QA0DA,OArDAS,EAAAM,EAAAF,EAGAJ,EAAAO,EAAAR,EAGAC,EAAAQ,EAAA,SAAAjB,EAAAkB,EAAAC,GACAV,EAAAW,EAAApB,EAAAkB,IACAG,OAA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WACN,IAAMnD,EAAOC,KACPmD,EAAMC,IAAC,kJAab,OALAD,EAAIE,KAAK,wBAAwBC,GAAG,QAAS,SAAUC,GACvDA,EAAEC,iBACFzD,EAAK0D,YAELN,EAAIO,SAASC,SAASC,MACf7D,GAEP8D,QAAS,SAAUC,EAAMC,GAAuC,IAA9BhB,EAA8BiB,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAApBhE,KAAK+C,QAAQe,GACnD/D,EAAOC,KACPmD,EAAMC,IAAE,QACRe,EAAWhB,EAAIE,KAAK,OAC1BF,EAAIE,KAAK,QAAQe,KAAKL,GACtBZ,EAAIE,KAAK,KAAKgB,KAAK,QAAStE,EAAK+C,KAAKgB,IACtCX,EAAIkB,KAAK,QAAT,eAAAC,OAAiCR,EAAjC,YACAK,EAASE,KAAK,QAAd,eAAAC,OAAsCR,EAAtC,kBAA2DS,IAAI,QAAS,GACxEC,aAAaxE,KAAKiD,OACdF,EAAU,IACdoB,EAASM,OAAOC,QAAQ,CACxBC,MAAO,QACJ5B,GACH/C,KAAKiD,MAAQ2B,WAAW,WACxB7E,EAAK0D,WACFV,KAGHT,KAAM,SAAUyB,EAAShB,GACzB/C,KAAK6D,QAAQ,OAAQE,EAAShB,IAE9BR,QAAS,SAAUwB,EAAShB,GAC5B/C,KAAK6D,QAAQ,UAAWE,EAAShB,IAEjCP,QAAS,SAAUuB,EAAShB,GAC5B/C,KAAK6D,QAAQ,UAAWE,EAAShB,IAEjC8B,MAAO,SAAUd,EAAShB,GAC1B/C,KAAKyC,OAAOsB,EAAShB,IAErBN,OAAQ,SAAUsB,EAAShB,GAC3B/C,KAAK6D,QAAQ,SAAUE,EAAShB,IAEhCU,QAAS,WACTL,IAAE,QAAQ0B,YAAY,YAEpB5B,OGlEFtD,wCAAQ","file":"js/bootstrap-msg.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"jQuery\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Msg\", [\"jQuery\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Msg\"] = factory(require(\"jQuery\"));\n\telse\n\t\troot[\"Msg\"] = factory(root[\"jQuery\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE__0__) {\nreturn "," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 2);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","export default {\rinfo: 'fa fa-info-circle',\rsuccess: 'fa fa-check-circle',\rwarning: 'fa fa-exclamation-circle',\rdanger: 'fa fa-times-circle'\r\n};\r\n","import $ from 'jquery';\rimport TIMEOUT from './defaults/timeout';\r\nimport iconBs from './defaults/icon';\r\nimport iconFa from './defaults/iconFa';\rexport default {\rICONS: {\rBOOTSTRAP: iconBs,\rFONTAWESOME: iconFa\r},\ricon: iconFa,\rtimeout: TIMEOUT,\rversion: '1.0.2',\rtimer: null,\rinit: function () {\rconst self = this;\rconst msg = $(`\r
\r×\r\r\r
\r
\r`);\rmsg.find('[data-dismiss=\"msg\"]').on('click', function (e) {\re.preventDefault();\rself.hideMsg();\r});\rmsg.appendTo(document.body);\rreturn self;\r},\rshowMsg: function (type, message, timeout = this.timeout[type]) {\rconst self = this;\rconst msg = $('#msg');\rconst progress = msg.find('div');\rmsg.find('span').html(message);\rmsg.find('i').attr('class', self.icon[type]);\rmsg.attr('class', `alert alert-${type} showed`);\rprogress.attr('class', `alert alert-${type} msg-progress`).css('width', 0);\rclearTimeout(this.timer);\rif (timeout > 0) {\rprogress.stop().animate({\rwidth: '100%'\r}, timeout);\rthis.timer = setTimeout(function () {\rself.hideMsg();\r}, timeout);\r}\r},\rinfo: function (message, timeout) {\rthis.showMsg('info', message, timeout);\r},\rsuccess: function (message, timeout) {\rthis.showMsg('success', message, timeout);\r},\rwarning: function (message, timeout) {\rthis.showMsg('warning', message, timeout);\r},\rerror: function (message, timeout) {\rthis.danger(message, timeout);\r},\rdanger: function (message, timeout) {\rthis.showMsg('danger', message, timeout);\r},\rhideMsg: function () {\r$('#msg').removeClass('showed');\r}\r\n}.init();\r\n","export default {\rinfo: 'glyphicon glyphicon-info-sign',\rsuccess: 'glyphicon glyphicon-ok-sign',\rwarning: 'glyphicon glyphicon-exclamation-sign',\rdanger: 'glyphicon glyphicon-remove-sign'\r\n};\r\n","export default {\rinfo: 5 * 1000,\rsuccess: 5 * 1000,\rwarning: 5 * 1000,\rdanger: 5 * 1000\r\n}","require('./bootstrap-msg.scss');\r\nexport default from './bootstrap-msg';"],"sourceRoot":""} \ No newline at end of file diff --git a/index.js b/index.js index fd4d7e5..92399ec 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -module.exports = require('./src/'); +module.exports = require('./dist/js/bootstrap-msg'); diff --git a/package.json b/package.json index 6e8e950..e4ec1c2 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "bootstrap-msg", "title": "BootstrapMsg", "libraryName": "Msg", - "version": "1.0.1", + "version": "1.0.2", "description": "The jQuery plugin for showing message with Bootstrap alert classes", "main": "index.js", "scripts": {