1 line
36 KiB
Plaintext
1 line
36 KiB
Plaintext
{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6","webpack:///js/modal.js","webpack:///webpack/bootstrap 0b8831948b51b91436a5?9459","webpack:///./~/vue-loader/lib/component-normalizer.js?d4f3","webpack:///./src/components/modal/modal.vue","webpack:///external \"Vue\"","webpack:///./src/components/modal/modal.js","webpack:///modal-confirm.vue","webpack:///modal.vue","webpack:///./src/components/modal/store.js","webpack:///./src/components/modal/modal-confirm.vue?5476","webpack:///./src/components/modal/modal.vue?edad","webpack:///./src/components/modal/modal-confirm.vue"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_14__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","0","rawScriptExports","compiledTemplate","injectStyles","scopeId","moduleIdentifier","esModule","scriptExports","type","default","options","render","staticRenderFns","_scopeId","hook","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","functional","existing","beforeCreate","h","concat","10","Component","14","16","showDialog","message","title","icon","instance","vm","$mount","header","$on","show","setTimeout","$destroy","document","body","removeChild","$el","appendChild","Vue","modal","modalConfirm","VueModal","extend","ConfirmModal","vueModal","showMessage","onclose","showConfirm","onyes","onno","flag","28","store","props","methods","close","$emit","29","4","zindex","Boolean","String","data","watch","val","computed","zindexStyle","zIndex","dialogHeader","5","50","_vm","_h","$createElement","_c","_self","attrs","ref","staticClass","style","on","click","_v","_t","_s","class","_e","$event","54","9"],"mappings":"CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,QACA,kBAAAC,gBAAAC,IACAD,QAAA,OAAAJ,GACA,gBAAAC,SACAA,QAAA,YAAAD,EAAAG,QAAA,QAEAJ,EAAA,YAAAC,EAAAD,EAAA,MACCO,KAAA,SAAAC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A,yBACGJ,EAAA,OACHI,YAAA,sBACGJ,EAAA,MACHI,YAAA,0BACAE,IACAC,MAAAV,EAAAhB,SAEGgB,EAAAW,GAAA,KAAAX,EAAAY,GAAA,UAAAT,EAAA,MAAAH,EAAAW,GAAAX,EAAAa,GAAAb,EAAAH,oBAAA,GAAAG,EAAAW,GAAA,KAAAR,EAAA,OACHI,YAAA,oBACGP,EAAAY,GAAA,WAAAZ,EAAA,KAAAG,EAAA,MACHI,YAAA,uBACAO,MAAAd,EAAA/C,OACG+C,EAAAe,KAAAf,EAAAW,GAAA,KAAAR,EAAA,QACHI,YAAA,4BACGP,EAAAW,GAAAX,EAAAa,GAAAb,EAAAjD,eAAA,GAAAiD,EAAAW,GAAA,KAAAR,EAAA,OACHI,YAAA,sBACGP,EAAAY,GAAA,UAAAT,EAAA,UACHI,YAAA,4CACAE,IACAC,MAAAV,EAAAhB,SAEGgB,EAAAW,GAAA,oBAAAX,EAAAe,QACFrF,qBV2ZKwF,EACA,SAAUrI,EAAQD,EAASQ,GW/bjC,GAAAuD,GAAAvD,EAAA,GAEAA,EAAA,IAEAA,EAAA,IAEA,KAEA,KAEA,KAGAP,GAAAD,QAAA+D,EAAA/D","file":"js/modal.js?82c05412763fe0ccff3b","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"Vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"Vue\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"g5-modal\"] = factory(require(\"Vue\"));\n\telse\n\t\troot[\"g5-modal\"] = factory(root[\"Vue\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_14__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"Vue\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"Vue\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"g5-modal\"] = factory(require(\"Vue\"));\n\telse\n\t\troot[\"g5-modal\"] = factory(root[\"Vue\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_14__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \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// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\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, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\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 = \"/dist/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 16);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 0:\n/***/ (function(module, exports) {\n\n/* globals __VUE_SSR_CONTEXT__ */\n\n// this module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n/***/ }),\n\n/***/ 10:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(0)(\n /* script */\n __webpack_require__(29),\n /* template */\n __webpack_require__(54),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n\n/***/ 14:\n/***/ (function(module, exports) {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE_14__;\n\n/***/ }),\n\n/***/ 16:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Vue = __webpack_require__(14);\nvar modal = __webpack_require__(10);\nvar modalConfirm = __webpack_require__(9);\n\nvar VueModal = Vue.extend(modal);\nvar ConfirmModal = Vue.extend(modalConfirm);\n\nfunction showDialog(message, title, icon, instance) {\n var vm = instance.$mount();\n vm.message = message;\n vm.header = title;\n vm.icon = icon;\n\n vm.$on('close', function () {\n vm.show = false;\n setTimeout(function () {\n vm.$destroy();\n document.body.removeChild(vm.$el);\n vm = null;\n }, 0);\n });\n document.body.appendChild(vm.$el);\n vm.show = true;\n return vm;\n}\n\nmodule.exports = {\n vueModal: modal,\n\n showMessage: function showMessage(message, title, icon, onclose) {\n var vm = showDialog(message, title, icon || 'information', new VueModal());\n if (onclose != null) {\n vm.$on('close', onclose);\n }\n },\n showConfirm: function showConfirm(message, title, onyes, onno) {\n var vm = showDialog(message, title, 'question', new ConfirmModal());\n if (onyes != null || onno != null) {\n vm.$on('close', function (flag) {\n if (flag && onyes != null) {\n onyes();\n }\n if (!flag && onno != null) {\n onno();\n }\n });\n }\n }\n};\n\n/***/ }),\n\n/***/ 28:\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar store = __webpack_require__(4);\n__webpack_require__(5);\n\nvar props = store();\nprops.methods = {\n close: function close(flag) {\n this.$emit('close', flag);\n }\n};\n\nmodule.exports = props;\n\n/***/ }),\n\n/***/ 29:\n/***/ (function(module, exports, __webpack_require__) {\n\n\n\nvar store = __webpack_require__(4);\n__webpack_require__(5);\n\nvar props = store();\nprops.methods = {\n close: function close() {\n this.$emit('close', this);\n }\n};\n\nmodule.exports = props;\n\n/***/ }),\n\n/***/ 4:\n/***/ (function(module, exports) {\n\nvar zindex = 1000;\n\nmodule.exports = function exports() {\n return {\n props: {\n show: {\n type: Boolean,\n default: false\n },\n message: String,\n header: String,\n icon: String\n },\n data: function data() {\n return {\n zindex: 0\n };\n },\n\n watch: {\n show: function show(val) {\n if (val) {\n zindex += 1;\n this.zindex = zindex;\n } else {\n zindex -= 1;\n }\n }\n },\n computed: {\n zindexStyle: function zindexStyle() {\n return {\n zIndex: this.zindex\n };\n },\n dialogHeader: function dialogHeader() {\n return this.header || 'Header';\n }\n }\n };\n};\n\n/***/ }),\n\n/***/ 5:\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ 50:\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('transition', {\n attrs: {\n \"name\": \"modal-form\"\n }\n }, [(_vm.show) ? _c('div', {\n ref: \"mask\",\n staticClass: \"modal-form-mask\",\n style: (_vm.zindexStyle)\n }, [_c('div', {\n staticClass: \"modal-form-wrapper\"\n }, [_c('div', {\n staticClass: \"modal-form-container\"\n }, [_c('div', {\n staticClass: \"modal-form-header\"\n }, [_c('em', {\n staticClass: \"modal-form-close-button\",\n on: {\n \"click\": _vm.close\n }\n }), _vm._v(\" \"), _vm._t(\"header\", [_c('h3', [_vm._v(_vm._s(_vm.dialogHeader))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-body\"\n }, [_vm._t(\"default\", [(_vm.icon) ? _c('em', {\n staticClass: \"modal-form-body-icon\",\n class: _vm.icon\n }) : _vm._e(), _vm._v(\" \"), _c('span', {\n staticClass: \"modal-form-body-message\"\n }, [_vm._v(_vm._s(_vm.message))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-footer\"\n }, [_vm._t(\"footer\", [_c('button', {\n staticClass: \"modal-form-default-button\",\n on: {\n \"click\": function($event) {\n _vm.close(true)\n }\n }\n }, [_vm._v(\"Yes\")]), _vm._v(\" \"), _c('button', {\n staticClass: \"modal-form-default-button\",\n on: {\n \"click\": function($event) {\n _vm.close(false)\n }\n }\n }, [_vm._v(\"No\")])])], 2)])])]) : _vm._e()])\n},staticRenderFns: []}\n\n/***/ }),\n\n/***/ 54:\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('transition', {\n attrs: {\n \"name\": \"modal-form\"\n }\n }, [(_vm.show) ? _c('div', {\n ref: \"mask\",\n staticClass: \"modal-form-mask\",\n style: (_vm.zindexStyle)\n }, [_c('div', {\n staticClass: \"modal-form-wrapper\"\n }, [_c('div', {\n staticClass: \"modal-form-container\"\n }, [_c('div', {\n staticClass: \"modal-form-header\"\n }, [_c('em', {\n staticClass: \"modal-form-close-button\",\n on: {\n \"click\": _vm.close\n }\n }), _vm._v(\" \"), _vm._t(\"header\", [_c('h3', [_vm._v(_vm._s(_vm.dialogHeader))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-body\"\n }, [_vm._t(\"default\", [(_vm.icon) ? _c('em', {\n staticClass: \"modal-form-body-icon\",\n class: _vm.icon\n }) : _vm._e(), _vm._v(\" \"), _c('span', {\n staticClass: \"modal-form-body-message\"\n }, [_vm._v(_vm._s(_vm.message))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-footer\"\n }, [_vm._t(\"footer\", [_c('button', {\n staticClass: \"btn btn-primary modal-form-default-button\",\n on: {\n \"click\": _vm.close\n }\n }, [_vm._v(\"OK\")])])], 2)])])]) : _vm._e()])\n},staticRenderFns: []}\n\n/***/ }),\n\n/***/ 9:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(0)(\n /* script */\n __webpack_require__(28),\n /* template */\n __webpack_require__(50),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ })\n\n/******/ });\n});\n\n\n// WEBPACK FOOTER //\n// js/modal.js?82c05412763fe0ccff3b"," \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// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\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, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\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 = \"/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 16);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 0b8831948b51b91436a5","/* globals __VUE_SSR_CONTEXT__ */\n\n// this module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle\n\nmodule.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = injectStyles\n }\n\n if (hook) {\n var functional = options.functional\n var existing = functional\n ? options.render\n : options.beforeCreate\n if (!functional) {\n // inject component registration as beforeCreate hook\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n } else {\n // register for functioal component in vue file\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return existing(h, context)\n }\n }\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/component-normalizer.js\n// module id = 0\n// module chunks = 0 1 2","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./modal.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7dd03dcb\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./modal.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/modal/modal.vue\n// module id = 10\n// module chunks = 1","module.exports = __WEBPACK_EXTERNAL_MODULE_14__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"Vue\"\n// module id = 14\n// module chunks = 1","const Vue = require('vue');\r\nconst modal = require('./modal.vue');\r\nconst modalConfirm = require('./modal-confirm.vue');\r\n\r\nconst VueModal = Vue.extend(modal);\r\nconst ConfirmModal = Vue.extend(modalConfirm);\r\n\r\nfunction showDialog(message, title, icon, instance) {\r\n let vm = instance.$mount();\r\n vm.message = message;\r\n vm.header = title;\r\n vm.icon = icon;\r\n\r\n vm.$on('close', () => {\r\n vm.show = false;\r\n setTimeout(() => {\r\n vm.$destroy();\r\n document.body.removeChild(vm.$el);\r\n vm = null;\r\n }, 0);\r\n });\r\n document.body.appendChild(vm.$el);\r\n vm.show = true;\r\n return vm;\r\n}\r\n\r\nmodule.exports = {\r\n vueModal: modal,\r\n\r\n showMessage(message, title, icon, onclose) {\r\n const vm = showDialog(message, title, icon || 'information', new VueModal());\r\n if (onclose != null) {\r\n vm.$on('close', onclose);\r\n }\r\n },\r\n\r\n showConfirm(message, title, onyes, onno) {\r\n const vm = showDialog(message, title, 'question', new ConfirmModal());\r\n if (onyes != null || onno != null) {\r\n vm.$on('close', (flag) => {\r\n if (flag && onyes != null) {\r\n onyes();\r\n }\r\n if (!flag && onno != null) {\r\n onno();\r\n }\r\n });\r\n }\r\n },\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/modal/modal.js","<template>\r\n <transition name=\"modal-form\">\r\n <div ref=\"mask\" class=\"modal-form-mask\" v-if=\"show\" v-bind:style=\"zindexStyle\">\r\n <div class=\"modal-form-wrapper\">\r\n <div class=\"modal-form-container\">\r\n <div class=\"modal-form-header\">\r\n <em class=\"modal-form-close-button\" v-on:click=\"close\"></em>\r\n <slot name=\"header\"><h3>{{ dialogHeader }}</h3></slot>\r\n </div>\r\n <div class=\"modal-form-body\">\r\n <slot>\r\n <em class=\"modal-form-body-icon\" v-if=\"icon\" v-bind:class=\"icon\"></em>\r\n <span class=\"modal-form-body-message\">{{ message }}</span>\r\n </slot>\r\n </div>\r\n <div class=\"modal-form-footer\">\r\n <slot name=\"footer\">\r\n <button class=\"modal-form-default-button\" v-on:click=\"close(true)\">Yes</button>\r\n <button class=\"modal-form-default-button\" v-on:click=\"close(false)\">No</button>\r\n </slot>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </transition>\r\n</template>\r\n\r\n<script>\r\nconst store = require('./store');\r\nrequire('./modal.css');\r\n\r\nconst props = store();\r\nprops.methods = {\r\n close(flag) {\r\n this.$emit('close', flag);\r\n },\r\n};\r\n\r\nmodule.exports = props;\r\n</script>\r\n\n\n\n// WEBPACK FOOTER //\n// modal-confirm.vue?2df0bfb4","<template>\r\n <transition name=\"modal-form\">\r\n <div ref=\"mask\" class=\"modal-form-mask\" v-if=\"show\" v-bind:style=\"zindexStyle\">\r\n <div class=\"modal-form-wrapper\">\r\n <div class=\"modal-form-container\">\r\n <div class=\"modal-form-header\">\r\n <em class=\"modal-form-close-button\" v-on:click=\"close\"></em>\r\n <slot name=\"header\"><h3>{{ dialogHeader }}</h3></slot>\r\n </div>\r\n <div class=\"modal-form-body\">\r\n <slot>\r\n <em class=\"modal-form-body-icon\" v-if=\"icon\" v-bind:class=\"icon\"></em>\r\n <span class=\"modal-form-body-message\">{{ message }}</span>\r\n </slot>\r\n </div>\r\n <div class=\"modal-form-footer\">\r\n <slot name=\"footer\">\r\n <button class=\"btn btn-primary modal-form-default-button\" v-on:click=\"close\">OK</button>\r\n </slot>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </transition>\r\n</template>\r\n\r\n<script>\r\nconst store = require('./store');\r\nrequire('./modal.css');\r\n\r\nconst props = store();\r\nprops.methods = {\r\n close() {\r\n this.$emit('close', this);\r\n },\r\n};\r\n\r\nmodule.exports = props;\r\n</script>\r\n\n\n\n// WEBPACK FOOTER //\n// modal.vue?84d10f94","let zindex = 1000;\r\n\r\nmodule.exports = function exports() {\r\n return {\r\n props: {\r\n show: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n message: String,\r\n header: String,\r\n icon: String,\r\n },\r\n data() {\r\n return {\r\n zindex: 0,\r\n };\r\n },\r\n watch: {\r\n show(val) {\r\n if (val) {\r\n zindex += 1;\r\n this.zindex = zindex;\r\n } else {\r\n zindex -= 1;\r\n }\r\n },\r\n },\r\n computed: {\r\n zindexStyle() {\r\n return {\r\n zIndex: this.zindex,\r\n };\r\n },\r\n dialogHeader() {\r\n return this.header || 'Header';\r\n },\r\n },\r\n };\r\n};\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/modal/store.js","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('transition', {\n attrs: {\n \"name\": \"modal-form\"\n }\n }, [(_vm.show) ? _c('div', {\n ref: \"mask\",\n staticClass: \"modal-form-mask\",\n style: (_vm.zindexStyle)\n }, [_c('div', {\n staticClass: \"modal-form-wrapper\"\n }, [_c('div', {\n staticClass: \"modal-form-container\"\n }, [_c('div', {\n staticClass: \"modal-form-header\"\n }, [_c('em', {\n staticClass: \"modal-form-close-button\",\n on: {\n \"click\": _vm.close\n }\n }), _vm._v(\" \"), _vm._t(\"header\", [_c('h3', [_vm._v(_vm._s(_vm.dialogHeader))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-body\"\n }, [_vm._t(\"default\", [(_vm.icon) ? _c('em', {\n staticClass: \"modal-form-body-icon\",\n class: _vm.icon\n }) : _vm._e(), _vm._v(\" \"), _c('span', {\n staticClass: \"modal-form-body-message\"\n }, [_vm._v(_vm._s(_vm.message))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-footer\"\n }, [_vm._t(\"footer\", [_c('button', {\n staticClass: \"modal-form-default-button\",\n on: {\n \"click\": function($event) {\n _vm.close(true)\n }\n }\n }, [_vm._v(\"Yes\")]), _vm._v(\" \"), _c('button', {\n staticClass: \"modal-form-default-button\",\n on: {\n \"click\": function($event) {\n _vm.close(false)\n }\n }\n }, [_vm._v(\"No\")])])], 2)])])]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-555e1984\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/modal/modal-confirm.vue\n// module id = 50\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('transition', {\n attrs: {\n \"name\": \"modal-form\"\n }\n }, [(_vm.show) ? _c('div', {\n ref: \"mask\",\n staticClass: \"modal-form-mask\",\n style: (_vm.zindexStyle)\n }, [_c('div', {\n staticClass: \"modal-form-wrapper\"\n }, [_c('div', {\n staticClass: \"modal-form-container\"\n }, [_c('div', {\n staticClass: \"modal-form-header\"\n }, [_c('em', {\n staticClass: \"modal-form-close-button\",\n on: {\n \"click\": _vm.close\n }\n }), _vm._v(\" \"), _vm._t(\"header\", [_c('h3', [_vm._v(_vm._s(_vm.dialogHeader))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-body\"\n }, [_vm._t(\"default\", [(_vm.icon) ? _c('em', {\n staticClass: \"modal-form-body-icon\",\n class: _vm.icon\n }) : _vm._e(), _vm._v(\" \"), _c('span', {\n staticClass: \"modal-form-body-message\"\n }, [_vm._v(_vm._s(_vm.message))])])], 2), _vm._v(\" \"), _c('div', {\n staticClass: \"modal-form-footer\"\n }, [_vm._t(\"footer\", [_c('button', {\n staticClass: \"btn btn-primary modal-form-default-button\",\n on: {\n \"click\": _vm.close\n }\n }, [_vm._v(\"OK\")])])], 2)])])]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-7dd03dcb\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/modal/modal.vue\n// module id = 54\n// module chunks = 1","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./modal-confirm.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-555e1984\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./modal-confirm.vue\"),\n /* styles */\n null,\n /* scopeId */\n null,\n /* moduleIdentifier (server only) */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/modal/modal-confirm.vue\n// module id = 9\n// module chunks = 1"],"sourceRoot":""} |