diff --git a/src/main/java/com/pro/mobile/controller/HomeController.java b/src/main/java/com/pro/mobile/controller/HomeController.java new file mode 100644 index 0000000000000000000000000000000000000000..9519bc2de4efcc3fb3fc9120c9796fc5dcada1a5 --- /dev/null +++ b/src/main/java/com/pro/mobile/controller/HomeController.java @@ -0,0 +1,10 @@ +package com.pro.mobile.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +@RequestMapping("/mobile") +public class HomeController { + +} diff --git a/src/main/java/com/pro/sys/controller/LoginController.java b/src/main/java/com/pro/sys/controller/LoginController.java index bfc3295b0f0aa8da10dde3c99b5b44be56bc8d92..b58640f19a760febde295ba0c3a5a023058d4031 100644 --- a/src/main/java/com/pro/sys/controller/LoginController.java +++ b/src/main/java/com/pro/sys/controller/LoginController.java @@ -2,6 +2,7 @@ package com.pro.sys.controller; import com.pro.sys.entity.Menu; import com.pro.sys.service.ShiroService; +import com.pro.utils.Utils; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.UnknownAccountException; import org.apache.shiro.authc.UsernamePasswordToken; @@ -9,6 +10,7 @@ import org.apache.shiro.subject.Subject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; +import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; import com.pro.sys.entity.User; @@ -22,7 +24,12 @@ public class LoginController { @Autowired private ShiroService shiroService; @RequestMapping(value = "/login") - public String Login(String username, String password, String rememberMe, HttpSession session, Model model){ + public String Login(@RequestHeader(value="Via",required=false) String via , @RequestHeader("user-agent") String userAgent, String username, String password, String rememberMe, HttpSession session, Model model){ + //判断是否为手机端访问 + boolean is = Utils.isMobileDevice(via, userAgent); + if(is) { + return "mobile/login"; + } //主体,当前状态为没有认证的状态“未认证” Subject subject = SecurityUtils.getSubject(); if (subject.getSession().getAttribute("user") != null){//防止重复访问login diff --git a/src/main/java/com/pro/utils/Utils.java b/src/main/java/com/pro/utils/Utils.java new file mode 100644 index 0000000000000000000000000000000000000000..fa702a43513c752c32782c0e489420a9dfdc5ff1 --- /dev/null +++ b/src/main/java/com/pro/utils/Utils.java @@ -0,0 +1,110 @@ +package com.pro.utils; + +import javax.servlet.http.HttpServletRequest; + +public class Utils { + + + /**Wap网关Via头信息中特有的描述信息*/ + private static String mobileGateWayHeaders[]=new String[]{ + "ZXWAP",//中兴提供的wap网关的via信息,例如:Via=ZXWAP GateWayZTE Technologies, + "chinamobile.com",//中国移动的诺基亚wap网关,例如:Via=WTP/1.1 GDSZ-PB-GW003-WAP07.gd.chinamobile.com (Nokia WAP Gateway 4.1 CD1/ECD13_D/4.1.04) + "monternet.com",//移动梦网的网关,例如:Via=WTP/1.1 BJBJ-PS-WAP1-GW08.bj1.monternet.com. (Nokia WAP Gateway 4.1 CD1/ECD13_E/4.1.05) + "infoX",//华为提供的wap网关,例如:Via=HTTP/1.1 GDGZ-PS-GW011-WAP2 (infoX-WISG Huawei Technologies),或Via=infoX WAP Gateway V300R001 Huawei Technologies + "XMS 724Solutions HTG",//国外电信运营商的wap网关,不知道是哪一家 + "wap.lizongbo.com",//自己测试时模拟的头信息 + "Bytemobile",//貌似是一个给移动互联网提供解决方案提高网络运行效率的,例如:Via=1.1 Bytemobile OSN WebProxy/5.1 + }; + /**电脑上的IE或Firefox浏览器等的User-Agent关键词*/ + private static String[] pcHeaders=new String[]{ + "Windows 98", + "Windows ME", + "Windows 2000", + "Windows XP", + "Windows NT", + "Ubuntu" + }; + /**手机浏览器的User-Agent里的关键词*/ + private static String[] mobileUserAgents=new String[]{ + "Nokia",//诺基亚,有山寨机也写这个的,总还算是手机,Mozilla/5.0 (Nokia5800 XpressMusic)UC AppleWebkit(like Gecko) Safari/530 + "SAMSUNG",//三星手机 SAMSUNG-GT-B7722/1.0+SHP/VPP/R5+Dolfin/1.5+Nextreaming+SMM-MMS/1.2.0+profile/MIDP-2.1+configuration/CLDC-1.1 + "MIDP-2",//j2me2.0,Mozilla/5.0 (SymbianOS/9.3; U; Series60/3.2 NokiaE75-1 /110.48.125 Profile/MIDP-2.1 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML like Gecko) Safari/413 + "CLDC1.1",//M600/MIDP2.0/CLDC1.1/Screen-240X320 + "SymbianOS",//塞班系统的, + "MAUI",//MTK山寨机默认ua + "UNTRUSTED/1.0",//疑似山寨机的ua,基本可以确定还是手机 + "Windows CE",//Windows CE,Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 7.11) + "iPhone",//iPhone是否也转wap?不管它,先区分出来再说。Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; zh-cn) AppleWebKit/532.9 (KHTML like Gecko) Mobile/8B117 + "iPad",//iPad的ua,Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; zh-cn) AppleWebKit/531.21.10 (KHTML like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10 + "Android",//Android是否也转wap?Mozilla/5.0 (Linux; U; Android 2.1-update1; zh-cn; XT800 Build/TITA_M2_16.22.7) AppleWebKit/530.17 (KHTML like Gecko) Version/4.0 Mobile Safari/530.17 + "BlackBerry",//BlackBerry8310/2.7.0.106-4.5.0.182 + "UCWEB",//ucweb是否只给wap页面? Nokia5800 XpressMusic/UCWEB7.5.0.66/50/999 + "ucweb",//小写的ucweb貌似是uc的代理服务器Mozilla/6.0 (compatible; MSIE 6.0;) Opera ucweb-squid + "BREW",//很奇怪的ua,例如:REW-Applet/0x20068888 (BREW/3.1.5.20; DeviceId: 40105; Lang: zhcn) ucweb-squid + "J2ME",//很奇怪的ua,只有J2ME四个字母 + "YULONG",//宇龙手机,YULONG-CoolpadN68/10.14 IPANEL/2.0 CTC/1.0 + "YuLong",//还是宇龙 + "COOLPAD",//宇龙酷派YL-COOLPADS100/08.10.S100 POLARIS/2.9 CTC/1.0 + "TIANYU",//天语手机TIANYU-KTOUCH/V209/MIDP2.0/CLDC1.1/Screen-240X320 + "TY-",//天语,TY-F6229/701116_6215_V0230 JUPITOR/2.2 CTC/1.0 + "K-Touch",//还是天语K-Touch_N2200_CMCC/TBG110022_1223_V0801 MTK/6223 Release/30.07.2008 Browser/WAP2.0 + "Haier",//海尔手机,Haier-HG-M217_CMCC/3.0 Release/12.1.2007 Browser/WAP2.0 + "DOPOD",//多普达手机 + "Lenovo",// 联想手机,Lenovo-P650WG/S100 LMP/LML Release/2010.02.22 Profile/MIDP2.0 Configuration/CLDC1.1 + "LENOVO",// 联想手机,比如:LENOVO-P780/176A + "HUAQIN",//华勤手机 + "AIGO-",//爱国者居然也出过手机,AIGO-800C/2.04 TMSS-BROWSER/1.0.0 CTC/1.0 + "CTC/1.0",//含义不明 + "CTC/2.0",//含义不明 + "CMCC",//移动定制手机,K-Touch_N2200_CMCC/TBG110022_1223_V0801 MTK/6223 Release/30.07.2008 Browser/WAP2.0 + "DAXIAN",//大显手机DAXIAN X180 UP.Browser/6.2.3.2(GUI) MMP/2.0 + "MOT-",//摩托罗拉,MOT-MOTOROKRE6/1.0 LinuxOS/2.4.20 Release/8.4.2006 Browser/Opera8.00 Profile/MIDP2.0 Configuration/CLDC1.1 Software/R533_G_11.10.54R + "SonyEricsson",// 索爱手机,SonyEricssonP990i/R100 Mozilla/4.0 (compatible; MSIE 6.0; Symbian OS; 405) Opera 8.65 [zh-CN] + "GIONEE",//金立手机 + "HTC",//HTC手机 + "ZTE",//中兴手机,ZTE-A211/P109A2V1.0.0/WAP2.0 Profile + "HUAWEI",//华为手机, + "webOS",//palm手机,Mozilla/5.0 (webOS/1.4.5; U; zh-CN) AppleWebKit/532.2 (KHTML like Gecko) Version/1.0 Safari/532.2 Pre/1.0 + "GoBrowser",//3g GoBrowser.User-Agent=Nokia5230/GoBrowser/2.0.290 Safari + "IEMobile",//Windows CE手机自带浏览器, + "WAP2.0"//支持wap 2.0的 + }; + /** + * 根据当前请求的特征,判断该请求是否来自手机终端,主要检测特殊的头信息,以及user-Agent这个header + * @param request http请求 + * @return 如果命中手机特征规则,则返回对应的特征字符串 + */ + public static boolean isMobileDevice(String via,String userAgent){ + boolean b = false; + boolean pcFlag = false; + boolean mobileFlag = false; + /* String via = request.getHeader("Via"); + String userAgent = request.getHeader("user-agent");*/ + for (int i = 0; via!=null && !via.trim().equals("") && i < mobileGateWayHeaders.length; i++) { + if(via.contains(mobileGateWayHeaders[i])){ + mobileFlag = true; + break; + } + } + for (int i = 0;!mobileFlag && userAgent!=null && !userAgent.trim().equals("") && i < mobileUserAgents.length; i++) { + if(userAgent.contains(mobileUserAgents[i])){ + mobileFlag = true; + break; + } + } + for (int i = 0; userAgent!=null && !userAgent.trim().equals("") && i < pcHeaders.length; i++) { + if(userAgent.contains(pcHeaders[i])){ + pcFlag = true; + break; + } + } + if(mobileFlag==true && pcFlag==false){ + b=true; + } + return b;//false pc true shouji + + } + + +} + diff --git a/src/main/web/WEB-INF/views/moblie/home.jsp b/src/main/web/WEB-INF/views/moblie/home.jsp new file mode 100644 index 0000000000000000000000000000000000000000..339455f2ff0c18641ae878bcc34639ea98ba7e6b --- /dev/null +++ b/src/main/web/WEB-INF/views/moblie/home.jsp @@ -0,0 +1,148 @@ +<%-- + Created by IntelliJ IDEA. + User: lenovo + Date: 2018/8/14 + Time: 14:38 + To change this template use File | Settings | File Templates. +--%> +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + + 生产过程信息系统-首页 + + + + +
+ + +
+ + + + + + + + + + + + + + + + 工作 + + + + + 我的 + + + + + + + +
+ + + + + + + + + + + diff --git a/src/main/web/static/mint-ui/actionsheet/index.js b/src/main/web/static/mint-ui/actionsheet/index.js new file mode 100644 index 0000000000000000000000000000000000000000..12f6cbceab4dd4110b07ac9732a47aa3e2c6ae36 --- /dev/null +++ b/src/main/web/static/mint-ui/actionsheet/index.js @@ -0,0 +1,1132 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 209); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 104: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 13: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 130: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(104) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(52), + /* template */ + __webpack_require__(173), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 173: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": "actionsheet-float" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-actionsheet" + }, [_c('ul', { + staticClass: "mint-actionsheet-list", + style: ({ + 'margin-bottom': _vm.cancelText ? '5px' : '0' + }) + }, _vm._l((_vm.actions), function(item, index) { + return _c('li', { + staticClass: "mint-actionsheet-listitem", + on: { + "click": function($event) { + $event.stopPropagation(); + _vm.itemClick(item, index) + } + } + }, [_vm._v(_vm._s(item.name))]) + })), _vm._v(" "), (_vm.cancelText) ? _c('a', { + staticClass: "mint-actionsheet-button", + on: { + "click": function($event) { + $event.stopPropagation(); + _vm.currentValue = false + } + } + }, [_vm._v(_vm._s(_vm.cancelText))]) : _vm._e()])]) +},staticRenderFns: []} + +/***/ }, + +/***/ 18: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue__ = __webpack_require__(130); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue___default.a; }); + + + +/***/ }, + +/***/ 2: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, + +/***/ 209: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(18); + + +/***/ }, + +/***/ 52: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ exports["default"] = { + name: 'mt-actionsheet', + + mixins: [__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */]], + + props: { + modal: { + default: true + }, + + modalFade: { + default: false + }, + + lockScroll: { + default: false + }, + + closeOnClickModal: { + default: true + }, + + cancelText: { + type: String, + default: '取消' + }, + + actions: { + type: Array, + default: function () { return []; } + } + }, + + data: function data() { + return { + currentValue: false + }; + }, + + watch: { + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + value: function value(val) { + this.currentValue = val; + } + }, + + methods: { + itemClick: function itemClick(item, index) { + if (item.method && typeof item.method === 'function') { + item.method(item, index); + } + this.currentValue = false; + } + }, + + mounted: function mounted() { + if (this.value) { + this.rendered = true; + this.currentValue = true; + this.open(); + } + } +}; + + +/***/ }, + +/***/ 7: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony default export */ exports["a"] = function(target) { + var arguments$1 = arguments; + + for (var i = 1, j = arguments.length; i < j; i++) { + var source = arguments$1[i] || {}; + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + var value = source[prop]; + if (value !== undefined) { + target[prop] = value; + } + } + } + } + + return target; +};; + + +/***/ }, + +/***/ 8: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__ = __webpack_require__(9); +/* unused harmony reexport PopupManager */ + + + + +var idSeed = 1; +var transitions = []; + +var hookTransition = function (transition) { + if (transitions.indexOf(transition) !== -1) return; + + var getVueInstance = function (element) { + var instance = element.__vue__; + if (!instance) { + var textNode = element.previousSibling; + if (textNode.__vue__) { + instance = textNode.__vue__; + } + } + return instance; + }; + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.transition(transition, { + afterEnter: function afterEnter(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterOpen && instance.doAfterOpen(); + } + }, + afterLeave: function afterLeave(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterClose && instance.doAfterClose(); + } + } + }); +}; + +var scrollBarWidth; +var getScrollBarWidth = function () { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (scrollBarWidth !== undefined) return scrollBarWidth; + + var outer = document.createElement('div'); + outer.style.visibility = 'hidden'; + outer.style.width = '100px'; + outer.style.position = 'absolute'; + outer.style.top = '-9999px'; + document.body.appendChild(outer); + + var widthNoScroll = outer.offsetWidth; + outer.style.overflow = 'scroll'; + + var inner = document.createElement('div'); + inner.style.width = '100%'; + outer.appendChild(inner); + + var widthWithScroll = inner.offsetWidth; + outer.parentNode.removeChild(outer); + + return widthNoScroll - widthWithScroll; +}; + +var getDOM = function(dom) { + if (dom.nodeType === 3) { + dom = dom.nextElementSibling || dom.nextSibling; + getDOM(dom); + } + return dom; +}; + +/* harmony default export */ exports["a"] = { + props: { + value: { + type: Boolean, + default: false + }, + transition: { + type: String, + default: '' + }, + openDelay: {}, + closeDelay: {}, + zIndex: {}, + modal: { + type: Boolean, + default: false + }, + modalFade: { + type: Boolean, + default: true + }, + modalClass: { + }, + lockScroll: { + type: Boolean, + default: true + }, + closeOnPressEscape: { + type: Boolean, + default: false + }, + closeOnClickModal: { + type: Boolean, + default: false + } + }, + + created: function created() { + if (this.transition) { + hookTransition(this.transition); + } + }, + + beforeMount: function beforeMount() { + this._popupId = 'popup-' + idSeed++; + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].register(this._popupId, this); + }, + + beforeDestroy: function beforeDestroy() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].deregister(this._popupId); + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + if (this.modal && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') { + document.body.style.overflow = this.bodyOverflow; + document.body.style.paddingRight = this.bodyPaddingRight; + } + this.bodyOverflow = null; + this.bodyPaddingRight = null; + }, + + data: function data() { + return { + opened: false, + bodyOverflow: null, + bodyPaddingRight: null, + rendered: false + }; + }, + + watch: { + value: function value(val) { + var this$1 = this; + + if (val) { + if (this._opening) return; + if (!this.rendered) { + this.rendered = true; + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + this$1.open(); + }); + } else { + this.open(); + } + } else { + this.close(); + } + } + }, + + methods: { + open: function open(options) { + var this$1 = this; + + if (!this.rendered) { + this.rendered = true; + this.$emit('input', true); + } + + var props = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__["a" /* default */])({}, this, options, this.$props); + + if (this._closeTimer) { + clearTimeout(this._closeTimer); + this._closeTimer = null; + } + clearTimeout(this._openTimer); + + var openDelay = Number(props.openDelay); + if (openDelay > 0) { + this._openTimer = setTimeout(function () { + this$1._openTimer = null; + this$1.doOpen(props); + }, openDelay); + } else { + this.doOpen(props); + } + }, + + doOpen: function doOpen(props) { + if (this.$isServer) return; + if (this.willOpen && !this.willOpen()) return; + if (this.opened) return; + + this._opening = true; + + // 使用 vue-popup 的组件,如果需要和父组件通信显示的状态,应该使用 value,它是一个 prop, + // 这样在父组件中用 v-model 即可;否则可以使用 visible,它是一个 data + this.visible = true; + this.$emit('input', true); + + var dom = getDOM(this.$el); + + var modal = props.modal; + + var zIndex = props.zIndex; + if (zIndex) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].zIndex = zIndex; + } + + if (modal) { + if (this._closing) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].openModal(this._popupId, __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(), dom, props.modalClass, props.modalFade); + if (props.lockScroll) { + if (!this.bodyOverflow) { + this.bodyPaddingRight = document.body.style.paddingRight; + this.bodyOverflow = document.body.style.overflow; + } + scrollBarWidth = getScrollBarWidth(); + var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight; + if (scrollBarWidth > 0 && bodyHasOverflow) { + document.body.style.paddingRight = scrollBarWidth + 'px'; + } + document.body.style.overflow = 'hidden'; + } + } + + if (getComputedStyle(dom).position === 'static') { + dom.style.position = 'absolute'; + } + + dom.style.zIndex = __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(); + this.opened = true; + + this.onOpen && this.onOpen(); + + if (!this.transition) { + this.doAfterOpen(); + } + }, + + doAfterOpen: function doAfterOpen() { + this._opening = false; + }, + + close: function close() { + var this$1 = this; + + if (this.willClose && !this.willClose()) return; + + if (this._openTimer !== null) { + clearTimeout(this._openTimer); + this._openTimer = null; + } + clearTimeout(this._closeTimer); + + var closeDelay = Number(this.closeDelay); + + if (closeDelay > 0) { + this._closeTimer = setTimeout(function () { + this$1._closeTimer = null; + this$1.doClose(); + }, closeDelay); + } else { + this.doClose(); + } + }, + + doClose: function doClose() { + var this$1 = this; + + this.visible = false; + this.$emit('input', false); + this._closing = true; + + this.onClose && this.onClose(); + + if (this.lockScroll) { + setTimeout(function () { + if (this$1.modal && this$1.bodyOverflow !== 'hidden') { + document.body.style.overflow = this$1.bodyOverflow; + document.body.style.paddingRight = this$1.bodyPaddingRight; + } + this$1.bodyOverflow = null; + this$1.bodyPaddingRight = null; + }, 200); + } + + this.opened = false; + + if (!this.transition) { + this.doAfterClose(); + } + }, + + doAfterClose: function doAfterClose() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + } +}; + + + + +/***/ }, + +/***/ 9: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__ = __webpack_require__(2); + + + +var hasModal = false; + +var getModal = function() { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + var modalDom = PopupManager.modalDom; + if (modalDom) { + hasModal = true; + } else { + hasModal = false; + modalDom = document.createElement('div'); + PopupManager.modalDom = modalDom; + + modalDom.addEventListener('touchmove', function(event) { + event.preventDefault(); + event.stopPropagation(); + }); + + modalDom.addEventListener('click', function() { + PopupManager.doOnModalClick && PopupManager.doOnModalClick(); + }); + } + + return modalDom; +}; + +var instances = {}; + +var PopupManager = { + zIndex: 2000, + + modalFade: true, + + getInstance: function(id) { + return instances[id]; + }, + + register: function(id, instance) { + if (id && instance) { + instances[id] = instance; + } + }, + + deregister: function(id) { + if (id) { + instances[id] = null; + delete instances[id]; + } + }, + + nextZIndex: function() { + return PopupManager.zIndex++; + }, + + modalStack: [], + + doOnModalClick: function() { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + + var instance = PopupManager.getInstance(topItem.id); + if (instance && instance.closeOnClickModal) { + instance.close(); + } + }, + + openModal: function(id, zIndex, dom, modalClass, modalFade) { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (!id || zIndex === undefined) return; + this.modalFade = modalFade; + + var modalStack = this.modalStack; + + for (var i = 0, j = modalStack.length; i < j; i++) { + var item = modalStack[i]; + if (item.id === id) { + return; + } + } + + var modalDom = getModal(); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal'); + if (this.modalFade && !hasModal) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-enter'); + } + if (modalClass) { + var classArr = modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, item); }); + } + setTimeout(function () { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-enter'); + }, 200); + + if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) { + dom.parentNode.appendChild(modalDom); + } else { + document.body.appendChild(modalDom); + } + + if (zIndex) { + modalDom.style.zIndex = zIndex; + } + modalDom.style.display = ''; + + this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass }); + }, + + closeModal: function(id) { + var modalStack = this.modalStack; + var modalDom = getModal(); + + if (modalStack.length > 0) { + var topItem = modalStack[modalStack.length - 1]; + if (topItem.id === id) { + if (topItem.modalClass) { + var classArr = topItem.modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, item); }); + } + + modalStack.pop(); + if (modalStack.length > 0) { + modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex; + } + } else { + for (var i = modalStack.length - 1; i >= 0; i--) { + if (modalStack[i].id === id) { + modalStack.splice(i, 1); + break; + } + } + } + } + + if (modalStack.length === 0) { + if (this.modalFade) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-leave'); + } + setTimeout(function () { + if (modalStack.length === 0) { + if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom); + modalDom.style.display = 'none'; + PopupManager.modalDom = undefined; + } + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-leave'); + }, 200); + } + } +}; +!__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && window.addEventListener('keydown', function(event) { + if (event.keyCode === 27) { // ESC + if (PopupManager.modalStack.length > 0) { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + var instance = PopupManager.getInstance(topItem.id); + if (instance.closeOnPressEscape) { + instance.close(); + } + } + } +}); + +/* harmony default export */ exports["a"] = PopupManager; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/actionsheet/style.css b/src/main/web/static/mint-ui/actionsheet/style.css new file mode 100644 index 0000000000000000000000000000000000000000..bf7ea94e674a62cadb545fa8eeca658b86c9bf1e --- /dev/null +++ b/src/main/web/static/mint-ui/actionsheet/style.css @@ -0,0 +1,92 @@ + +.mint-actionsheet { + position: fixed; + background: #e0e0e0; + width: 100%; + text-align: center; + bottom: 0; + left: 50%; + -webkit-transform: translate3d(-50%, 0, 0); + transform: translate3d(-50%, 0, 0); + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition: -webkit-transform .3s ease-out; + transition: -webkit-transform .3s ease-out; + transition: transform .3s ease-out; + transition: transform .3s ease-out, -webkit-transform .3s ease-out; +} +.mint-actionsheet-list { + list-style: none; + padding: 0; + margin: 0; +} +.mint-actionsheet-listitem { + border-bottom: solid 1px #e0e0e0; +} +.mint-actionsheet-listitem, .mint-actionsheet-button { + display: block; + width: 100%; + height: 45px; + line-height: 45px; + font-size: 18px; + color: #333; + background-color: #fff; +} +.mint-actionsheet-listitem:active, .mint-actionsheet-button:active { + background-color: #f0f0f0; +} +.actionsheet-float-enter, .actionsheet-float-leave-active { + -webkit-transform: translate3d(-50%, 100%, 0); + transform: translate3d(-50%, 100%, 0); +} +.v-modal-enter { + -webkit-animation: v-modal-in .2s ease; + animation: v-modal-in .2s ease; +} + +.v-modal-leave { + -webkit-animation: v-modal-out .2s ease forwards; + animation: v-modal-out .2s ease forwards; +} + +@-webkit-keyframes v-modal-in { + 0% { + opacity: 0; + } + 100% { + } +} + +@keyframes v-modal-in { + 0% { + opacity: 0; + } + 100% { + } +} + +@-webkit-keyframes v-modal-out { + 0% { + } + 100% { + opacity: 0; + } +} + +@keyframes v-modal-out { + 0% { + } + 100% { + opacity: 0; + } +} + +.v-modal { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0.5; + background: #000; +} diff --git a/src/main/web/static/mint-ui/badge/index.js b/src/main/web/static/mint-ui/badge/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e470db7703e835cde9814e682ceb0480cade9a72 --- /dev/null +++ b/src/main/web/static/mint-ui/badge/index.js @@ -0,0 +1,283 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 210); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 106: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 131: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(106) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(53), + /* template */ + __webpack_require__(175), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 175: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('span', { + staticClass: "mint-badge", + class: ['is-' + _vm.type, 'is-size-' + _vm.size], + style: ({ + backgroundColor: _vm.color + }) + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 19: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_badge_vue__ = __webpack_require__(131); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_badge_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_badge_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_badge_vue___default.a; }); + + + +/***/ }, + +/***/ 210: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(19); + + +/***/ }, + +/***/ 53: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// + +/** + * mt-badge + * @module components/badge + * @desc 徽章 + * @param {string} [type=primary] 组件样式,可选 primary, error, success, warning + * @param {string} [color] - 传入颜色值 + * @param {string} [size=normal] - 尺寸,接受 normal, small, large + * + * @example + * 错误 + * 30 + */ +/* harmony default export */ exports["default"] = { + name: 'mt-badge', + + props: { + color: String, + type: { + type: String, + default: 'primary' + }, + size: { + type: String, + default: 'normal' + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/badge/style.css b/src/main/web/static/mint-ui/badge/style.css new file mode 100644 index 0000000000000000000000000000000000000000..aa53d56ffdb5424f6525f97a4b6845596904fc58 --- /dev/null +++ b/src/main/web/static/mint-ui/badge/style.css @@ -0,0 +1,41 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-badge { + color: #fff; + text-align: center; + display: inline-block +} +.mint-badge.is-size-large { + border-radius: 14px; + font-size: 18px; + padding: 2px 10px +} +.mint-badge.is-size-small { + border-radius: 8px; + font-size: 12px; + padding: 2px 6px +} +.mint-badge.is-size-normal { + border-radius: 12px; + font-size: 15px; + padding: 2px 8px +} +.mint-badge.is-warning { + background-color: #ffc107 +} +.mint-badge.is-error { + background-color: #f44336 +} +.mint-badge.is-primary { + background-color: #26a2ff +} +.mint-badge.is-success { + background-color: #4caf50 +} diff --git a/src/main/web/static/mint-ui/button/index.js b/src/main/web/static/mint-ui/button/index.js new file mode 100644 index 0000000000000000000000000000000000000000..49bf3f14215223f57621b69debe3cc383278ac26 --- /dev/null +++ b/src/main/web/static/mint-ui/button/index.js @@ -0,0 +1,345 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 211); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 109: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 132: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(109) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(54), + /* template */ + __webpack_require__(178), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 17: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/font/style.css"); + +/***/ }, + +/***/ 178: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('button', { + staticClass: "mint-button", + class: ['mint-button--' + _vm.type, 'mint-button--' + _vm.size, { + 'is-disabled': _vm.disabled, + 'is-plain': _vm.plain + }], + attrs: { + "type": _vm.nativeType, + "disabled": _vm.disabled + }, + on: { + "click": _vm.handleClick + } + }, [(_vm.icon || _vm.$slots.icon) ? _c('span', { + staticClass: "mint-button-icon" + }, [_vm._t("icon", [(_vm.icon) ? _c('i', { + staticClass: "mintui", + class: 'mintui-' + _vm.icon + }) : _vm._e()])], 2) : _vm._e(), _vm._v(" "), _c('label', { + staticClass: "mint-button-text" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 20: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_button_vue__ = __webpack_require__(132); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_button_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_button_vue___default.a; }); + + + +/***/ }, + +/***/ 211: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(20); + + +/***/ }, + +/***/ 54: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +if (true) { + __webpack_require__(17); +} + +/** + * mt-header + * @module components/button + * @desc 按钮 + * @param {string} [type=default] - 显示类型,接受 default, primary, danger + * @param {boolean} [disabled=false] - 禁用 + * @param {boolean} [plain=false] - 幽灵按钮 + * @param {string} [size=normal] - 尺寸,接受 normal, small, large + * @param {string} [native-type] - 原生 type 属性 + * @param {string} [icon] - 图标,提供 more, back,或者自定义的图标(传入不带前缀的图标类名,最后拼接成 .mintui-xxx) + * @param {slot} - 显示文本 + * @param {slot} [icon] 显示图标 + * + * @example + * 按钮 + */ +/* harmony default export */ exports["default"] = { + name: 'mt-button', + + methods: { + handleClick: function handleClick(evt) { + this.$emit('click', evt); + } + }, + + props: { + icon: String, + disabled: Boolean, + nativeType: String, + plain: Boolean, + type: { + type: String, + default: 'default', + validator: function validator(value) { + return [ + 'default', + 'danger', + 'primary' + ].indexOf(value) > -1; + } + }, + size: { + type: String, + default: 'normal', + validator: function validator$1(value) { + return [ + 'small', + 'normal', + 'large' + ].indexOf(value) > -1; + } + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/button/style.css b/src/main/web/static/mint-ui/button/style.css new file mode 100644 index 0000000000000000000000000000000000000000..92f0fd727af1f7f38944ac5cb683d51167c232d6 --- /dev/null +++ b/src/main/web/static/mint-ui/button/style.css @@ -0,0 +1,88 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-button { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border-radius: 4px; + border: 0; + box-sizing: border-box; + color: inherit; + display: block; + font-size: 18px; + height: 41px; + outline: 0; + overflow: hidden; + position: relative; + text-align: center +} +.mint-button::after { + background-color: #000; + content: " "; + opacity: 0; + top: 0; + right: 0; + bottom: 0; + left: 0; + position: absolute +} +.mint-button:not(.is-disabled):active::after { + opacity: .4 +} +.mint-button.is-disabled { + opacity: .6 +} +.mint-button-icon { + vertical-align: middle; + display: inline-block +} +.mint-button--default { + color: #656b79; + background-color: #f6f8fa; + box-shadow: 0 0 1px #b8bbbf +} +.mint-button--default.is-plain { + border: 1px solid #5a5a5a; + background-color: transparent; + box-shadow: none; + color: #5a5a5a +} +.mint-button--primary { + color: #fff; + background-color: #26a2ff +} +.mint-button--primary.is-plain { + border: 1px solid #26a2ff; + background-color: transparent; + color: #26a2ff +} +.mint-button--danger { + color: #fff; + background-color: #ef4f4f +} +.mint-button--danger.is-plain { + border: 1px solid #ef4f4f; + background-color: transparent; + color: #ef4f4f +} +.mint-button--large { + display: block; + width: 100% +} +.mint-button--normal { + display: inline-block; + padding: 0 12px +} +.mint-button--small { + display: inline-block; + font-size: 14px; + padding: 0 12px; + height: 33px +} diff --git a/src/main/web/static/mint-ui/cell-swipe/index.js b/src/main/web/static/mint-ui/cell-swipe/index.js new file mode 100644 index 0000000000000000000000000000000000000000..a6266e129261817e57ddaa12690fa4421679df9b --- /dev/null +++ b/src/main/web/static/mint-ui/cell-swipe/index.js @@ -0,0 +1,815 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 213); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 102: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 12: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/** + * v-clickoutside + * @desc 点击元素外面才会触发的事件 + * @example + * ```vue + *
+ * ``` + */ +var clickoutsideContext = '@@clickoutsideContext'; + +/* harmony default export */ exports["a"] = { + bind: function bind(el, binding, vnode) { + var documentHandler = function(e) { + if (vnode.context && !el.contains(e.target)) { + vnode.context[el[clickoutsideContext].methodName](); + } + }; + el[clickoutsideContext] = { + documentHandler: documentHandler, + methodName: binding.expression, + arg: binding.arg || 'click' + }; + document.addEventListener(el[clickoutsideContext].arg, documentHandler); + }, + + update: function update(el, binding) { + el[clickoutsideContext].methodName = binding.expression; + }, + + unbind: function unbind(el) { + document.removeEventListener( + el[clickoutsideContext].arg, + el[clickoutsideContext].documentHandler); + }, + + install: function install(Vue) { + Vue.directive('clickoutside', { + bind: this.bind, + unbind: this.unbind + }); + } +}; + + +/***/ }, + +/***/ 133: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(102) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(55), + /* template */ + __webpack_require__(171), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 171: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('x-cell', { + directives: [{ + name: "clickoutside", + rawName: "v-clickoutside:touchstart", + value: (_vm.swipeMove), + expression: "swipeMove", + arg: "touchstart" + }], + ref: "cell", + staticClass: "mint-cell-swipe", + attrs: { + "title": _vm.title, + "icon": _vm.icon, + "label": _vm.label, + "to": _vm.to, + "is-link": _vm.isLink, + "value": _vm.value + }, + nativeOn: { + "click": function($event) { + _vm.swipeMove() + }, + "touchstart": function($event) { + _vm.startDrag($event) + }, + "touchmove": function($event) { + _vm.onDrag($event) + }, + "touchend": function($event) { + _vm.endDrag($event) + } + } + }, [_c('div', { + ref: "right", + staticClass: "mint-cell-swipe-buttongroup", + slot: "right" + }, _vm._l((_vm.right), function(btn) { + return _c('a', { + staticClass: "mint-cell-swipe-button", + style: (btn.style), + domProps: { + "innerHTML": _vm._s(btn.content) + }, + on: { + "click": function($event) { + $event.preventDefault(); + $event.stopPropagation(); + btn.handler && btn.handler(), _vm.swipeMove() + } + } + }) + })), _vm._v(" "), _c('div', { + ref: "left", + staticClass: "mint-cell-swipe-buttongroup", + slot: "left" + }, _vm._l((_vm.left), function(btn) { + return _c('a', { + staticClass: "mint-cell-swipe-button", + style: (btn.style), + domProps: { + "innerHTML": _vm._s(btn.content) + }, + on: { + "click": function($event) { + $event.preventDefault(); + $event.stopPropagation(); + btn.handler && btn.handler(), _vm.swipeMove() + } + } + }) + })), _vm._v(" "), _vm._t("default"), _vm._v(" "), (_vm.$slots.title) ? _c('span', { + slot: "title" + }, [_vm._t("title")], 2) : _vm._e(), _vm._v(" "), (_vm.$slots.icon) ? _c('span', { + slot: "icon" + }, [_vm._t("icon")], 2) : _vm._e()], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 2: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, + +/***/ 21: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue__ = __webpack_require__(133); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue___default.a; }); + + + +/***/ }, + +/***/ 213: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(21); + + +/***/ }, + +/***/ 3: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell"); + +/***/ }, + +/***/ 4: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell/style.css"); + +/***/ }, + +/***/ 55: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_clickoutside__ = __webpack_require__(12); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +if (true) { + __webpack_require__(4); +} + +/** + * mt-cell-swipe + * @desc 类似 iOS 滑动 Cell 的效果 + * @module components/cell-swipe + * + * @example + * console.log(123) + * } + * ] + * :right=[{ content: 'allowed HTML' }]> + * swipe me + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-cell-swipe', + + components: { XCell: __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js___default.a }, + + directives: { Clickoutside: __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_clickoutside__["a" /* default */] }, + + props: { + to: String, + left: Array, + right: Array, + icon: String, + title: String, + label: String, + isLink: Boolean, + value: {} + }, + + data: function data() { + return { + start: { x: 0, y: 0 } + }; + }, + + mounted: function mounted() { + this.wrap = this.$refs.cell.$el.querySelector('.mint-cell-wrapper'); + this.leftElm = this.$refs.left; + this.rightElm = this.$refs.right; + this.leftWrapElm = this.leftElm.parentNode; + this.rightWrapElm = this.rightElm.parentNode; + this.leftWidth = this.leftElm.getBoundingClientRect().width; + this.rightWidth = this.rightElm.getBoundingClientRect().width; + + this.leftDefaultTransform = this.translate3d(-this.leftWidth - 1); + this.rightDefaultTransform = this.translate3d(this.rightWidth); + + this.rightWrapElm.style.webkitTransform = this.rightDefaultTransform; + this.leftWrapElm.style.webkitTransform = this.leftDefaultTransform; + }, + + methods: { + resetSwipeStatus: function resetSwipeStatus() { + this.swiping = false; + this.opened = true; + this.offsetLeft = 0; + }, + + translate3d: function translate3d(offset) { + return ("translate3d(" + offset + "px, 0, 0)"); + }, + + setAnimations: function setAnimations(val) { + this.wrap.style.transitionDuration = val; + this.rightWrapElm.style.transitionDuration = val; + this.leftWrapElm.style.transitionDuration = val; + }, + + swipeMove: function swipeMove(offset) { + if ( offset === void 0 ) offset = 0; + + this.wrap.style.webkitTransform = this.translate3d(offset); + this.rightWrapElm.style.webkitTransform = this.translate3d(this.rightWidth + offset); + this.leftWrapElm.style.webkitTransform = this.translate3d(-this.leftWidth + offset); + offset && (this.swiping = true); + }, + + swipeLeaveTransition: function swipeLeaveTransition(direction) { + var this$1 = this; + + setTimeout(function () { + this$1.swipeLeave = true; + + // left + if (direction > 0 && -this$1.offsetLeft > this$1.rightWidth * 0.4) { + this$1.swipeMove(-this$1.rightWidth); + this$1.resetSwipeStatus(); + return; + // right + } else if (direction < 0 && this$1.offsetLeft > this$1.leftWidth * 0.4) { + this$1.swipeMove(this$1.leftWidth); + this$1.resetSwipeStatus(); + return; + } + + this$1.swipeMove(0); + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(this$1.wrap, 'webkitTransitionEnd', function (_) { + this$1.wrap.style.webkitTransform = ''; + this$1.rightWrapElm.style.webkitTransform = this$1.rightDefaultTransform; + this$1.leftWrapElm.style.webkitTransform = this$1.leftDefaultTransform; + this$1.swipeLeave = false; + this$1.swiping = false; + }); + }, 0); + }, + + startDrag: function startDrag(evt) { + evt = evt.changedTouches ? evt.changedTouches[0] : evt; + this.dragging = true; + this.start.x = evt.pageX; + this.start.y = evt.pageY; + this.direction = ''; + }, + + onDrag: function onDrag(evt) { + if (this.opened) { + if (!this.swiping) { + this.swipeMove(0); + this.setAnimations(''); + } + this.opened = false; + return; + } + if (!this.dragging) return; + + var swiping; + var e = evt.changedTouches ? evt.changedTouches[0] : evt; + var offsetTop = e.pageY - this.start.y; + var offsetLeft = this.offsetLeft = e.pageX - this.start.x; + + var y = Math.abs(offsetTop); + var x = Math.abs(offsetLeft); + + this.setAnimations('0ms'); + + if (this.direction === '') { + this.direction = x > y ? 'horizonal' : 'vertical'; + } + + if (this.direction === 'horizonal') { + evt.preventDefault(); + evt.stopPropagation(); + + swiping = !(x < 5 || (x >= 5 && y >= x * 1.73)); + if (!swiping) return; + + if ((offsetLeft < 0 && -offsetLeft > this.rightWidth) || + (offsetLeft > 0 && offsetLeft > this.leftWidth) || + (offsetLeft > 0 && !this.leftWidth) || + (offsetLeft < 0 && !this.rightWidth)) { + } else { + this.swipeMove(offsetLeft); + } + } + }, + + endDrag: function endDrag() { + this.direction = ''; + this.setAnimations(''); + if (!this.swiping) return; + this.swipeLeaveTransition(this.offsetLeft > 0 ? -1 : 1); + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/cell-swipe/style.css b/src/main/web/static/mint-ui/cell-swipe/style.css new file mode 100644 index 0000000000000000000000000000000000000000..6246b7b032c75b6f3f8878cf36d4a2b05c82d838 --- /dev/null +++ b/src/main/web/static/mint-ui/cell-swipe/style.css @@ -0,0 +1,27 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-cell-swipe .mint-cell-wrapper { + position: relative; +} +.mint-cell-swipe .mint-cell-wrapper, .mint-cell-swipe .mint-cell-left, .mint-cell-swipe .mint-cell-right { + -webkit-transition: -webkit-transform 150ms ease-in-out; + transition: -webkit-transform 150ms ease-in-out; + transition: transform 150ms ease-in-out; + transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out; +} +.mint-cell-swipe-buttongroup { + height: 100%; +} +.mint-cell-swipe-button { + height: 100%; + display: inline-block; + padding: 0 10px; + line-height: 48px; +} diff --git a/src/main/web/static/mint-ui/cell/index.js b/src/main/web/static/mint-ui/cell/index.js new file mode 100644 index 0000000000000000000000000000000000000000..997d06e660184bafc58d44a1e6eab5a438118df7 --- /dev/null +++ b/src/main/web/static/mint-ui/cell/index.js @@ -0,0 +1,377 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 212); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 116: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 134: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(116) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(56), + /* template */ + __webpack_require__(186), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 17: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/font/style.css"); + +/***/ }, + +/***/ 186: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('a', { + staticClass: "mint-cell", + attrs: { + "href": _vm.href + } + }, [(_vm.isLink) ? _c('span', { + staticClass: "mint-cell-mask" + }) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "mint-cell-left" + }, [_vm._t("left")], 2), _vm._v(" "), _c('div', { + staticClass: "mint-cell-wrapper" + }, [_c('div', { + staticClass: "mint-cell-title" + }, [_vm._t("icon", [(_vm.icon) ? _c('i', { + staticClass: "mintui", + class: 'mintui-' + _vm.icon + }) : _vm._e()]), _vm._v(" "), _vm._t("title", [_c('span', { + staticClass: "mint-cell-text", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), (_vm.label) ? _c('span', { + staticClass: "mint-cell-label", + domProps: { + "textContent": _vm._s(_vm.label) + } + }) : _vm._e()])], 2), _vm._v(" "), _c('div', { + staticClass: "mint-cell-value", + class: { + 'is-link': _vm.isLink + } + }, [_vm._t("default", [_c('span', { + domProps: { + "textContent": _vm._s(_vm.value) + } + })])], 2), _vm._v(" "), (_vm.isLink) ? _c('i', { + staticClass: "mint-cell-allow-right" + }) : _vm._e()]), _vm._v(" "), _c('div', { + staticClass: "mint-cell-right" + }, [_vm._t("right")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 212: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(22); + + +/***/ }, + +/***/ 22: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue__ = __webpack_require__(134); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_cell_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default.a; }); + + + +/***/ }, + +/***/ 56: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +if (true) { + __webpack_require__(17); +} + +/** + * mt-cell + * @module components/cell + * @desc 单元格 + * @param {string|Object} [to] - 跳转链接,使用 vue-router 的情况下 to 会传递给 router.push,否则作为 a 标签的 href 属性处理 + * @param {string} [icon] - 图标,提供 more, back,或者自定义的图标(传入不带前缀的图标类名,最后拼接成 .mintui-xxx) + * @param {string} [title] - 标题 + * @param {string} [label] - 备注信息 + * @param {boolean} [is-link=false] - 可点击的链接 + * @param {string} [value] - 右侧显示文字 + * @param {slot} - 同 value, 会覆盖 value 属性 + * @param {slot} [title] - 同 title, 会覆盖 title 属性 + * @param {slot} [icon] - 同 icon, 会覆盖 icon 属性,例如可以传入图片 + * + * @example + * + * + *
描述文字啊哈
+ *
+ */ +/* harmony default export */ exports["default"] = { + name: 'mt-cell', + + props: { + to: [String, Object], + icon: String, + title: String, + label: String, + isLink: Boolean, + value: {} + }, + + computed: { + href: function href() { + var this$1 = this; + + if (this.to && !this.added && this.$router) { + var resolved = this.$router.match(this.to); + if (!resolved.matched.length) return this.to; + + this.$nextTick(function () { + this$1.added = true; + this$1.$el.addEventListener('click', this$1.handleClick); + }); + return resolved.fullPath || resolved.path; + } + return this.to; + } + }, + + methods: { + handleClick: function handleClick($event) { + $event.preventDefault(); + this.$router.push(this.href); + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/cell/style.css b/src/main/web/static/mint-ui/cell/style.css new file mode 100644 index 0000000000000000000000000000000000000000..b9bf0b4e3960a5e4d4607b2558360fa3c08b9eb8 --- /dev/null +++ b/src/main/web/static/mint-ui/cell/style.css @@ -0,0 +1,121 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-cell { + background-color:#fff; + box-sizing:border-box; + color:inherit; + min-height:48px; + display:block; + overflow:hidden; + position:relative; + text-decoration:none; +} +.mint-cell img { + vertical-align:middle; +} +.mint-cell:first-child .mint-cell-wrapper { + background-origin:border-box; +} +.mint-cell:last-child { + background-image:-webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-image:linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-size:100% 1px; + background-repeat:no-repeat; + background-position:bottom; +} +.mint-cell-wrapper { + background-image:-webkit-linear-gradient(top, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-image:linear-gradient(180deg, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-size: 120% 1px; + background-repeat: no-repeat; + background-position: top left; + background-origin: content-box; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + box-sizing: border-box; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + font-size: 16px; + line-height: 1; + min-height: inherit; + overflow: hidden; + padding: 0 10px; + width: 100%; +} +.mint-cell-mask {} +.mint-cell-mask::after { + background-color:#000; + content:" "; + opacity:0; + top:0; + right:0; + bottom:0; + left:0; + position:absolute; +} +.mint-cell-mask:active::after { + opacity:.1; +} +.mint-cell-text { + vertical-align: middle; +} +.mint-cell-label { + color: #888; + display: block; + font-size: 12px; + margin-top: 6px; +} +.mint-cell-title { + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; +} +.mint-cell-value { + color: #888; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} +.mint-cell-value.is-link { + margin-right:24px; +} +.mint-cell-left { + position: absolute; + height: 100%; + left: 0; + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); +} +.mint-cell-right { + position: absolute; + height: 100%; + right: 0; + top: 0; + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); +} +.mint-cell-allow-right::after { + border: solid 2px #c8c8cd; + border-bottom-width: 0; + border-left-width: 0; + content: " "; + top:50%; + right:20px; + position: absolute; + width:5px; + height:5px; + -webkit-transform: translateY(-50%) rotate(45deg); + transform: translateY(-50%) rotate(45deg); +} diff --git a/src/main/web/static/mint-ui/checklist/index.js b/src/main/web/static/mint-ui/checklist/index.js new file mode 100644 index 0000000000000000000000000000000000000000..c7286da3c79fc84c8058bd4293a0d09e40905bf7 --- /dev/null +++ b/src/main/web/static/mint-ui/checklist/index.js @@ -0,0 +1,404 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 214); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 127: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 135: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(127) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(57), + /* template */ + __webpack_require__(197), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 197: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-checklist", + class: { + 'is-limit': _vm.max <= _vm.currentValue.length + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + } + } + }, [_c('label', { + staticClass: "mint-checklist-title", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), _vm._l((_vm.options), function(option) { + return _c('x-cell', [_c('label', { + staticClass: "mint-checklist-label", + slot: "title" + }, [_c('span', { + staticClass: "mint-checkbox", + class: { + 'is-right': _vm.align === 'right' + } + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-checkbox-input", + attrs: { + "type": "checkbox", + "disabled": option.disabled + }, + domProps: { + "value": option.value || option, + "checked": Array.isArray(_vm.currentValue) ? _vm._i(_vm.currentValue, option.value || option) > -1 : (_vm.currentValue) + }, + on: { + "__c": function($event) { + var $$a = _vm.currentValue, + $$el = $event.target, + $$c = $$el.checked ? (true) : (false); + if (Array.isArray($$a)) { + var $$v = option.value || option, + $$i = _vm._i($$a, $$v); + if ($$c) { + $$i < 0 && (_vm.currentValue = $$a.concat($$v)) + } else { + $$i > -1 && (_vm.currentValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1))) + } + } else { + _vm.currentValue = $$c + } + } + } + }), _vm._v(" "), _c('span', { + staticClass: "mint-checkbox-core" + })]), _vm._v(" "), _c('span', { + staticClass: "mint-checkbox-label", + domProps: { + "textContent": _vm._s(option.label || option) + } + })])]) + })], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 214: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(23); + + +/***/ }, + +/***/ 23: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue__ = __webpack_require__(135); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_checklist_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue___default.a; }); + + + +/***/ }, + +/***/ 3: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell"); + +/***/ }, + +/***/ 4: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell/style.css"); + +/***/ }, + +/***/ 57: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (true) { + __webpack_require__(4); +} + +/** + * mt-checklist + * @module components/checklist + * @desc 复选框列表,依赖 cell 组件 + * + * @param {(string[]|object[])} options - 选项数组,可以传入 [{label: 'label', value: 'value', disabled: true}] 或者 ['ab', 'cd', 'ef'] + * @param {string[]} value - 选中值的数组 + * @param {string} title - 标题 + * @param {number} [max] - 最多可选的个数 + * @param {string} [align=left] - checkbox 对齐位置,`left`, `right` + * + * + * @example + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-checklist', + + props: { + max: Number, + title: String, + align: String, + options: { + type: Array, + required: true + }, + value: Array + }, + + components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default.a }, + + data: function data() { + return { + currentValue: this.value + }; + }, + + computed: { + limit: function limit() { + return this.max < this.currentValue.length; + } + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + currentValue: function currentValue(val) { + if (this.limit) val.pop(); + this.$emit('input', val); + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/checklist/style.css b/src/main/web/static/mint-ui/checklist/style.css new file mode 100644 index 0000000000000000000000000000000000000000..22c8ab5fcace3070a37bd8b99973b3d743312974 --- /dev/null +++ b/src/main/web/static/mint-ui/checklist/style.css @@ -0,0 +1,77 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-checklist .mint-cell { + padding: 0; +} +.mint-checklist.is-limit .mint-checkbox-core:not(:checked) { + background-color: #d9d9d9; + border-color: #d9d9d9; +} +.mint-checklist-label { + display: block; + padding: 0 10px; +} +.mint-checklist-title { + color: #888; + display: block; + font-size: 12px; + margin: 8px; +} +.mint-checkbox {} +.mint-checkbox.is-right { + float: right; +} +.mint-checkbox-label { + vertical-align: middle; + margin-left: 6px; +} +.mint-checkbox-input { + display: none; +} +.mint-checkbox-input:checked + .mint-checkbox-core { + background-color: #26a2ff; + border-color: #26a2ff; +} +.mint-checkbox-input:checked + .mint-checkbox-core::after { + border-color: #fff; + -webkit-transform: rotate(45deg) scale(1); + transform: rotate(45deg) scale(1); +} +.mint-checkbox-input[disabled] + .mint-checkbox-core { + background-color: #d9d9d9; + border-color: #ccc; +} +.mint-checkbox-core { + display: inline-block; + background-color: #fff; + border-radius: 100%; + border: 1px solid #ccc; + position: relative; + width: 20px; + height: 20px; + vertical-align: middle; +} +.mint-checkbox-core::after { + border: 2px solid transparent; + border-left: 0; + border-top: 0; + content: " "; + top: 3px; + left: 6px; + position: absolute; + width: 4px; + height: 8px; + -webkit-transform: rotate(45deg) scale(0); + transform: rotate(45deg) scale(0); + -webkit-transition: -webkit-transform .2s; + transition: -webkit-transform .2s; + transition: transform .2s; + transition: transform .2s, -webkit-transform .2s; +} diff --git a/src/main/web/static/mint-ui/datetime-picker/index.js b/src/main/web/static/mint-ui/datetime-picker/index.js new file mode 100644 index 0000000000000000000000000000000000000000..11f99d56adb52e087c1a89b371f5b4d0f432cfa5 --- /dev/null +++ b/src/main/web/static/mint-ui/datetime-picker/index.js @@ -0,0 +1,754 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 215); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 112: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 136: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(112) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(58), + /* template */ + __webpack_require__(182), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 182: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('mt-popup', { + staticClass: "mint-datetime", + attrs: { + "closeOnClickModal": _vm.closeOnClickModal, + "position": "bottom" + }, + model: { + value: (_vm.visible), + callback: function($$v) { + _vm.visible = $$v + }, + expression: "visible" + } + }, [_c('mt-picker', { + ref: "picker", + staticClass: "mint-datetime-picker", + attrs: { + "slots": _vm.dateSlots, + "visible-item-count": _vm.visibleItemCount, + "show-toolbar": "" + }, + on: { + "change": _vm.onChange + } + }, [_c('span', { + staticClass: "mint-datetime-action mint-datetime-cancel", + on: { + "click": function($event) { + _vm.visible = false; + _vm.$emit('cancel') + } + } + }, [_vm._v(_vm._s(_vm.cancelText))]), _vm._v(" "), _c('span', { + staticClass: "mint-datetime-action mint-datetime-confirm", + on: { + "click": _vm.confirm + } + }, [_vm._v(_vm._s(_vm.confirmText))])])], 1) +},staticRenderFns: []} + +/***/ }, + +/***/ 201: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/picker"); + +/***/ }, + +/***/ 202: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/picker/style.css"); + +/***/ }, + +/***/ 203: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/popup"); + +/***/ }, + +/***/ 204: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/popup/style.css"); + +/***/ }, + +/***/ 215: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(24); + + +/***/ }, + +/***/ 24: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue__ = __webpack_require__(136); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue___default.a; }); + + + +/***/ }, + +/***/ 58: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js__ = __webpack_require__(201); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js__ = __webpack_require__(203); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +if (true) { + __webpack_require__(202); + __webpack_require__(204); +} + +var FORMAT_MAP = { + Y: 'year', + M: 'month', + D: 'date', + H: 'hour', + m: 'minute' +}; + +/* harmony default export */ exports["default"] = { + name: 'mt-datetime-picker', + + props: { + cancelText: { + type: String, + default: '取消' + }, + confirmText: { + type: String, + default: '确定' + }, + type: { + type: String, + default: 'datetime' + }, + startDate: { + type: Date, + default: function default$1() { + return new Date(new Date().getFullYear() - 10, 0, 1); + } + }, + endDate: { + type: Date, + default: function default$2() { + return new Date(new Date().getFullYear() + 10, 11, 31); + } + }, + startHour: { + type: Number, + default: 0 + }, + endHour: { + type: Number, + default: 23 + }, + yearFormat: { + type: String, + default: '{value}' + }, + monthFormat: { + type: String, + default: '{value}' + }, + dateFormat: { + type: String, + default: '{value}' + }, + hourFormat: { + type: String, + default: '{value}' + }, + minuteFormat: { + type: String, + default: '{value}' + }, + visibleItemCount: { + type: Number, + default: 7 + }, + closeOnClickModal: { + type: Boolean, + default: true + }, + value: null + }, + + data: function data() { + return { + visible: false, + startYear: null, + endYear: null, + startMonth: 1, + endMonth: 12, + startDay: 1, + endDay: 31, + currentValue: null, + selfTriggered: false, + dateSlots: [], + shortMonthDates: [], + longMonthDates: [], + febDates: [], + leapFebDates: [] + }; + }, + + components: { + 'mt-picker': __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js___default.a, + 'mt-popup': __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js___default.a + }, + + methods: { + open: function open() { + this.visible = true; + }, + + close: function close() { + this.visible = false; + }, + + isLeapYear: function isLeapYear(year) { + return (year % 400 === 0) || (year % 100 !== 0 && year % 4 === 0); + }, + + isShortMonth: function isShortMonth(month) { + return [4, 6, 9, 11].indexOf(month) > -1; + }, + + getMonthEndDay: function getMonthEndDay(year, month) { + if (this.isShortMonth(month)) { + return 30; + } else if (month === 2) { + return this.isLeapYear(year) ? 29 : 28; + } else { + return 31; + } + }, + + getTrueValue: function getTrueValue(formattedValue) { + if (!formattedValue) return; + while (isNaN(parseInt(formattedValue, 10))) { + formattedValue = formattedValue.slice(1); + } + return parseInt(formattedValue, 10); + }, + + getValue: function getValue(values) { + var this$1 = this; + + var value; + if (this.type === 'time') { + value = values.map(function (value) { return ('0' + this$1.getTrueValue(value)).slice(-2); }).join(':'); + } else { + var year = this.getTrueValue(values[0]); + var month = this.getTrueValue(values[1]); + var date = this.getTrueValue(values[2]); + var maxDate = this.getMonthEndDay(year, month); + if (date > maxDate) { + this.selfTriggered = true; + date = 1; + } + var hour = this.typeStr.indexOf('H') > -1 ? this.getTrueValue(values[this.typeStr.indexOf('H')]) : 0; + var minute = this.typeStr.indexOf('m') > -1 ? this.getTrueValue(values[this.typeStr.indexOf('m')]) : 0; + value = new Date(year, month - 1, date, hour, minute); + } + return value; + }, + + onChange: function onChange(picker) { + var values = picker.$children.filter(function (child) { return child.currentValue !== undefined; }).map(function (child) { return child.currentValue; }); + if (this.selfTriggered) { + this.selfTriggered = false; + return; + } + if (values.length !== 0) { + this.currentValue = this.getValue(values); + this.handleValueChange(); + } + }, + + fillValues: function fillValues(type, start, end) { + var this$1 = this; + + var values = []; + for (var i = start; i <= end; i++) { + if (i < 10) { + values.push(this$1[((FORMAT_MAP[type]) + "Format")].replace('{value}', ('0' + i).slice(-2))); + } else { + values.push(this$1[((FORMAT_MAP[type]) + "Format")].replace('{value}', i)); + } + } + return values; + }, + + pushSlots: function pushSlots(slots, type, start, end) { + slots.push({ + flex: 1, + values: this.fillValues(type, start, end) + }); + }, + + generateSlots: function generateSlots() { + var this$1 = this; + + var dateSlots = []; + var INTERVAL_MAP = { + Y: this.rims.year, + M: this.rims.month, + D: this.rims.date, + H: this.rims.hour, + m: this.rims.min + }; + var typesArr = this.typeStr.split(''); + typesArr.forEach(function (type) { + if (INTERVAL_MAP[type]) { + this$1.pushSlots.apply(null, [dateSlots, type].concat(INTERVAL_MAP[type])); + } + }); + if (this.typeStr === 'Hm') { + dateSlots.splice(1, 0, { + divider: true, + content: ':' + }); + } + this.dateSlots = dateSlots; + this.handleExceededValue(); + }, + + handleExceededValue: function handleExceededValue() { + var this$1 = this; + + var values = []; + if (this.type === 'time') { + var currentValue = this.currentValue.split(':'); + values = [ + this.hourFormat.replace('{value}', currentValue[0]), + this.minuteFormat.replace('{value}', currentValue[1]) + ]; + } else { + values = [ + this.yearFormat.replace('{value}', this.getYear(this.currentValue)), + this.monthFormat.replace('{value}', ('0' + this.getMonth(this.currentValue)).slice(-2)), + this.dateFormat.replace('{value}', ('0' + this.getDate(this.currentValue)).slice(-2)) + ]; + if (this.type === 'datetime') { + values.push( + this.hourFormat.replace('{value}', ('0' + this.getHour(this.currentValue)).slice(-2)), + this.minuteFormat.replace('{value}', ('0' + this.getMinute(this.currentValue)).slice(-2)) + ); + } + } + this.dateSlots.filter(function (child) { return child.values !== undefined; }) + .map(function (slot) { return slot.values; }).forEach(function (slotValues, index) { + if (slotValues.indexOf(values[index]) === -1) { + values[index] = slotValues[0]; + } + }); + this.$nextTick(function () { + this$1.setSlotsByValues(values); + }); + }, + + setSlotsByValues: function setSlotsByValues(values) { + var setSlotValue = this.$refs.picker.setSlotValue; + if (this.type === 'time') { + setSlotValue(0, values[0]); + setSlotValue(1, values[1]); + } + if (this.type !== 'time') { + setSlotValue(0, values[0]); + setSlotValue(1, values[1]); + setSlotValue(2, values[2]); + if (this.type === 'datetime') { + setSlotValue(3, values[3]); + setSlotValue(4, values[4]); + } + } + [].forEach.call(this.$refs.picker.$children, function (child) { return child.doOnValueChange(); }); + }, + + rimDetect: function rimDetect(result, rim) { + var position = rim === 'start' ? 0 : 1; + var rimDate = rim === 'start' ? this.startDate : this.endDate; + if (this.getYear(this.currentValue) === rimDate.getFullYear()) { + result.month[position] = rimDate.getMonth() + 1; + if (this.getMonth(this.currentValue) === rimDate.getMonth() + 1) { + result.date[position] = rimDate.getDate(); + if (this.getDate(this.currentValue) === rimDate.getDate()) { + result.hour[position] = rimDate.getHours(); + if (this.getHour(this.currentValue) === rimDate.getHours()) { + result.min[position] = rimDate.getMinutes(); + } + } + } + } + }, + + isDateString: function isDateString(str) { + return /\d{4}(\-|\/|.)\d{1,2}\1\d{1,2}/.test(str); + }, + + getYear: function getYear(value) { + return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[0] : value.getFullYear(); + }, + + getMonth: function getMonth(value) { + return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[1] : value.getMonth() + 1; + }, + + getDate: function getDate(value) { + return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[2] : value.getDate(); + }, + + getHour: function getHour(value) { + if (this.isDateString(value)) { + var str = value.split(' ')[1] || '00:00:00'; + return str.split(':')[0]; + } + return value.getHours(); + }, + + getMinute: function getMinute(value) { + if (this.isDateString(value)) { + var str = value.split(' ')[1] || '00:00:00'; + return str.split(':')[1]; + } + return value.getMinutes(); + }, + + confirm: function confirm() { + this.visible = false; + this.$emit('confirm', this.currentValue); + }, + + handleValueChange: function handleValueChange() { + this.$emit('input', this.currentValue); + } + }, + + computed: { + rims: function rims() { + if (!this.currentValue) return { year: [], month: [], date: [], hour: [], min: [] }; + var result; + if (this.type === 'time') { + result = { + hour: [this.startHour, this.endHour], + min: [0, 59] + }; + return result; + } + result = { + year: [this.startDate.getFullYear(), this.endDate.getFullYear()], + month: [1, 12], + date: [1, this.getMonthEndDay(this.getYear(this.currentValue), this.getMonth(this.currentValue))], + hour: [0, 23], + min: [0, 59] + }; + this.rimDetect(result, 'start'); + this.rimDetect(result, 'end'); + return result; + }, + + typeStr: function typeStr() { + if (this.type === 'time') { + return 'Hm'; + } else if (this.type === 'date') { + return 'YMD'; + } else { + return 'YMDHm'; + } + } + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + rims: function rims$1() { + this.generateSlots(); + }, + + visible: function visible(val) { + this.$emit('visible-change', val); + } + }, + + mounted: function mounted() { + this.currentValue = this.value; + if (!this.value) { + if (this.type.indexOf('date') > -1) { + this.currentValue = this.startDate; + } else { + this.currentValue = (('0' + this.startHour).slice(-2)) + ":00"; + } + } + this.generateSlots(); + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/datetime-picker/style.css b/src/main/web/static/mint-ui/datetime-picker/style.css new file mode 100644 index 0000000000000000000000000000000000000000..0f033588daf00c82b2fdc57ae57ff57c17241c6c --- /dev/null +++ b/src/main/web/static/mint-ui/datetime-picker/style.css @@ -0,0 +1,33 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-datetime { + width: 100%; +} +.mint-datetime .picker-slot-wrapper, .mint-datetime .picker-item { + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +.mint-datetime .picker-toolbar { + border-bottom: solid 1px #eaeaea; +} +.mint-datetime-action { + display: inline-block; + width: 50%; + text-align: center; + line-height: 40px; + font-size: 16px; + color: #26a2ff; +} +.mint-datetime-cancel { + float: left; +} +.mint-datetime-confirm { + float: right; +} diff --git a/src/main/web/static/mint-ui/field/index.js b/src/main/web/static/mint-ui/field/index.js new file mode 100644 index 0000000000000000000000000000000000000000..3b9faa1213ccc07866842c6b2bccb1f8ddc7687a --- /dev/null +++ b/src/main/web/static/mint-ui/field/index.js @@ -0,0 +1,542 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 216); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 119: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 12: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/** + * v-clickoutside + * @desc 点击元素外面才会触发的事件 + * @example + * ```vue + *
+ * ``` + */ +var clickoutsideContext = '@@clickoutsideContext'; + +/* harmony default export */ exports["a"] = { + bind: function bind(el, binding, vnode) { + var documentHandler = function(e) { + if (vnode.context && !el.contains(e.target)) { + vnode.context[el[clickoutsideContext].methodName](); + } + }; + el[clickoutsideContext] = { + documentHandler: documentHandler, + methodName: binding.expression, + arg: binding.arg || 'click' + }; + document.addEventListener(el[clickoutsideContext].arg, documentHandler); + }, + + update: function update(el, binding) { + el[clickoutsideContext].methodName = binding.expression; + }, + + unbind: function unbind(el) { + document.removeEventListener( + el[clickoutsideContext].arg, + el[clickoutsideContext].documentHandler); + }, + + install: function install(Vue) { + Vue.directive('clickoutside', { + bind: this.bind, + unbind: this.unbind + }); + } +}; + + +/***/ }, + +/***/ 137: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(119) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(59), + /* template */ + __webpack_require__(188), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 188: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('x-cell', { + directives: [{ + name: "clickoutside", + rawName: "v-clickoutside", + value: (_vm.doCloseActive), + expression: "doCloseActive" + }], + staticClass: "mint-field", + class: [{ + 'is-textarea': _vm.type === 'textarea', + 'is-nolabel': !_vm.label + }], + attrs: { + "title": _vm.label + } + }, [(_vm.type === 'textarea') ? _c('textarea', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + ref: "textarea", + staticClass: "mint-field-core", + attrs: { + "placeholder": _vm.placeholder, + "rows": _vm.rows, + "disabled": _vm.disabled, + "readonly": _vm.readonly + }, + domProps: { + "value": (_vm.currentValue) + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + }, + "input": function($event) { + if ($event.target.composing) { return; } + _vm.currentValue = $event.target.value + } + } + }) : _c('input', { + ref: "input", + staticClass: "mint-field-core", + attrs: { + "placeholder": _vm.placeholder, + "number": _vm.type === 'number', + "type": _vm.type, + "disabled": _vm.disabled, + "readonly": _vm.readonly + }, + domProps: { + "value": _vm.currentValue + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + }, + "focus": function($event) { + _vm.active = true + }, + "input": _vm.handleInput + } + }), _vm._v(" "), (!_vm.disableClear) ? _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.currentValue && _vm.type !== 'textarea' && _vm.active), + expression: "currentValue && type !== 'textarea' && active" + }], + staticClass: "mint-field-clear", + on: { + "click": _vm.handleClear + } + }, [_c('i', { + staticClass: "mintui mintui-field-error" + })]) : _vm._e(), _vm._v(" "), (_vm.state) ? _c('span', { + staticClass: "mint-field-state", + class: ['is-' + _vm.state] + }, [_c('i', { + staticClass: "mintui", + class: ['mintui-field-' + _vm.state] + })]) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "mint-field-other" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 216: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(25); + + +/***/ }, + +/***/ 25: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_field_vue__ = __webpack_require__(137); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_field_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_field_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_field_vue___default.a; }); + + + +/***/ }, + +/***/ 3: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell"); + +/***/ }, + +/***/ 4: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell/style.css"); + +/***/ }, + +/***/ 59: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_clickoutside__ = __webpack_require__(12); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +if (true) { + __webpack_require__(4); +} + +/** + * mt-field + * @desc 编辑器,依赖 cell + * @module components/field + * + * @param {string} [type=text] - field 类型,接受 text, textarea 等 + * @param {string} [label] - 标签 + * @param {string} [rows] - textarea 的 rows + * @param {string} [placeholder] - placeholder + * @param {string} [disabled] - disabled + * @param {string} [readonly] - readonly + * @param {string} [state] - 表单校验状态样式,接受 error, warning, success + * + * @example + * + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-field', + + data: function data() { + return { + active: false, + currentValue: this.value + }; + }, + + directives: { + Clickoutside: __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_clickoutside__["a" /* default */] + }, + + props: { + type: { + type: String, + default: 'text' + }, + rows: String, + label: String, + placeholder: String, + readonly: Boolean, + disabled: Boolean, + disableClear: Boolean, + state: { + type: String, + default: 'default' + }, + value: {}, + attr: Object + }, + + components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default.a }, + + methods: { + doCloseActive: function doCloseActive() { + this.active = false; + }, + + handleInput: function handleInput(evt) { + this.currentValue = evt.target.value; + }, + + handleClear: function handleClear() { + if (this.disabled || this.readonly) return; + this.currentValue = ''; + } + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + attr: { + immediate: true, + handler: function handler(attrs) { + var this$1 = this; + + this.$nextTick(function () { + var target = [this$1.$refs.input, this$1.$refs.textarea]; + target.forEach(function (el) { + if (!el || !attrs) return; + Object.keys(attrs).map(function (name) { return el.setAttribute(name, attrs[name]); }); + }); + }); + } + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/field/style.css b/src/main/web/static/mint-ui/field/style.css new file mode 100644 index 0000000000000000000000000000000000000000..611e22809553711706bddf9052f454ee80432357 --- /dev/null +++ b/src/main/web/static/mint-ui/field/style.css @@ -0,0 +1,84 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-field { + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} +.mint-field .mint-cell-title { + width: 105px; + -webkit-box-flex: 0; + -ms-flex: none; + flex: none; +} +.mint-field .mint-cell-value { + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + color: inherit; + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} +.mint-field.is-nolabel .mint-cell-title { + display: none; +} +.mint-field.is-textarea { + -webkit-box-align: inherit; + -ms-flex-align: inherit; + align-items: inherit; +} +.mint-field.is-textarea .mint-cell-title { + padding: 10px 0; +} +.mint-field.is-textarea .mint-cell-value { + padding: 5px 0; +} +.mint-field-core { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border-radius: 0; + border: 0; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + outline: 0; + line-height: 1.6; + font-size: inherit; + width: 100%; +} +.mint-field-clear { + opacity: .2; +} +.mint-field-state { + color: inherit; + margin-left: 20px; +} +.mint-field-state .mintui { + font-size: 20px; +} +.mint-field-state.is-default { + margin-left: 0; +} +.mint-field-state.is-success { + color: #4caf50; +} +.mint-field-state.is-warning { + color: #ffc107; +} +.mint-field-state.is-error { + color: #f44336; +} +.mint-field-other { + top: 0; + right: 0; + position: relative; +} diff --git a/src/main/web/static/mint-ui/font/index.js b/src/main/web/static/mint-ui/font/index.js new file mode 100644 index 0000000000000000000000000000000000000000..715b56b392dd620ffb031890a35b74282c349609 --- /dev/null +++ b/src/main/web/static/mint-ui/font/index.js @@ -0,0 +1,87 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 217); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 217: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(51); + + +/***/ }, + +/***/ 51: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/font/style.css b/src/main/web/static/mint-ui/font/style.css new file mode 100644 index 0000000000000000000000000000000000000000..b6611c626f4396b36b9787d26b8dca23ab899eda --- /dev/null +++ b/src/main/web/static/mint-ui/font/style.css @@ -0,0 +1,20 @@ + +@font-face {font-family: "mintui"; + src: url(data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTXMrDTgAAAD8AAAAHE9TLzJXb1zGAAABGAAAAGBjbWFwsbgH3gAAAXgAAAFaY3Z0IA1j/vQAAA2UAAAAJGZwZ20w956VAAANuAAACZZnYXNwAAAAEAAADYwAAAAIZ2x5Zm8hHaQAAALUAAAHeGhlYWQKwq5kAAAKTAAAADZoaGVhCJMESQAACoQAAAAkaG10eBuiAmQAAAqoAAAAKGxvY2EJUArqAAAK0AAAABhtYXhwAS4KKwAACugAAAAgbmFtZal8DOEAAAsIAAACE3Bvc3QbrFqUAAANHAAAAHBwcmVwpbm+ZgAAF1AAAACVAAAAAQAAAADMPaLPAAAAANN2tTQAAAAA03a1NAAEBBIB9AAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAgAGAwAAAAAAAAAAAAEQAAAAAAAAAAAAAABQZkVkAMAAeOYJA4D/gABcA38AgAAAAAEAAAAAAxgAAAAAACAAAQAAAAMAAAADAAAAHAABAAAAAABUAAMAAQAAABwABAA4AAAACgAIAAIAAgB45gLmBeYJ//8AAAB45gDmBOYI////ixoEGgMaAQABAAAAAAAAAAAAAAAAAQYAAAEAAAAAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACACIAAAEyAqoAAwAHAClAJgAAAAMCAANXAAIBAQJLAAICAU8EAQECAUMAAAcGBQQAAwADEQUPKzMRIREnMxEjIgEQ7szMAqr9ViICZgAAAAUALP/hA7wDGAAWADAAOgBSAF4Bd0uwE1BYQEoCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoGCV4RAQwGBAYMXgALBAtpDwEIAAYMCAZYAAoHBQIECwoEWRIBDg4NUQANDQoOQhtLsBdQWEBLAgEADQ4NAA5mAAMOAQ4DXgABCAgBXBABCQgKCAkKZhEBDAYEBgxeAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0uwGFBYQEwCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0BOAgEADQ4NAA5mAAMOAQ4DAWYAAQgOAQhkEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CWVlZQChTUzs7MjEXF1NeU15bWDtSO1JLQzc1MToyOhcwFzBRETEYESgVQBMWKwEGKwEiDgIdASE1NCY1NC4CKwEVIQUVFBYUDgIjBiYrASchBysBIiciLgI9ARciBhQWMzI2NCYXBgcOAx4BOwYyNicuAScmJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIw4OHw4gLf5JLB0iFBkZIBMIdwwSEgwNEhKMCAYFCwQCBA8OJUNRUEAkFxYJBQkFBQb+pAUPGhW8HykCHwEMGScaTCkQHAQNIBsSYYg0Fzo6JRcJAQGAgAETGyAOpz8RGhERGhF8GhYTJA4QDQgYGg0jERMUAXfkCxgTDB0m4wAAAQDp//UCugMMABEASLYKAQIAAQFAS7AaUFhACwABAQpBAAAACwBCG0uwKlBYQAsAAAABUQABAQoAQhtAEAABAAABTQABAQBRAAABAEVZWbMYFQIQKwkCFhQGIicBJjcmNwE2MhYUArD+iQF3ChQcCv5yCgEBCgGOChwUAtT+rf6sCRwTCgFoCw8OCwFoChMcAAAAAAMAXgElA6EB2gAHAA8AFwAhQB4EAgIAAQEATQQCAgAAAVEFAwIBAAFFExMTExMQBhQrEiIGFBYyNjQkIgYUFjI2NCQiBhQWMjY03ks1NUs1ARNLNTVLNQERSzU1SzUB2jVLNTVLNTVLNTVLNTVLNTVLAAAAAQAA/4AEtgN/ABAAEkAPBwYFAwAFAD0AAABfHQEPKwEEAQcmATcBNiQ+AT8BMh4BBLb/AP6adZT+uW0BJZkBCJ5uGBUFDicDNuP95Le4AUdu/wCa+YVeDg4EIwACAE7/6AO4A1IAGAAgACdAJBEDAgMEAUAAAAAEAwAEWQADAAECAwFZAAICCwJCExMVJRgFEyslJyYnNjU0LgEiDgEUHgEzMjcWHwEWMjY0JCImNDYyFhQDrdQFB0lfpMKkX1+kYYZlAwTUCx8W/nb4sLD4sCrYBgJie2KoYWGoxahhWwYE2QsXH5a0/rOz/gAGAEH/wAO/Az4ADwAbADMAQwBPAFsAVUBSW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEGxoZGBcWFRQTEhEQJAEAAUAAAwADaAACAQJpBAEAAQEATQQBAAABUQUBAQABRT08NTQpKB0cFxAGECsAIg4CFB4CMj4CNC4BAwcnByc3JzcXNxcHEiInLgEnJjQ3PgE3NjIXHgEXFhQHDgEHAiIOAhQeAjI+AjQuAQMnByc3JzcXNxcHFyEXNxc3JzcnBycHFwJataZ3R0d3prWmd0dHd0Qimpoimpoimpoimjm2U1F7IiMjIntRU7ZTUHwiIyMifFBUtaV4RkZ4pbWleEdHeGWamiOamiOamiOamv6IIZqaIZqaIZqaIZoDPkd3praleEZGeKW2pnf97yKamiKamiKamiKa/kAjInxQU7ZTUXsiIyMie1FTtlNQfCIDWkZ4pbWleEdHeKW1pXj9zJqaI5qaI5qaI5qaIZqaIZqaIZqaIZoAAAAABABHAAIDtwLdAA0AHQAwADEAMUAuMQEEBQFAAAAABQQABVkABAADAgQDWQACAQECTQACAgFRAAECAUU2NDU1NRIGFCslASYiBwEGFxYzITI3NiUUBisBIiY9ATQ2OwEyFhUnBiMnIiY1JzU0NjsBMhYdAhQHA7f+dxA+EP53EREQHwMSHxAR/mkKCD4ICwsIPggKBQUIPggKAQsHPwgKBVACdBkZ/YwbGhkZGjEJDQ0JJQoNDQpWBQEIB2mmBgkJBqVrBgQAAAADAED/wwO+A0IAAAAQABYAJkAjFhUUExIRBgEAAUAAAQA+AAABAQBNAAAAAVEAAQABRRcRAhArATIiDgIUHgIyPgI0LgEBJzcXARcB/1u2pndHR3emtqZ3R0d3/sXCI58BIyMDQkd4pbameEdHeKa2pXj9w8MjnwEkIwAAAQAAAAEAACFDvy9fDzz1AAsEAAAAAADTdrU0AAAAANN2tTQAAP+ABLYDfwAAAAgAAgAAAAAAAAABAAADf/+AAFwEvwAAAAAEtgABAAAAAAAAAAAAAAAAAAAACQF2ACIAAAAAAVUAAAPpACwEAADpBAAAXgS/AAAD6ABOBAAAQQBHAEAAAAAoACgAKAFkAa4B6AIWAl4DGgN+A7wAAQAAAAsAXwAGAAAAAAACACYANABsAAAAigmWAAAAAAAAAAwAlgABAAAAAAABAAYAAAABAAAAAAACAAYABgABAAAAAAADACEADAABAAAAAAAEAAYALQABAAAAAAAFAEYAMwABAAAAAAAGAAYAeQADAAEECQABAAwAfwADAAEECQACAAwAiwADAAEECQADAEIAlwADAAEECQAEAAwA2QADAAEECQAFAIwA5QADAAEECQAGAAwBcW1pbnR1aU1lZGl1bUZvbnRGb3JnZSAyLjAgOiBtaW50dWkgOiAzLTYtMjAxNm1pbnR1aVZlcnNpb24gMS4wIDsgdHRmYXV0b2hpbnQgKHYwLjk0KSAtbCA4IC1yIDUwIC1HIDIwMCAteCAxNCAtdyAiRyIgLWYgLXNtaW50dWkAbQBpAG4AdAB1AGkATQBlAGQAaQB1AG0ARgBvAG4AdABGAG8AcgBnAGUAIAAyAC4AMAAgADoAIABtAGkAbgB0AHUAaQAgADoAIAAzAC0ANgAtADIAMAAxADYAbQBpAG4AdAB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwACAAOwAgAHQAdABmAGEAdQB0AG8AaABpAG4AdAAgACgAdgAwAC4AOQA0ACkAIAAtAGwAIAA4ACAALQByACAANQAwACAALQBHACAAMgAwADAAIAAtAHgAIAAxADQAIAAtAHcAIAAiAEcAIgAgAC0AZgAgAC0AcwBtAGkAbgB0AHUAaQAAAgAAAAAAAP+DADIAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQACAFsBAgEDAQQBBQEGAQcBCAd1bmlFNjAwB3VuaUU2MDEHdW5pRTYwMgd1bmlFNjA0B3VuaUU2MDUHdW5pRTYwOAd1bmlFNjA5AAEAAf//AA8AAAAAAAAAAAAAAAAAAAAAADIAMgMY/+EDf/+AAxj/4QN//4CwACywIGBmLbABLCBkILDAULAEJlqwBEVbWCEjIRuKWCCwUFBYIbBAWRsgsDhQWCGwOFlZILAKRWFksChQWCGwCkUgsDBQWCGwMFkbILDAUFggZiCKimEgsApQWGAbILAgUFghsApgGyCwNlBYIbA2YBtgWVlZG7AAK1lZI7AAUFhlWVktsAIsIEUgsAQlYWQgsAVDUFiwBSNCsAYjQhshIVmwAWAtsAMsIyEjISBksQViQiCwBiNCsgoAAiohILAGQyCKIIqwACuxMAUlilFYYFAbYVJZWCNZISCwQFNYsAArGyGwQFkjsABQWGVZLbAELLAII0KwByNCsAAjQrAAQ7AHQ1FYsAhDK7IAAQBDYEKwFmUcWS2wBSywAEMgRSCwAkVjsAFFYmBELbAGLLAAQyBFILAAKyOxBAQlYCBFiiNhIGQgsCBQWCGwABuwMFBYsCAbsEBZWSOwAFBYZVmwAyUjYURELbAHLLEFBUWwAWFELbAILLABYCAgsApDSrAAUFggsAojQlmwC0NKsABSWCCwCyNCWS2wCSwguAQAYiC4BABjiiNhsAxDYCCKYCCwDCNCIy2wCixLVFixBwFEWSSwDWUjeC2wCyxLUVhLU1ixBwFEWRshWSSwE2UjeC2wDCyxAA1DVVixDQ1DsAFhQrAJK1mwAEOwAiVCsgABAENgQrEKAiVCsQsCJUKwARYjILADJVBYsABDsAQlQoqKIIojYbAIKiEjsAFhIIojYbAIKiEbsABDsAIlQrACJWGwCCohWbAKQ0ewC0NHYLCAYiCwAkVjsAFFYmCxAAATI0SwAUOwAD6yAQEBQ2BCLbANLLEABUVUWACwDSNCIGCwAWG1Dg4BAAwAQkKKYLEMBCuwaysbIlktsA4ssQANKy2wDyyxAQ0rLbAQLLECDSstsBEssQMNKy2wEiyxBA0rLbATLLEFDSstsBQssQYNKy2wFSyxBw0rLbAWLLEIDSstsBcssQkNKy2wGCywByuxAAVFVFgAsA0jQiBgsAFhtQ4OAQAMAEJCimCxDAQrsGsrGyJZLbAZLLEAGCstsBossQEYKy2wGyyxAhgrLbAcLLEDGCstsB0ssQQYKy2wHiyxBRgrLbAfLLEGGCstsCAssQcYKy2wISyxCBgrLbAiLLEJGCstsCMsIGCwDmAgQyOwAWBDsAIlsAIlUVgjIDywAWAjsBJlHBshIVktsCQssCMrsCMqLbAlLCAgRyAgsAJFY7ABRWJgI2E4IyCKVVggRyAgsAJFY7ABRWJgI2E4GyFZLbAmLLEABUVUWACwARawJSqwARUwGyJZLbAnLLAHK7EABUVUWACwARawJSqwARUwGyJZLbAoLCA1sAFgLbApLACwA0VjsAFFYrAAK7ACRWOwAUVisAArsAAWtAAAAAAARD4jOLEoARUqLbAqLCA8IEcgsAJFY7ABRWJgsABDYTgtsCssLhc8LbAsLCA8IEcgsAJFY7ABRWJgsABDYbABQ2M4LbAtLLECABYlIC4gR7AAI0KwAiVJiopHI0cjYSBYYhshWbABI0KyLAEBFRQqLbAuLLAAFrAEJbAEJUcjRyNhsAZFK2WKLiMgIDyKOC2wLyywABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyCwCUMgiiNHI0cjYSNGYLAEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmEjICCwBCYjRmE4GyOwCUNGsAIlsAlDRyNHI2FgILAEQ7CAYmAjILAAKyOwBENgsAArsAUlYbAFJbCAYrAEJmEgsAQlYGQjsAMlYGRQWCEbIyFZIyAgsAQmI0ZhOFktsDAssAAWICAgsAUmIC5HI0cjYSM8OC2wMSywABYgsAkjQiAgIEYjR7AAKyNhOC2wMiywABawAyWwAiVHI0cjYbAAVFguIDwjIRuwAiWwAiVHI0cjYSCwBSWwBCVHI0cjYbAGJbAFJUmwAiVhsAFFYyMgWGIbIVljsAFFYmAjLiMgIDyKOCMhWS2wMyywABYgsAlDIC5HI0cjYSBgsCBgZrCAYiMgIDyKOC2wNCwjIC5GsAIlRlJYIDxZLrEkARQrLbA1LCMgLkawAiVGUFggPFkusSQBFCstsDYsIyAuRrACJUZSWCA8WSMgLkawAiVGUFggPFkusSQBFCstsDcssC4rIyAuRrACJUZSWCA8WS6xJAEUKy2wOCywLyuKICA8sAQjQoo4IyAuRrACJUZSWCA8WS6xJAEUK7AEQy6wJCstsDkssAAWsAQlsAQmIC5HI0cjYbAGRSsjIDwgLiM4sSQBFCstsDossQkEJUKwABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyBHsARDsIBiYCCwACsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsIBiYbACJUZhOCMgPCM4GyEgIEYjR7AAKyNhOCFZsSQBFCstsDsssC4rLrEkARQrLbA8LLAvKyEjICA8sAQjQiM4sSQBFCuwBEMusCQrLbA9LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA+LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA/LLEAARQTsCsqLbBALLAtKi2wQSywABZFIyAuIEaKI2E4sSQBFCstsEIssAkjQrBBKy2wQyyyAAA6Ky2wRCyyAAE6Ky2wRSyyAQA6Ky2wRiyyAQE6Ky2wRyyyAAA7Ky2wSCyyAAE7Ky2wSSyyAQA7Ky2wSiyyAQE7Ky2wSyyyAAA3Ky2wTCyyAAE3Ky2wTSyyAQA3Ky2wTiyyAQE3Ky2wTyyyAAA5Ky2wUCyyAAE5Ky2wUSyyAQA5Ky2wUiyyAQE5Ky2wUyyyAAA8Ky2wVCyyAAE8Ky2wVSyyAQA8Ky2wViyyAQE8Ky2wVyyyAAA4Ky2wWCyyAAE4Ky2wWSyyAQA4Ky2wWiyyAQE4Ky2wWyywMCsusSQBFCstsFwssDArsDQrLbBdLLAwK7A1Ky2wXiywABawMCuwNistsF8ssDErLrEkARQrLbBgLLAxK7A0Ky2wYSywMSuwNSstsGIssDErsDYrLbBjLLAyKy6xJAEUKy2wZCywMiuwNCstsGUssDIrsDUrLbBmLLAyK7A2Ky2wZyywMysusSQBFCstsGgssDMrsDQrLbBpLLAzK7A1Ky2waiywMyuwNistsGssK7AIZbADJFB4sAEVMC0AAEu4AMhSWLEBAY5ZuQgACABjILABI0QgsAMjcLAORSAgS7gADlFLsAZTWliwNBuwKFlgZiCKVViwAiVhsAFFYyNisAIjRLMKCQUEK7MKCwUEK7MODwUEK1myBCgJRVJEswoNBgQrsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAAA) +} + +.mintui { + font-family:"mintui" !important; + font-size:16px; + font-style:normal; + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0.2px; + -moz-osx-font-smoothing: grayscale; +} +.mintui-search:before { content: "\E604"; } +.mintui-more:before { content: "\E601"; } +.mintui-back:before { content: "\E600"; } +.mintui-field-error:before { content: "\E605"; } +.mintui-field-warning:before { content: "\E608"; } +.mintui-success:before { content: "\E602"; } +.mintui-field-success:before { content: "\E609"; } diff --git a/src/main/web/static/mint-ui/header/index.js b/src/main/web/static/mint-ui/header/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e7450ed5942092a19873c34eab5ec301a9765586 --- /dev/null +++ b/src/main/web/static/mint-ui/header/index.js @@ -0,0 +1,292 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 218); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 111: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 138: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(111) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(60), + /* template */ + __webpack_require__(180), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 180: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('header', { + staticClass: "mint-header", + class: { + 'is-fixed': _vm.fixed + } + }, [_c('div', { + staticClass: "mint-header-button is-left" + }, [_vm._t("left")], 2), _vm._v(" "), _c('h1', { + staticClass: "mint-header-title", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), _c('div', { + staticClass: "mint-header-button is-right" + }, [_vm._t("right")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 218: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(26); + + +/***/ }, + +/***/ 26: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_header_vue__ = __webpack_require__(138); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_header_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_header_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_header_vue___default.a; }); + + + +/***/ }, + +/***/ 60: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/** + * mt-header + * @module components/header + * @desc 顶部导航 + * @param {boolean} [fixed=false] - 固定顶部 + * @param {string} [title] - 标题 + * @param {slot} [left] - 显示在左侧区域 + * @param {slot} [right] - 显示在右侧区域 + * + * @example + * + * 返回 + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-header', + + props: { + fixed: Boolean, + title: String + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/header/style.css b/src/main/web/static/mint-ui/header/style.css new file mode 100644 index 0000000000000000000000000000000000000000..bdf6dce235774466f3ffc7a3409caa63524a5ce5 --- /dev/null +++ b/src/main/web/static/mint-ui/header/style.css @@ -0,0 +1,70 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-header { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + background-color: #26a2ff; + box-sizing: border-box; + color: #fff; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + font-size: 14px; + height: 40px; + line-height: 1; + padding: 0 10px; + position: relative; + text-align: center; + white-space: nowrap; +} +.mint-header .mint-button { + background-color: transparent; + border: 0; + box-shadow: none; + color: inherit; + display: inline-block; + padding: 0; + font-size: inherit +} +.mint-header .mint-button::after { + content: none; +} +.mint-header.is-fixed { + top: 0; + right: 0; + left: 0; + position: fixed; + z-index: 1; +} +.mint-header-button { + -webkit-box-flex: .5; + -ms-flex: .5; + flex: .5; +} +.mint-header-button > a { + color: inherit; +} +.mint-header-button.is-right { + text-align: right; +} +.mint-header-button.is-left { + text-align: left; +} +.mint-header-title { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: inherit; + font-weight: 400; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; +} diff --git a/src/main/web/static/mint-ui/index-list/index.js b/src/main/web/static/mint-ui/index-list/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e6736021c853ff5e73d3d918ca2f6e5d80342c5a --- /dev/null +++ b/src/main/web/static/mint-ui/index-list/index.js @@ -0,0 +1,454 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 219); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 139: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(97) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(61), + /* template */ + __webpack_require__(166), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 166: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-indexlist" + }, [_c('ul', { + ref: "content", + staticClass: "mint-indexlist-content", + style: ({ + 'height': _vm.currentHeight + 'px', + 'margin-right': _vm.navWidth + 'px' + }) + }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { + ref: "nav", + staticClass: "mint-indexlist-nav", + on: { + "touchstart": _vm.handleTouchStart + } + }, [_c('ul', { + staticClass: "mint-indexlist-navlist" + }, _vm._l((_vm.sections), function(section) { + return _c('li', { + staticClass: "mint-indexlist-navitem" + }, [_vm._v(_vm._s(section.index))]) + }))]), _vm._v(" "), (_vm.showIndicator) ? _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.moving), + expression: "moving" + }], + staticClass: "mint-indexlist-indicator" + }, [_vm._v(_vm._s(_vm.currentIndicator))]) : _vm._e()]) +},staticRenderFns: []} + +/***/ }, + +/***/ 219: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(27); + + +/***/ }, + +/***/ 27: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue__ = __webpack_require__(139); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_list_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue___default.a; }); + + + +/***/ }, + +/***/ 61: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-index-list', + + props: { + height: Number, + showIndicator: { + type: Boolean, + default: true + } + }, + + data: function data() { + return { + sections: [], + navWidth: 0, + indicatorTime: null, + moving: false, + firstSection: null, + currentIndicator: '', + currentHeight: this.height, + navOffsetX: 0 + }; + }, + + watch: { + sections: function sections() { + this.init(); + }, + height: function height(val) { + if (val) { + this.currentHeight = val; + } + } + }, + + methods: { + init: function init() { + var this$1 = this; + + this.$nextTick(function () { + this$1.navWidth = this$1.$refs.nav.clientWidth; + }); + var listItems = this.$refs.content.getElementsByTagName('li'); + if (listItems.length > 0) { + this.firstSection = listItems[0]; + } + }, + + handleTouchStart: function handleTouchStart(e) { + if (e.target.tagName !== 'LI') { + return; + } + this.navOffsetX = e.changedTouches[0].clientX; + this.scrollList(e.changedTouches[0].clientY); + if (this.indicatorTime) { + clearTimeout(this.indicatorTime); + } + this.moving = true; + window.addEventListener('touchmove', this.handleTouchMove); + window.addEventListener('touchend', this.handleTouchEnd); + }, + + handleTouchMove: function handleTouchMove(e) { + e.preventDefault(); + this.scrollList(e.changedTouches[0].clientY); + }, + + handleTouchEnd: function handleTouchEnd() { + var this$1 = this; + + this.indicatorTime = setTimeout(function () { + this$1.moving = false; + this$1.currentIndicator = ''; + }, 500); + window.removeEventListener('touchmove', this.handleTouchMove); + window.removeEventListener('touchend', this.handleTouchEnd); + }, + + scrollList: function scrollList(y) { + var currentItem = document.elementFromPoint(this.navOffsetX, y); + if (!currentItem || !currentItem.classList.contains('mint-indexlist-navitem')) { + return; + } + this.currentIndicator = currentItem.innerText; + var targets = this.sections.filter(function (section) { return section.index === currentItem.innerText; }); + var targetDOM; + if (targets.length > 0) { + targetDOM = targets[0].$el; + this.$refs.content.scrollTop = targetDOM.getBoundingClientRect().top - this.firstSection.getBoundingClientRect().top; + } + } + }, + + mounted: function mounted() { + var this$1 = this; + + if (!this.currentHeight) { + window.scrollTo(0, 0); + requestAnimationFrame(function (){ + this$1.currentHeight = document.documentElement.clientHeight - this$1.$refs.content.getBoundingClientRect().top; + }); + } + this.init(); + } +}; + + +/***/ }, + +/***/ 97: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/index-list/style.css b/src/main/web/static/mint-ui/index-list/style.css new file mode 100644 index 0000000000000000000000000000000000000000..3b8d7154c7bf06069e13db6b0e0d236be79870c2 --- /dev/null +++ b/src/main/web/static/mint-ui/index-list/style.css @@ -0,0 +1,77 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-indexlist { + width: 100%; + position: relative; + overflow: hidden +} +.mint-indexlist-content { + margin: 0; + padding: 0; + overflow: auto +} +.mint-indexlist-nav { + position: absolute; + top: 0; + bottom: 0; + right: 0; + margin: 0; + background-color: #fff; + border-left: solid 1px #ddd; + text-align: center; + max-height: 100%; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center +} +.mint-indexlist-navlist { + padding: 0; + margin: 0; + list-style: none; + max-height: 100%; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column +} +.mint-indexlist-navitem { + padding: 2px 6px; + font-size: 12px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-touch-callout: none +} +.mint-indexlist-indicator { + position: absolute; + width: 50px; + height: 50px; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + text-align: center; + line-height: 50px; + background-color: rgba(0, 0, 0, .7); + border-radius: 5px; + color: #fff; + font-size: 22px +} diff --git a/src/main/web/static/mint-ui/index-section/index.js b/src/main/web/static/mint-ui/index-section/index.js new file mode 100644 index 0000000000000000000000000000000000000000..56b9e477342343cca13237b4abc8d2b629e022a3 --- /dev/null +++ b/src/main/web/static/mint-ui/index-section/index.js @@ -0,0 +1,294 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 220); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 140: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(98) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(62), + /* template */ + __webpack_require__(167), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 167: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('li', { + staticClass: "mint-indexsection" + }, [_c('p', { + staticClass: "mint-indexsection-index" + }, [_vm._v(_vm._s(_vm.index))]), _vm._v(" "), _c('ul', [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 220: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(28); + + +/***/ }, + +/***/ 28: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue__ = __webpack_require__(140); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_section_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue___default.a; }); + + + +/***/ }, + +/***/ 62: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-index-section', + + props: { + index: { + type: String, + required: true + } + }, + + mounted: function mounted() { + this.$parent.sections.push(this); + }, + + beforeDestroy: function beforeDestroy() { + var index = this.$parent.sections.indexOf(this); + if (index > -1) { + this.$parent.sections.splice(index, 1); + } + } +}; + + +/***/ }, + +/***/ 98: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/index-section/style.css b/src/main/web/static/mint-ui/index-section/style.css new file mode 100644 index 0000000000000000000000000000000000000000..992346721f7ed725e71e901ff121fe5ca2425e02 --- /dev/null +++ b/src/main/web/static/mint-ui/index-section/style.css @@ -0,0 +1,13 @@ + +.mint-indexsection { + padding: 0; + margin: 0 +} +.mint-indexsection-index { + margin: 0; + padding: 10px; + background-color: #fafafa +} +.mint-indexsection-index + ul { + padding: 0 +} diff --git a/src/main/web/static/mint-ui/index.js b/src/main/web/static/mint-ui/index.js new file mode 100644 index 0000000000000000000000000000000000000000..46f2a2d5a4928366e6a31a42aa77f44513ae0a5e --- /dev/null +++ b/src/main/web/static/mint-ui/index.js @@ -0,0 +1,4 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("MINT",["vue"],e):"object"==typeof exports?exports.MINT=e(require("vue")):t.MINT=e(t.Vue)}(this,function(t){return function(t){function e(i){if(n[i])return n[i].exports;var a=n[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=202)}([function(t,e){t.exports=function(t,e,n,i,a){var s,r=t=t||{},o=typeof t.default;"object"!==o&&"function"!==o||(s=t,r=t.default);var l="function"==typeof r?r.options:r;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns),i&&(l._scopeId=i);var u;if(a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):n&&(u=n),u){var c=l.functional,d=c?l.render:l.beforeCreate;c?l.render=function(t,e){return u.call(e),d(t,e)}:l.beforeCreate=d?[].concat(d,u):[u]}return{esModule:s,exports:r,options:l}}},function(e,n){e.exports=t},function(t,e,n){"use strict";var i=n(135),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";function i(t,e){if(!t||!e)return!1;if(e.indexOf(" ")!==-1)throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1}function a(t,e){if(t){for(var n=t.className,a=(e||"").split(" "),s=0,r=a.length;s0?this._openTimer=setTimeout(function(){e._openTimer=null,e.doOpen(i)},a):this.doOpen(i)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0,this.visible=!0,this.$emit("input",!0);var e=h(this.$el),n=t.modal,a=t.zIndex;if(a&&(o.a.zIndex=a),n&&(this._closing&&(o.a.closeModal(this._popupId),this._closing=!1),o.a.openModal(this._popupId,o.a.nextZIndex(),e,t.modalClass,t.modalFade),t.lockScroll)){this.bodyOverflow||(this.bodyPaddingRight=document.body.style.paddingRight,this.bodyOverflow=document.body.style.overflow),i=d();var s=document.documentElement.clientHeight0&&s&&(document.body.style.paddingRight=i+"px"),document.body.style.overflow="hidden"}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.a.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.transition||this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout(function(){t._closeTimer=null,t.doClose()},e):this.doClose()}},doClose:function(){var t=this;this.visible=!1,this.$emit("input",!1),this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(function(){t.modal&&"hidden"!==t.bodyOverflow&&(document.body.style.overflow=t.bodyOverflow,document.body.style.paddingRight=t.bodyPaddingRight),t.bodyOverflow=null,t.bodyPaddingRight=null},200),this.opened=!1,this.transition||this.doAfterClose()},doAfterClose:function(){o.a.closeModal(this._popupId),this._closing=!1}}}},function(t,e,n){"use strict";var i=n(148),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(149),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(154),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i="@@clickoutsideContext";e.a={bind:function(t,e,n){var a=function(e){n.context&&!t.contains(e.target)&&n.context[t[i].methodName]()};t[i]={documentHandler:a,methodName:e.expression,arg:e.arg||"click"},document.addEventListener(t[i].arg,a)},update:function(t,e){t[i].methodName=e.expression},unbind:function(t){document.removeEventListener(t[i].arg,t[i].documentHandler)},install:function(t){t.directive("clickoutside",{bind:this.bind,unbind:this.unbind})}}},function(t,e,n){"use strict";e.a=function(t){for(var e=arguments,n=1,i=arguments.length;n-1}},size:{type:String,default:"normal",validator:function(t){return["small","normal","large"].indexOf(t)>-1}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),a=n(2),s=n(10);e.default={name:"mt-cell-swipe",components:{XCell:a.a},directives:{Clickoutside:s.a},props:{to:String,left:Array,right:Array,icon:String,title:String,label:String,isLink:Boolean,value:{}},data:function(){return{start:{x:0,y:0}}},mounted:function(){this.wrap=this.$refs.cell.$el.querySelector(".mint-cell-wrapper"),this.leftElm=this.$refs.left,this.rightElm=this.$refs.right,this.leftWrapElm=this.leftElm.parentNode,this.rightWrapElm=this.rightElm.parentNode,this.leftWidth=this.leftElm.getBoundingClientRect().width,this.rightWidth=this.rightElm.getBoundingClientRect().width,this.leftDefaultTransform=this.translate3d(-this.leftWidth-1),this.rightDefaultTransform=this.translate3d(this.rightWidth),this.rightWrapElm.style.webkitTransform=this.rightDefaultTransform,this.leftWrapElm.style.webkitTransform=this.leftDefaultTransform},methods:{resetSwipeStatus:function(){this.swiping=!1,this.opened=!0,this.offsetLeft=0},translate3d:function(t){return"translate3d("+t+"px, 0, 0)"},setAnimations:function(t){this.wrap.style.transitionDuration=t,this.rightWrapElm.style.transitionDuration=t,this.leftWrapElm.style.transitionDuration=t},swipeMove:function(t){void 0===t&&(t=0),this.wrap.style.webkitTransform=this.translate3d(t),this.rightWrapElm.style.webkitTransform=this.translate3d(this.rightWidth+t),this.leftWrapElm.style.webkitTransform=this.translate3d(-this.leftWidth+t),t&&(this.swiping=!0)},swipeLeaveTransition:function(t){var e=this;setTimeout(function(){return e.swipeLeave=!0,t>0&&-e.offsetLeft>.4*e.rightWidth?(e.swipeMove(-e.rightWidth),void e.resetSwipeStatus()):t<0&&e.offsetLeft>.4*e.leftWidth?(e.swipeMove(e.leftWidth),void e.resetSwipeStatus()):(e.swipeMove(0),void n.i(i.c)(e.wrap,"webkitTransitionEnd",function(t){e.wrap.style.webkitTransform="",e.rightWrapElm.style.webkitTransform=e.rightDefaultTransform,e.leftWrapElm.style.webkitTransform=e.leftDefaultTransform,e.swipeLeave=!1,e.swiping=!1}))},0)},startDrag:function(t){t=t.changedTouches?t.changedTouches[0]:t,this.dragging=!0,this.start.x=t.pageX,this.start.y=t.pageY,this.direction=""},onDrag:function(t){if(this.opened)return this.swiping||(this.swipeMove(0),this.setAnimations("")),void(this.opened=!1);if(this.dragging){var e,n=t.changedTouches?t.changedTouches[0]:t,i=n.pageY-this.start.y,a=this.offsetLeft=n.pageX-this.start.x,s=Math.abs(i),r=Math.abs(a);if(this.setAnimations("0ms"),""===this.direction&&(this.direction=r>s?"horizonal":"vertical"),"horizonal"===this.direction){if(t.preventDefault(),t.stopPropagation(),e=!(r<5||r>=5&&s>=1.73*r),!e)return;a<0&&-a>this.rightWidth||a>0&&a>this.leftWidth||a>0&&!this.leftWidth||a<0&&!this.rightWidth||this.swipeMove(a)}}},endDrag:function(){this.direction="",this.setAnimations(""),this.swiping&&this.swipeLeaveTransition(this.offsetLeft>0?-1:1)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-cell",props:{to:[String,Object],icon:String,title:String,label:String,isLink:Boolean,value:{}},computed:{href:function(){var t=this;if(this.to&&!this.added&&this.$router){var e=this.$router.match(this.to);return e.matched.length?(this.$nextTick(function(){t.added=!0,t.$el.addEventListener("click",t.handleClick)}),e.fullPath||e.path):this.to}return this.to}},methods:{handleClick:function(t){t.preventDefault(),this.$router.push(this.href)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);e.default={name:"mt-checklist",props:{max:Number,title:String,align:String,options:{type:Array,required:!0},value:Array},components:{XCell:i.a},data:function(){return{currentValue:this.value}},computed:{limit:function(){return this.max-1},getMonthEndDay:function(t,e){return this.isShortMonth(e)?30:2===e?this.isLeapYear(t)?29:28:31},getTrueValue:function(t){if(t){for(;isNaN(parseInt(t,10));)t=t.slice(1);return parseInt(t,10)}},getValue:function(t){var e,n=this;if("time"===this.type)e=t.map(function(t){return("0"+n.getTrueValue(t)).slice(-2)}).join(":");else{var i=this.getTrueValue(t[0]),a=this.getTrueValue(t[1]),s=this.getTrueValue(t[2]),r=this.getMonthEndDay(i,a);s>r&&(this.selfTriggered=!0,s=1);var o=this.typeStr.indexOf("H")>-1?this.getTrueValue(t[this.typeStr.indexOf("H")]):0,l=this.typeStr.indexOf("m")>-1?this.getTrueValue(t[this.typeStr.indexOf("m")]):0;e=new Date(i,a-1,s,o,l)}return e},onChange:function(t){var e=t.$children.filter(function(t){return void 0!==t.currentValue}).map(function(t){return t.currentValue});return this.selfTriggered?void(this.selfTriggered=!1):void(0!==e.length&&(this.currentValue=this.getValue(e),this.handleValueChange()))},fillValues:function(t,e,n){for(var i=this,a=[],r=e;r<=n;r++)r<10?a.push(i[s[t]+"Format"].replace("{value}",("0"+r).slice(-2))):a.push(i[s[t]+"Format"].replace("{value}",r));return a},pushSlots:function(t,e,n,i){t.push({flex:1,values:this.fillValues(e,n,i)})},generateSlots:function(){var t=this,e=[],n={Y:this.rims.year,M:this.rims.month,D:this.rims.date,H:this.rims.hour,m:this.rims.min},i=this.typeStr.split("");i.forEach(function(i){n[i]&&t.pushSlots.apply(null,[e,i].concat(n[i]))}),"Hm"===this.typeStr&&e.splice(1,0,{divider:!0,content:":"}),this.dateSlots=e,this.handleExceededValue()},handleExceededValue:function(){var t=this,e=[];if("time"===this.type){var n=this.currentValue.split(":");e=[this.hourFormat.replace("{value}",n[0]),this.minuteFormat.replace("{value}",n[1])]}else e=[this.yearFormat.replace("{value}",this.getYear(this.currentValue)),this.monthFormat.replace("{value}",("0"+this.getMonth(this.currentValue)).slice(-2)),this.dateFormat.replace("{value}",("0"+this.getDate(this.currentValue)).slice(-2))],"datetime"===this.type&&e.push(this.hourFormat.replace("{value}",("0"+this.getHour(this.currentValue)).slice(-2)),this.minuteFormat.replace("{value}",("0"+this.getMinute(this.currentValue)).slice(-2)));this.dateSlots.filter(function(t){return void 0!==t.values}).map(function(t){return t.values}).forEach(function(t,n){t.indexOf(e[n])===-1&&(e[n]=t[0])}),this.$nextTick(function(){t.setSlotsByValues(e)})},setSlotsByValues:function(t){var e=this.$refs.picker.setSlotValue;"time"===this.type&&(e(0,t[0]),e(1,t[1])),"time"!==this.type&&(e(0,t[0]),e(1,t[1]),e(2,t[2]),"datetime"===this.type&&(e(3,t[3]),e(4,t[4]))),[].forEach.call(this.$refs.picker.$children,function(t){return t.doOnValueChange()})},rimDetect:function(t,e){var n="start"===e?0:1,i="start"===e?this.startDate:this.endDate;this.getYear(this.currentValue)===i.getFullYear()&&(t.month[n]=i.getMonth()+1,this.getMonth(this.currentValue)===i.getMonth()+1&&(t.date[n]=i.getDate(),this.getDate(this.currentValue)===i.getDate()&&(t.hour[n]=i.getHours(),this.getHour(this.currentValue)===i.getHours()&&(t.min[n]=i.getMinutes()))))},isDateString:function(t){return/\d{4}(\-|\/|.)\d{1,2}\1\d{1,2}/.test(t)},getYear:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[0]:t.getFullYear()},getMonth:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[1]:t.getMonth()+1},getDate:function(t){return this.isDateString(t)?t.split(" ")[0].split(/-|\/|\./)[2]:t.getDate()},getHour:function(t){if(this.isDateString(t)){var e=t.split(" ")[1]||"00:00:00";return e.split(":")[0]}return t.getHours()},getMinute:function(t){if(this.isDateString(t)){var e=t.split(" ")[1]||"00:00:00";return e.split(":")[1]}return t.getMinutes()},confirm:function(){this.visible=!1,this.$emit("confirm",this.currentValue)},handleValueChange:function(){this.$emit("input",this.currentValue)}},computed:{rims:function(){if(!this.currentValue)return{year:[],month:[],date:[],hour:[],min:[]};var t;return"time"===this.type?t={hour:[this.startHour,this.endHour],min:[0,59]}:(t={year:[this.startDate.getFullYear(),this.endDate.getFullYear()],month:[1,12],date:[1,this.getMonthEndDay(this.getYear(this.currentValue),this.getMonth(this.currentValue))],hour:[0,23],min:[0,59]},this.rimDetect(t,"start"),this.rimDetect(t,"end"),t)},typeStr:function(){return"time"===this.type?"Hm":"date"===this.type?"YMD":"YMDHm"}},watch:{value:function(t){this.currentValue=t},rims:function(){this.generateSlots()},visible:function(t){this.$emit("visible-change",t)}},mounted:function(){this.currentValue=this.value,this.value||(this.type.indexOf("date")>-1?this.currentValue=this.startDate:this.currentValue=("0"+this.startHour).slice(-2)+":00"),this.generateSlots()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),a=n(10);e.default={name:"mt-field",data:function(){return{active:!1,currentValue:this.value}},directives:{Clickoutside:a.a},props:{type:{type:String,default:"text"},rows:String,label:String,placeholder:String,readonly:Boolean,disabled:Boolean,disableClear:Boolean,state:{type:String,default:"default"},value:{},attr:Object},components:{XCell:i.a},methods:{doCloseActive:function(){this.active=!1},handleInput:function(t){this.currentValue=t.target.value},handleClear:function(){this.disabled||this.readonly||(this.currentValue="")}},watch:{value:function(t){this.currentValue=t},currentValue:function(t){this.$emit("input",t)},attr:{immediate:!0,handler:function(t){var e=this;this.$nextTick(function(){var n=[e.$refs.input,e.$refs.textarea];n.forEach(function(e){e&&t&&Object.keys(t).map(function(n){return e.setAttribute(n,t[n])})})})}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-header",props:{fixed:Boolean,title:String}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-index-list",props:{height:Number,showIndicator:{type:Boolean,default:!0}},data:function(){return{sections:[],navWidth:0,indicatorTime:null,moving:!1,firstSection:null,currentIndicator:"",currentHeight:this.height,navOffsetX:0}},watch:{sections:function(){this.init()},height:function(t){t&&(this.currentHeight=t)}},methods:{init:function(){var t=this;this.$nextTick(function(){t.navWidth=t.$refs.nav.clientWidth});var e=this.$refs.content.getElementsByTagName("li");e.length>0&&(this.firstSection=e[0])},handleTouchStart:function(t){"LI"===t.target.tagName&&(this.navOffsetX=t.changedTouches[0].clientX,this.scrollList(t.changedTouches[0].clientY),this.indicatorTime&&clearTimeout(this.indicatorTime),this.moving=!0,window.addEventListener("touchmove",this.handleTouchMove),window.addEventListener("touchend",this.handleTouchEnd))},handleTouchMove:function(t){t.preventDefault(),this.scrollList(t.changedTouches[0].clientY)},handleTouchEnd:function(){var t=this;this.indicatorTime=setTimeout(function(){t.moving=!1,t.currentIndicator=""},500),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd)},scrollList:function(t){var e=document.elementFromPoint(this.navOffsetX,t);if(e&&e.classList.contains("mint-indexlist-navitem")){this.currentIndicator=e.innerText;var n,i=this.sections.filter(function(t){return t.index===e.innerText});i.length>0&&(n=i[0].$el,this.$refs.content.scrollTop=n.getBoundingClientRect().top-this.firstSection.getBoundingClientRect().top)}}},mounted:function(){var t=this;this.currentHeight||(window.scrollTo(0,0),requestAnimationFrame(function(){t.currentHeight=document.documentElement.clientHeight-t.$refs.content.getBoundingClientRect().top})),this.init()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-index-section",props:{index:{type:String,required:!0}},mounted:function(){this.$parent.sections.push(this)},beforeDestroy:function(){var t=this.$parent.sections.indexOf(this);t>-1&&this.$parent.sections.splice(t,1)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(9);e.default={data:function(){return{visible:!1}},components:{Spinner:i.a},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"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),a=n.n(i);e.default={name:"mt-loadmore",components:{spinner:a.a},props:{maxDistance:{type:Number,default:0},autoFill:{type:Boolean,default:!0},distanceIndex:{type:Number,default:2},topPullText:{type:String,default:"下拉刷新"},topDropText:{type:String,default:"释放更新"},topLoadingText:{type:String,default:"加载中..."},topDistance:{type:Number,default:70},topMethod:{type:Function},bottomPullText:{type:String,default:"上拉刷新"},bottomDropText:{type:String,default:"释放更新"},bottomLoadingText:{type:String,default:"加载中..."},bottomDistance:{type:Number,default:70},bottomMethod:{type:Function},bottomAllLoaded:{type:Boolean,default:!1}},data:function(){return{translate:0,scrollEventTarget:null,containerFilled:!1,topText:"",topDropped:!1,bottomText:"",bottomDropped:!1,bottomReached:!1,direction:"",startY:0,startScrollTop:0,currentY:0,topStatus:"",bottomStatus:""}},computed:{transform:function(){return 0===this.translate?null:"translate3d(0, "+this.translate+"px, 0)"}},watch:{topStatus:function(t){switch(this.$emit("top-status-change",t),t){case"pull":this.topText=this.topPullText;break;case"drop":this.topText=this.topDropText;break;case"loading":this.topText=this.topLoadingText}},bottomStatus:function(t){switch(this.$emit("bottom-status-change",t),t){case"pull":this.bottomText=this.bottomPullText;break;case"drop":this.bottomText=this.bottomDropText;break;case"loading":this.bottomText=this.bottomLoadingText}}},methods:{onTopLoaded:function(){var t=this;this.translate=0,setTimeout(function(){t.topStatus="pull"},200)},onBottomLoaded:function(){var t=this;this.bottomStatus="pull",this.bottomDropped=!1,this.$nextTick(function(){t.scrollEventTarget===window?document.body.scrollTop+=50:t.scrollEventTarget.scrollTop+=50,t.translate=0}),this.bottomAllLoaded||this.containerFilled||this.fillContainer()},getScrollEventTarget:function(t){for(var e=t;e&&"HTML"!==e.tagName&&"BODY"!==e.tagName&&1===e.nodeType;){var n=document.defaultView.getComputedStyle(e).overflowY;if("scroll"===n||"auto"===n)return e;e=e.parentNode}return window},getScrollTop:function(t){return t===window?Math.max(window.pageYOffset||0,document.documentElement.scrollTop):t.scrollTop},bindTouchEvents:function(){this.$el.addEventListener("touchstart",this.handleTouchStart),this.$el.addEventListener("touchmove",this.handleTouchMove),this.$el.addEventListener("touchend",this.handleTouchEnd)},init:function(){this.topStatus="pull",this.bottomStatus="pull",this.topText=this.topPullText,this.scrollEventTarget=this.getScrollEventTarget(this.$el),"function"==typeof this.bottomMethod&&(this.fillContainer(),this.bindTouchEvents()),"function"==typeof this.topMethod&&this.bindTouchEvents()},fillContainer:function(){var t=this;this.autoFill&&this.$nextTick(function(){t.scrollEventTarget===window?t.containerFilled=t.$el.getBoundingClientRect().bottom>=document.documentElement.getBoundingClientRect().bottom:t.containerFilled=t.$el.getBoundingClientRect().bottom>=t.scrollEventTarget.getBoundingClientRect().bottom,t.containerFilled||(t.bottomStatus="loading",t.bottomMethod())})},checkBottomReached:function(){return this.scrollEventTarget===window?document.body.scrollTop+document.documentElement.clientHeight>=document.body.scrollHeight:this.$el.getBoundingClientRect().bottom<=this.scrollEventTarget.getBoundingClientRect().bottom+1},handleTouchStart:function(t){this.startY=t.touches[0].clientY,this.startScrollTop=this.getScrollTop(this.scrollEventTarget),this.bottomReached=!1,"loading"!==this.topStatus&&(this.topStatus="pull",this.topDropped=!1),"loading"!==this.bottomStatus&&(this.bottomStatus="pull",this.bottomDropped=!1)},handleTouchMove:function(t){if(!(this.startYthis.$el.getBoundingClientRect().bottom)){this.currentY=t.touches[0].clientY;var e=(this.currentY-this.startY)/this.distanceIndex;this.direction=e>0?"down":"up","function"==typeof this.topMethod&&"down"===this.direction&&0===this.getScrollTop(this.scrollEventTarget)&&"loading"!==this.topStatus&&(t.preventDefault(),t.stopPropagation(),this.maxDistance>0?this.translate=e<=this.maxDistance?e-this.startScrollTop:this.translate:this.translate=e-this.startScrollTop,this.translate<0&&(this.translate=0),this.topStatus=this.translate>=this.topDistance?"drop":"pull"),"up"===this.direction&&(this.bottomReached=this.bottomReached||this.checkBottomReached()),"function"==typeof this.bottomMethod&&"up"===this.direction&&this.bottomReached&&"loading"!==this.bottomStatus&&!this.bottomAllLoaded&&(t.preventDefault(),t.stopPropagation(),this.maxDistance>0?this.translate=Math.abs(e)<=this.maxDistance?this.getScrollTop(this.scrollEventTarget)-this.startScrollTop+e:this.translate:this.translate=this.getScrollTop(this.scrollEventTarget)-this.startScrollTop+e,this.translate>0&&(this.translate=0),this.bottomStatus=-this.translate>=this.bottomDistance?"drop":"pull"),this.$emit("translate-change",this.translate)}},handleTouchEnd:function(){"down"===this.direction&&0===this.getScrollTop(this.scrollEventTarget)&&this.translate>0&&(this.topDropped=!0,"drop"===this.topStatus?(this.translate="50",this.topStatus="loading",this.topMethod()):(this.translate="0",this.topStatus="pull")),"up"===this.direction&&this.bottomReached&&this.translate<0&&(this.bottomDropped=!0,this.bottomReached=!1,"drop"===this.bottomStatus?(this.translate="-50",this.bottomStatus="loading",this.bottomMethod()):(this.translate="0",this.bottomStatus="pull")),this.$emit("translate-change",this.translate),this.direction=""}},mounted:function(){this.init()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a="确定",s="取消";e.default={mixins:[i.a],props:{modal:{default:!0},showClose:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!1},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},inputType:{type:String,default:"text"}},computed:{confirmButtonClasses:function(){var t="mint-msgbox-btn mint-msgbox-confirm "+this.confirmButtonClass;return this.confirmButtonHighlight&&(t+=" mint-msgbox-confirm-highlight"),t},cancelButtonClasses:function(){var t="mint-msgbox-btn mint-msgbox-cancel "+this.cancelButtonClass;return this.cancelButtonHighlight&&(t+=" mint-msgbox-cancel-highlight"),t}},methods:{doClose:function(){var t=this;this.value=!1,this._closing=!0,this.onClose&&this.onClose(),setTimeout(function(){t.modal&&"hidden"!==t.bodyOverflow&&(document.body.style.overflow=t.bodyOverflow,document.body.style.paddingRight=t.bodyPaddingRight),t.bodyOverflow=null,t.bodyPaddingRight=null},200),this.opened=!1,this.transition||this.doAfterClose()},handleAction:function(t){if("prompt"!==this.$type||"confirm"!==t||this.validate()){var e=this.callback;this.value=!1,e(t)}},validate:function(){if("prompt"===this.$type){var t=this.inputPattern;if(t&&!t.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!",this.$refs.input.classList.add("invalid"),!1;var e=this.inputValidator;if("function"==typeof e){var n=e(this.inputValue);if(n===!1)return this.editorErrorMessage=this.inputErrorMessage||"输入的数据不合法!", +this.$refs.input.classList.add("invalid"),!1;if("string"==typeof n)return this.editorErrorMessage=n,!1}}return this.editorErrorMessage="",this.$refs.input.classList.remove("invalid"),!0},handleInputType:function(t){"range"!==t&&this.$refs.input&&(this.$refs.input.type=t)}},watch:{inputValue:function(){"prompt"===this.$type&&this.validate()},value:function(t){var e=this;this.handleInputType(this.inputType),t&&"prompt"===this.$type&&setTimeout(function(){e.$refs.input&&e.$refs.input.focus()},500)},inputType:function(t){this.handleInputType(t)}},data:function(){return{title:"",message:"",type:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:a,cancelButtonText:s,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-navbar",props:{fixed:Boolean,value:{}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-palette-button",data:function(){return{transforming:!1,expanded:!1}},props:{content:{type:String,default:""},offset:{type:Number,default:Math.PI/4},direction:{type:String,default:"lt"},radius:{type:Number,default:90},mainButtonStyle:{type:String,default:""}},methods:{toggle:function(t){this.transforming||(this.expanded?this.collapse(t):this.expand(t))},onMainAnimationEnd:function(t){this.transforming=!1,this.$emit("expanded")},expand:function(t){this.expanded=!0,this.transforming=!0,this.$emit("expand",t)},collapse:function(t){this.expanded=!1,this.$emit("collapse",t)}},mounted:function(){var t=this;this.slotChildren=[];for(var e=0;e180&&(p=180),p<-180&&(p=-180),u(e,p),Math.abs(f)>l?n.i(s.a)(e,"picker-item-far"):n.i(s.b)(e,"picker-item-far")})}},planUpdateRotate:function(){var t=this,e=this.$refs.wrapper;cancelAnimationFrame(this.animationFrameId),this.animationFrameId=requestAnimationFrame(function(){t.updateRotate()}),n.i(s.c)(e,a.a.transitionEndProperty,function(){cancelAnimationFrame(t.animationFrameId),t.animationFrameId=null})},initEvents:function(){var t,e,s,r=this,o=this.$refs.wrapper,l={};n.i(i.a)(o,{start:function(t){cancelAnimationFrame(r.animationFrameId),r.animationFrameId=null,l={range:r.dragRange,start:new Date,startLeft:t.pageX,startTop:t.pageY,startTranslateTop:a.a.getElementTranslate(o).top},s=o.querySelectorAll(".picker-item")},drag:function(n){r.dragging=!0,l.left=n.pageX,l.top=n.pageY;var i=l.top-l.startTop,u=l.startTranslateTop+i;a.a.translateElement(o,null,u),t=u-e||u,e=u,r.rotateEffect&&r.updateRotate(e,s)},end:function(e){r.dragging=!1;var n,i,s=7,u=a.a.getElementTranslate(o).top,c=new Date-l.start,d=Math.abs(l.startTranslateTop-u),h=r.itemHeight,f=r.visibleItemCount;d<6&&(n=r.$el.getBoundingClientRect(),i=Math.floor((e.clientY-(n.top+(f-1)*h/2))/h)*h,i>r.maxTranslateY&&(i=r.maxTranslateY),t=0,u-=i);var p;c<300&&(p=u+t*s);var m=l.range;r.$nextTick(function(){var t;t=p?Math.round(p/h)*h:Math.round(u/h)*h,t=Math.max(Math.min(t,m[1]),m[0]),a.a.translateElement(o,null,t),r.currentValue=r.translate2Value(t),r.rotateEffect&&r.planUpdateRotate()}),l={}}})},doOnValueChange:function(){var t=this.currentValue,e=this.$refs.wrapper;a.a.translateElement(e,null,this.value2Translate(t))},doOnValuesChange:function(){var t=this,e=this.$el,n=e.querySelectorAll(".picker-item");[].forEach.call(n,function(e,n){a.a.translateElement(e,null,t.itemHeight*n)}),this.rotateEffect&&this.planUpdateRotate()}},mounted:function(){this.ready=!0,this.divider||(this.initEvents(),this.doOnValueChange()),this.rotateEffect&&this.doOnValuesChange()},watch:{values:function(t){this.mutatingValues=t},mutatingValues:function(t){var e=this;this.valueIndex===-1&&(this.currentValue=(t||[])[0]),this.rotateEffect&&this.$nextTick(function(){e.doOnValuesChange()})},currentValue:function(t){this.doOnValueChange(),this.rotateEffect&&this.planUpdateRotate(),this.$emit("input",t),this.dispatch("picker","slotValueChange",this)},defaultIndex:function(t){void 0!==this.mutatingValues[t]&&this.mutatingValues.length>=t+1&&(this.currentValue=this.mutatingValues[t])}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-picker",componentName:"picker",props:{slots:{type:Array},showToolbar:{type:Boolean,default:!1},visibleItemCount:{type:Number,default:5},valueKey:String,rotateEffect:{type:Boolean,default:!1},itemHeight:{type:Number,default:36}},created:function(){this.$on("slotValueChange",this.slotValueChange),this.slotValueChange()},methods:{slotValueChange:function(){this.$emit("change",this,this.values)},getSlot:function(t){var e,n=this.slots||[],i=0,a=this.$children.filter(function(t){return"picker-slot"===t.$options.name});return n.forEach(function(n,s){n.divider||(t===i&&(e=a[s]),i++)}),e},getSlotValue:function(t){var e=this.getSlot(t);return e?e.currentValue:null},setSlotValue:function(t,e){var n=this.getSlot(t);n&&(n.currentValue=e)},getSlotValues:function(t){var e=this.getSlot(t);return e?e.mutatingValues:null},setSlotValues:function(t,e){var n=this.getSlot(t);n&&(n.mutatingValues=e)},getValues:function(){return this.values},setValues:function(t){var e=this,n=this.slotCount;if(t=t||[],n!==t.length)throw new Error("values length is not equal slot count.");t.forEach(function(t,n){e.setSlotValue(n,t)})}},computed:{values:{get:function(){var t=this.slots||[],e=[],n=0;return t.forEach(function(t){t.divider||(t.valueIndex=n++,e[t.valueIndex]=(t.values||[])[t.defaultIndex||0])}),e}},slotCount:function(){var t=this.slots||[],e=0;return t.forEach(function(t){t.divider||e++}),e}},components:{PickerSlot:n(147)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a=n(1),s=n.n(a);s.a.prototype.$isServer||n(12),e.default={name:"mt-popup",mixins:[i.a],props:{modal:{default:!0},modalFade:{default:!1},lockScroll:{default:!1},closeOnClickModal:{default:!0},popupTransition:{type:String,default:"popup-slide"},position:{type:String,default:""}},data:function(){return{currentValue:!1,currentTransition:this.popupTransition}},watch:{currentValue:function(t){this.$emit("input",t)},value:function(t){this.currentValue=t}},beforeMount:function(){"popup-fade"!==this.popupTransition&&(this.currentTransition="popup-slide-"+this.position)},mounted:function(){this.value&&(this.rendered=!0,this.currentValue=!0,this.open())}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-progress",props:{value:Number,barHeight:{type:Number,default:3}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);e.default={name:"mt-radio",props:{title:String,align:String,options:{type:Array,required:!0},value:String},data:function(){return{currentValue:this.value}},watch:{value:function(t){this.currentValue=t},currentValue:function(t){this.$emit("input",t)}},components:{XCell:i.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(79);e.default={name:"mt-range",props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},disabled:{type:Boolean,default:!1},value:{type:Number},barHeight:{type:Number,default:1}},computed:{progress:function(){var t=this.value;return"undefined"==typeof t||null===t?0:Math.floor((t-this.min)/(this.max-this.min)*100)}},mounted:function(){var t=this,e=this.$refs.thumb,a=this.$refs.content,s=function(){var t=a.getBoundingClientRect(),n=e.getBoundingClientRect();return{left:n.left-t.left,top:n.top-t.top,thumbBoxLeft:n.left}},r={};n.i(i.a)(e,{start:function(e){if(!t.disabled){var n=s(),i=e.clientX-n.thumbBoxLeft;r={thumbStartLeft:n.left,thumbStartTop:n.top,thumbClickDetalX:i}}},drag:function(e){if(!t.disabled){var n=a.getBoundingClientRect(),i=e.pageX-n.left-r.thumbStartLeft-r.thumbClickDetalX,s=Math.ceil((t.max-t.min)/t.step),o=r.thumbStartLeft+i-(r.thumbStartLeft+i)%(n.width/s),l=o/n.width;l<0?l=0:l>1&&(l=1),t.$emit("input",Math.round(t.min+l*(t.max-t.min)))}},end:function(){t.disabled||(t.$emit("change",t.value),r={})}})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);e.default={name:"mt-search",data:function(){return{visible:!1,currentValue:this.value}},components:{XCell:i.a},watch:{currentValue:function(t){this.$emit("input",t)},value:function(t){this.currentValue=t}},props:{value:String,autofocus:Boolean,show:Boolean,cancelText:{default:"取消"},placeholder:{default:"搜索"},result:Array},mounted:function(){this.autofocus&&this.$refs.input.focus()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=["snake","double-bounce","triple-bounce","fading-circle"],a=function(t){return"[object Number]"==={}.toString.call(t)?(i.length<=t&&(console.warn("'"+t+"' spinner not found, use the default spinner."),t=0),i[t]):(i.indexOf(t)===-1&&(console.warn("'"+t+"' spinner not found, use the default spinner."),t=i[0]),t)};e.default={name:"mt-spinner",computed:{spinner:function(){return"spinner-"+a(this.type)}},components:{SpinnerSnake:n(156),SpinnerDoubleBounce:n(155),SpinnerTripleBounce:n(157),SpinnerFadingCircle:n(13)},props:{type:{default:0},size:{type:Number,default:28},color:{type:String,default:"#ccc"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={computed:{spinnerColor:function(){return this.color||this.$parent.color||"#ccc"},spinnerSize:function(){return(this.size||this.$parent.size||28)+"px"}},props:{size:Number,color:String}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),a=n.n(i);e.default={name:"double-bounce",mixins:[a.a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),a=n.n(i);e.default={name:"fading-circle",mixins:[a.a],created:function(){if(!this.$isServer){this.styleNode=document.createElement("style");var t=".circle-color-"+this._uid+" > div::before { background-color: "+this.spinnerColor+"; }";this.styleNode.type="text/css",this.styleNode.rel="stylesheet",this.styleNode.title="fading circle style",document.getElementsByTagName("head")[0].appendChild(this.styleNode),this.styleNode.appendChild(document.createTextNode(t))}},destroyed:function(){this.styleNode&&this.styleNode.parentNode.removeChild(this.styleNode)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),a=n.n(i);e.default={name:"snake",mixins:[a.a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),a=n.n(i);e.default={name:"triple-bounce",mixins:[a.a],computed:{spinnerSize:function(){return(this.size||this.$parent.size||28)/3+"px"},bounceStyle:function(){return{width:this.spinnerSize,height:this.spinnerSize,backgroundColor:this.spinnerColor}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-swipe-item",mounted:function(){this.$parent&&this.$parent.swipeItemCreated(this)},destroyed:function(){this.$parent&&this.$parent.swipeItemDestroyed(this)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3);e.default={name:"mt-swipe",created:function(){this.dragState={}},data:function(){return{ready:!1,dragging:!1,userScrolling:!1,animating:!1,index:0,pages:[],timer:null,reInitTimer:null,noDrag:!1,isDone:!1}},props:{speed:{type:Number,default:300},defaultIndex:{type:Number,default:0},auto:{type:Number,default:3e3},continuous:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},noDragWhenSingle:{type:Boolean,default:!0},prevent:{type:Boolean,default:!1},stopPropagation:{type:Boolean,default:!1}},watch:{index:function(t){this.$emit("change",t)}},methods:{swipeItemCreated:function(){var t=this;this.ready&&(clearTimeout(this.reInitTimer),this.reInitTimer=setTimeout(function(){t.reInitPages()},100))},swipeItemDestroyed:function(){var t=this;this.ready&&(clearTimeout(this.reInitTimer),this.reInitTimer=setTimeout(function(){t.reInitPages()},100))},rafTranslate:function(t,e,n,i,a){function s(){return Math.abs(o-n)<.5?(this.animating=!1,o=n,t.style.webkitTransform="",a&&(a.style.webkitTransform=""),cancelAnimationFrame(l),void(i&&i())):(o=r*o+(1-r)*n,t.style.webkitTransform="translate3d("+o+"px, 0, 0)",a&&(a.style.webkitTransform="translate3d("+(o-n)+"px, 0, 0)"),void(l=requestAnimationFrame(s.bind(this))))}var r=.88;this.animating=!0;var o=e,l=0;s.call(this)},translate:function(t,e,a,s){var r=arguments,o=this;if(a){this.animating=!0,t.style.webkitTransition="-webkit-transform "+a+"ms ease-in-out",setTimeout(function(){t.style.webkitTransform="translate3d("+e+"px, 0, 0)"},50);var l=!1,u=function(){l||(l=!0,o.animating=!1,t.style.webkitTransition="",t.style.webkitTransform="",s&&s.apply(o,r))};n.i(i.c)(t,"webkitTransitionEnd",u),setTimeout(u,a+100)}else t.style.webkitTransition="",t.style.webkitTransform="translate3d("+e+"px, 0, 0)"},reInitPages:function(){var t=this.$children;this.noDrag=1===t.length&&this.noDragWhenSingle;var e=[],a=Math.floor(this.defaultIndex),s=a>=0&&a1&&(s||(s=f[f.length-1]),r||(r=f[0])),s&&(s.style.display="block",this.translate(s,-l)),r&&(r.style.display="block",this.translate(r,l)));var m,v=this.$children[h].$el;"prev"===t?(h>0&&(m=h-1),this.continuous&&0===h&&(m=p-1)):"next"===t&&(h0&&a.translate(s,l*-1,d),r&&u<0&&a.translate(r,l,d)):(s&&a.translate(s,l*-1,d),r&&a.translate(r,l,d)))},10)}},next:function(){this.doAnimate("next")},prev:function(){this.doAnimate("prev")},before:function(){this.$emit("before",this.index)},end:function(){this.$emit("end",this.index)},doOnTouchStart:function(t){if(!this.noDrag){var e=this.$el,n=this.dragState,i=t.touches[0];n.startTime=new Date,n.startLeft=i.pageX,n.startTop=i.pageY,n.startTopAbsolute=i.clientY,n.pageWidth=e.offsetWidth,n.pageHeight=e.offsetHeight;var a=this.$children[this.index-1],s=this.$children[this.index],r=this.$children[this.index+1];this.continuous&&this.pages.length>1&&(a||(a=this.$children[this.$children.length-1]),r||(r=this.$children[0])),n.prevPage=a?a.$el:null,n.dragPage=s?s.$el:null,n.nextPage=r?r.$el:null,n.prevPage&&(n.prevPage.style.display="block"),n.nextPage&&(n.nextPage.style.display="block")}},doOnTouchMove:function(t){if(!this.noDrag){var e=this.dragState,n=t.touches[0];e.speedX=n.pageX-e.currentLeft,e.currentLeft=n.pageX,e.currentTop=n.pageY,e.currentTopAbsolute=n.clientY;var i=e.currentLeft-e.startLeft,a=e.currentTopAbsolute-e.startTopAbsolute,s=Math.abs(i),r=Math.abs(a);if(s<5||s>=5&&r>=1.73*s)return void(this.userScrolling=!0);this.userScrolling=!1,t.preventDefault(),i=Math.min(Math.max(-e.pageWidth+1,i),e.pageWidth-1);var o=i<0?"next":"prev";e.prevPage&&"prev"===o&&this.translate(e.prevPage,i-e.pageWidth),this.translate(e.dragPage,i),e.nextPage&&"next"===o&&this.translate(e.nextPage,i+e.pageWidth)}},doOnTouchEnd:function(){if(!this.noDrag){var t=this.dragState,e=new Date-t.startTime,n=null,i=t.currentLeft-t.startLeft,a=t.currentTop-t.startTop,s=t.pageWidth,r=this.index,o=this.pages.length;if(e<300){var l=Math.abs(i)<5&&Math.abs(a)<5;(isNaN(i)||isNaN(a))&&(l=!0),l&&this.$children[this.index].$emit("tap")}e<300&&void 0===t.currentLeft||((e<300||Math.abs(i)>s/2)&&(n=i<0?"next":"prev"),this.continuous||(0===r&&"prev"===n||r===o-1&&"next"===n)&&(n=null),this.$children.length<2&&(n=null),this.doAnimate(n,{offsetLeft:i,pageWidth:t.pageWidth,prevPage:t.prevPage,currentPage:t.dragPage,nextPage:t.nextPage,speedX:t.speedX}),this.dragState={})}},initTimer:function(){var t=this;this.auto>0&&!this.timer&&(this.timer=setInterval(function(){return!t.continuous&&t.index>=t.pages.length-1?t.clearTimer():void(t.dragging||t.animating||t.next())},this.auto))},clearTimer:function(){clearInterval(this.timer),this.timer=null}},destroyed:function(){this.timer&&this.clearTimer(),this.reInitTimer&&(clearTimeout(this.reInitTimer),this.reInitTimer=null)},mounted:function(){var t=this;this.ready=!0,this.initTimer(),this.reInitPages();var e=this.$el;e.addEventListener("touchstart",function(e){t.prevent&&e.preventDefault(),t.stopPropagation&&e.stopPropagation(),t.animating||(t.dragging=!0,t.userScrolling=!1,t.doOnTouchStart(e))}),e.addEventListener("touchmove",function(e){t.dragging&&(t.timer&&t.clearTimer(),t.doOnTouchMove(e))}),e.addEventListener("touchend",function(e){return t.userScrolling?(t.dragging=!1,void(t.dragState={})):void(t.dragging&&(t.initTimer(),t.doOnTouchEnd(e),t.dragging=!1))})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-switch",props:{value:Boolean,disabled:{type:Boolean,default:!1}},computed:{currentValue:{get:function(){return this.value},set:function(t){this.$emit("input",t)}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-tab-container-item",props:["id"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),a=n(15),s=n.n(a);e.default={name:"mt-tab-container",props:{value:{},swipeable:Boolean},data:function(){return{start:{x:0,y:0},swiping:!1,activeItems:[],pageWidth:0,currentActive:this.value}},watch:{value:function(t){this.currentActive=t},currentActive:function(t,e){if(this.$emit("input",t),this.swipeable){var n=s()(this.$children,function(t){return t.id===e});this.swipeLeaveTransition(n)}}},mounted:function(){this.swipeable&&(this.wrap=this.$refs.wrap,this.pageWidth=this.wrap.clientWidth,this.limitWidth=this.pageWidth/4)},methods:{swipeLeaveTransition:function(t){var e=this;void 0===t&&(t=0),"number"!=typeof this.index&&(this.index=s()(this.$children,function(t){return t.id===e.currentActive}),this.swipeMove(-t*this.pageWidth)),setTimeout(function(){e.wrap.classList.add("swipe-transition"),e.swipeMove(-e.index*e.pageWidth),n.i(i.c)(e.wrap,"webkitTransitionEnd",function(t){e.wrap.classList.remove("swipe-transition"),e.wrap.style.webkitTransform="",e.swiping=!1,e.index=null})},0)},swipeMove:function(t){this.wrap.style.webkitTransform="translate3d("+t+"px, 0, 0)",this.swiping=!0},startDrag:function(t){this.swipeable&&(t=t.changedTouches?t.changedTouches[0]:t,this.dragging=!0,this.start.x=t.pageX,this.start.y=t.pageY)},onDrag:function(t){var e=this;if(this.dragging){var n,i=t.changedTouches?t.changedTouches[0]:t,a=i.pageY-this.start.y,r=i.pageX-this.start.x,o=Math.abs(a),l=Math.abs(r);if(n=!(l<5||l>=5&&o>=1.73*l)){t.preventDefault();var u=this.$children.length-1,c=s()(this.$children,function(t){return t.id===e.currentActive}),d=c*this.pageWidth,h=r-d,f=Math.abs(h);if(f>u*this.pageWidth||h>0&&h0?-1:1,e=Math.abs(this.offsetLeft)>this.limitWidth;if(e){this.index+=t;var n=this.$children[this.index];if(n)return void(this.currentActive=n.id)}this.swipeLeaveTransition()}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-tab-item",props:["id"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"mt-tabbar",props:{fixed:Boolean,value:{}}}},function(t,e,n){"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:""}},data:function(){return{visible:!1}},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,n){"use strict";var i=n(131),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(132),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(133),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(134),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(136),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(137),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(138),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(139),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(140),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(141),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i,a=n(1),s=n.n(a),r=s.a.extend(n(142));e.a={open:function(t){void 0===t&&(t={}),i||(i=new r({el:document.createElement("div")})),i.visible||(i.text="string"==typeof t?t:t.text||"",i.spinnerType=t.spinnerType||"snake",document.body.appendChild(i.$el),s.a.nextTick(function(){i.visible=!0}))},close:function(){i&&(i.visible=!1)}}},function(t,e,n){"use strict";var i=n(4),a=(n.n(i),n(66));n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(1),a=n.n(i),s="@@InfiniteScroll",r=function(t,e){var n,i,a,s,r,o=function(){t.apply(s,r),i=n};return function(){if(s=this,r=arguments,n=Date.now(),a&&(clearTimeout(a),a=null),i){var t=e-(n-i);t<0?o():a=setTimeout(function(){o()},t)}else o()}},o=function(t){return t===window?Math.max(window.pageYOffset||0,document.documentElement.scrollTop):t.scrollTop},l=a.a.prototype.$isServer?{}:document.defaultView.getComputedStyle,u=function(t){for(var e=t;e&&"HTML"!==e.tagName&&"BODY"!==e.tagName&&1===e.nodeType;){var n=l(e).overflowY;if("scroll"===n||"auto"===n)return e;e=e.parentNode}return window},c=function(t){return t===window?document.documentElement.clientHeight:t.clientHeight},d=function(t){return t===window?o(window):t.getBoundingClientRect().top+o(window)},h=function(t){for(var e=t.parentNode;e;){if("HTML"===e.tagName)return!0;if(11===e.nodeType)return!1;e=e.parentNode}return!1},f=function(){if(!this.binded){this.binded=!0;var t=this,e=t.el;t.scrollEventTarget=u(e),t.scrollListener=r(p.bind(t),200),t.scrollEventTarget.addEventListener("scroll",t.scrollListener);var n=e.getAttribute("infinite-scroll-disabled"),i=!1;n&&(this.vm.$watch(n,function(e){t.disabled=e,!e&&t.immediateCheck&&p.call(t)}),i=Boolean(t.vm[n])),t.disabled=i;var a=e.getAttribute("infinite-scroll-distance"),s=0;a&&(s=Number(t.vm[a]||a),isNaN(s)&&(s=0)),t.distance=s;var o=e.getAttribute("infinite-scroll-immediate-check"),l=!0;o&&(l=Boolean(t.vm[o])),t.immediateCheck=l,l&&p.call(t);var c=e.getAttribute("infinite-scroll-listen-for-event");c&&t.vm.$on(c,function(){p.call(t)})}},p=function(t){var e=this.scrollEventTarget,n=this.el,i=this.distance;if(t===!0||!this.disabled){var a=o(e),s=a+c(e),r=!1;if(e===n)r=e.scrollHeight-s<=i;else{var l=d(n)-d(e)+n.offsetHeight+a;r=s+i>=l}r&&this.expression&&this.expression()}};e.a={bind:function(t,e,n){t[s]={el:t,vm:n.context,expression:e.value};var i=arguments,a=function(){t[s].vm.$nextTick(function(){h(t)&&f.call(t[s],i),t[s].bindTryCount=0;var e=function(){t[s].bindTryCount>10||(t[s].bindTryCount++,h(t)?f.call(t[s],i):setTimeout(e,50))};e()})};return t[s].vm._isMounted?void a():void t[s].vm.$on("hook:mounted",a)},unbind:function(t){t[s]&&t[s].scrollEventTarget&&t[s].scrollEventTarget.removeEventListener("scroll",t[s].scrollListener)}}},function(t,e,n){"use strict";var i=n(65),a=n(4),s=(n.n(a),n(1)),r=n.n(s),o=function(t){t.directive("InfiniteScroll",i.a)};!r.a.prototype.$isServer&&window.Vue&&(window.infiniteScroll=i.a,r.a.use(o)),i.a.install=o,e.a=i.a},function(t,e,n){"use strict";var i=n(4),a=(n.n(i),n(68));n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(130),a=n.n(i),s=n(4);n.n(s);e.a=a.a},function(t,e,n){"use strict";var i=n(143),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(71);n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";var i,a,s=n(1),r=n.n(s),o=n(144),l=n.n(o),u="确定",c="取消",d={title:"提示",message:"",type:"",showInput:!1,showClose:!0,modalFade:!1,lockScroll:!1,closeOnClickModal:!0,inputValue:null,inputPlaceholder:"",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:u,cancelButtonText:c,confirmButtonClass:"",cancelButtonClass:""},h=function(t){for(var e=arguments,n=1,i=arguments.length;n0){i=p.shift();var t=i.options;for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);void 0===t.callback&&(a.callback=m),["modal","showClose","closeOnClickModal","closeOnPressEscape"].forEach(function(t){void 0===a[t]&&(a[t]=!0)}),document.body.appendChild(a.$el),r.a.nextTick(function(){a.value=!0})}},b=function(t,e){return"string"==typeof t?(t={title:t},arguments[1]&&(t.message=arguments[1]),arguments[2]&&(t.type=arguments[2])):t.callback&&!e&&(e=t.callback),"undefined"!=typeof Promise?new Promise(function(n,i){p.push({options:h({},d,b.defaults||{},t),callback:e,resolve:n,reject:i}),g()}):(p.push({options:h({},d,b.defaults||{},t),callback:e}),void g())};b.setDefaults=function(t){b.defaults=t},b.alert=function(t,e,n){return"object"==typeof e&&(n=e,e=""),b(h({title:e,message:t,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},b.confirm=function(t,e,n){return"object"==typeof e&&(n=e,e=""),b(h({title:e,message:t,$type:"confirm",showCancelButton:!0},n))},b.prompt=function(t,e,n){return"object"==typeof e&&(n=e,e=""),b(h({title:e,message:t,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},b.close=function(){a&&(a.value=!1,p=[],i=null)},e.a=b},function(t,e,n){"use strict";var i=n(145),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(146),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(1),a=n.n(i),s=!1,r=!a.a.prototype.$isServer&&"ontouchstart"in window;e.a=function(t,e){var n=function(t){e.drag&&e.drag(r?t.changedTouches[0]||t.touches[0]:t)},i=function(t){r||(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",i)),document.onselectstart=null,document.ondragstart=null,s=!1,e.end&&e.end(r?t.changedTouches[0]||t.touches[0]:t)};t.addEventListener(r?"touchstart":"mousedown",function(t){s||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},r||(document.addEventListener("mousemove",n),document.addEventListener("mouseup",i)),s=!0,e.start&&(t.preventDefault(),e.start(r?t.changedTouches[0]||t.touches[0]:t)))}),r&&(t.addEventListener("touchmove",n),t.addEventListener("touchend",i),t.addEventListener("touchcancel",i))}},function(t,e,n){"use strict";var i=n(1),a=n.n(i),s={};if(!a.a.prototype.$isServer){var r,o=document.documentElement.style,l=!1;window.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?r="presto":"MozAppearance"in o?r="gecko":"WebkitAppearance"in o?r="webkit":"string"==typeof navigator.cpuClass&&(r="trident");var u={trident:"-ms-",gecko:"-moz-",webkit:"-webkit-", +presto:"-o-"}[r],c={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[r],d=document.createElement("div"),h=c+"Perspective",f=c+"Transform",p=u+"transform",m=c+"Transition",v=u+"transition",g=c.toLowerCase()+"TransitionEnd";void 0!==d.style[h]&&(l=!0);var b=function(t){var e={left:0,top:0};if(null===t||null===t.style)return e;var n=t.style[f],i=/translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/gi.exec(n);return i&&(e.left=+i[1],e.top=+i[3]),e},y=function(t,e,n){if((null!==e||null!==n)&&null!==t&&void 0!==t&&null!==t.style&&(t.style[f]||0!==e||0!==n)){if(null===e||null===n){var i=b(t);null===e&&(e=i.left),null===n&&(n=i.top)}x(t),l?t.style[f]+=" translate("+(e?e+"px":"0px")+","+(n?n+"px":"0px")+") translateZ(0px)":t.style[f]+=" translate("+(e?e+"px":"0px")+","+(n?n+"px":"0px")+")"}},x=function(t){if(null!==t&&null!==t.style){var e=t.style[f];e&&(e=e.replace(/translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/g,""),t.style[f]=e)}};s={transformProperty:f,transformStyleName:p,transitionProperty:m,transitionStyleName:v,transitionEndProperty:g,getElementTranslate:b,translateElement:y,cancelTranslateElement:x}}e.a=s},function(t,e,n){"use strict";var i=n(150),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(151),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(152),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(1),a=n.n(i),s=!1,r=!a.a.prototype.$isServer&&"ontouchstart"in window;e.a=function(t,e){var n=function(t){e.drag&&e.drag(r?t.changedTouches[0]||t.touches[0]:t)},i=function(t){r||(document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",i)),document.onselectstart=null,document.ondragstart=null,s=!1,e.end&&e.end(r?t.changedTouches[0]||t.touches[0]:t)};t.addEventListener(r?"touchstart":"mousedown",function(t){s||(t.preventDefault(),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},r||(document.addEventListener("mousemove",n),document.addEventListener("mouseup",i)),s=!0,e.start&&e.start(r?t.changedTouches[0]||t.touches[0]:t))}),r&&(t.addEventListener("touchmove",n),t.addEventListener("touchend",i),t.addEventListener("touchcancel",i))}},function(t,e,n){"use strict";var i=n(153),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(4),a=(n.n(i),n(158)),s=n.n(a);n.d(e,"a",function(){return s.a})},function(t,e,n){"use strict";var i=n(159),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(160),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(161),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(162),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(163),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(164),a=n.n(i);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";var i=n(89);n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";var i=n(1),a=n.n(i),s=a.a.extend(n(165)),r=[],o=function(){if(r.length>0){var t=r[0];return r.splice(0,1),t}return new s({el:document.createElement("div")})},l=function(t){t&&r.push(t)},u=function(t){t.target.parentNode&&t.target.parentNode.removeChild(t.target)};s.prototype.close=function(){this.visible=!1,this.$el.addEventListener("transitionend",u),this.closed=!0,l(this)};var c=function(t){void 0===t&&(t={});var e=t.duration||3e3,n=o();return n.closed=!1,clearTimeout(n.timer),n.message="string"==typeof t?t:t.message,n.position=t.position||"middle",n.className=t.className||"",n.iconClass=t.iconClass||"",document.body.appendChild(n.$el),a.a.nextTick(function(){n.visible=!0,n.$el.removeEventListener("transitionend",u),~e&&(n.timer=setTimeout(function(){n.closed||n.close()},e))}),n};e.a=c},function(t,e,n){"use strict";function i(t,e,n){this.$children.forEach(function(a){var s=a.$options.componentName;s===t?a.$emit.apply(a,[e].concat(n)):i.apply(a,[t,e].concat(n))})}e.a={methods:{dispatch:function(t,e,n){for(var i=this.$parent,a=i.$options.componentName;i&&(!a||a!==t);)i=i.$parent,i&&(a=i.$options.componentName);i&&i.$emit.apply(i,[e].concat(n))},broadcast:function(t,e,n){i.call(this,t,e,n)}}}},function(t,e,n){"use strict";var i=n(1),a=n.n(i),s=n(3),r=!1,o=function(){if(!a.a.prototype.$isServer){var t=u.modalDom;return t?r=!0:(r=!1,t=document.createElement("div"),u.modalDom=t,t.addEventListener("touchmove",function(t){t.preventDefault(),t.stopPropagation()}),t.addEventListener("click",function(){u.doOnModalClick&&u.doOnModalClick()})),t}},l={},u={zIndex:2e3,modalFade:!0,getInstance:function(t){return l[t]},register:function(t,e){t&&e&&(l[t]=e)},deregister:function(t){t&&(l[t]=null,delete l[t])},nextZIndex:function(){return u.zIndex++},modalStack:[],doOnModalClick:function(){var t=u.modalStack[u.modalStack.length-1];if(t){var e=u.getInstance(t.id);e&&e.closeOnClickModal&&e.close()}},openModal:function(t,e,i,l,u){if(!a.a.prototype.$isServer&&t&&void 0!==e){this.modalFade=u;for(var c=this.modalStack,d=0,h=c.length;d0){var a=e[e.length-1];if(a.id===t){if(a.modalClass){var r=a.modalClass.trim().split(/\s+/);r.forEach(function(t){return n.i(s.b)(i,t)})}e.pop(),e.length>0&&(i.style.zIndex=e[e.length-1].zIndex)}else for(var l=e.length-1;l>=0;l--)if(e[l].id===t){e.splice(l,1);break}}0===e.length&&(this.modalFade&&n.i(s.a)(i,"v-modal-leave"),setTimeout(function(){0===e.length&&(i.parentNode&&i.parentNode.removeChild(i),i.style.display="none",u.modalDom=void 0),n.i(s.b)(i,"v-modal-leave")},200))}};!a.a.prototype.$isServer&&window.addEventListener("keydown",function(t){if(27===t.keyCode&&u.modalStack.length>0){var e=u.modalStack[u.modalStack.length-1];if(!e)return;var n=u.getInstance(e.id);n.closeOnPressEscape&&n.close()}}),e.a=u},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){!function(t){for(var e=0,n=["webkit","moz"],i=t.requestAnimationFrame,a=t.cancelAnimationFrame,s=n.length;--s>=0&&!i;)i=t[n[s]+"RequestAnimationFrame"],a=t[n[s]+"CancelAnimationFrame"];i&&a||(i=function(t){var n=+new Date,i=Math.max(e+16,n);return setTimeout(function(){t(e=i)},i-n)},a=clearTimeout),t.requestAnimationFrame=i,t.cancelAnimationFrame=a}(window)},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiBmaWxsPSJ3aGl0ZSI+CiAgPHBhdGggb3BhY2l0eT0iLjI1IiBkPSJNMTYgMCBBMTYgMTYgMCAwIDAgMTYgMzIgQTE2IDE2IDAgMCAwIDE2IDAgTTE2IDQgQTEyIDEyIDAgMCAxIDE2IDI4IEExMiAxMiAwIDAgMSAxNiA0Ii8+CiAgPHBhdGggZD0iTTE2IDAgQTE2IDE2IDAgMCAxIDMyIDE2IEwyOCAxNiBBMTIgMTIgMCAwIDAgMTYgNHoiPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgMTYgMTYiIHRvPSIzNjAgMTYgMTYiIGR1cj0iMC44cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgPC9wYXRoPgo8L3N2Zz4K"},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function e(t,e){if(!t||!e)return t||{};if(t instanceof Object)for(var n in e)t[n]=e[n];return t}function n(t,e){for(var n=!1,i=0,a=t.length;ie[0])return 1;if(t[0]===e[0]){if(e[1].indexOf(".webp",e[1].length-5)!==-1)return 1;if(t[1].indexOf(".webp",t[1].length-5)!==-1)return-1}return 0});for(var u="",c=void 0,d=i.length,h=0;h=s){u=c[1];break}return u}}function a(t,e){for(var n=void 0,i=0,a=t.length;i=e?o():n=setTimeout(o,e)}}}function o(){if(h){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}function l(t){return null!==t&&"object"===("undefined"==typeof t?"undefined":u(t))}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},c=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},d=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:1;return h&&window.devicePixelRatio||t},p=o(),m={on:function(t,e,n){p?t.addEventListener(e,n,{passive:!0}):t.addEventListener(e,n,!1)},off:function(t,e,n){t.removeEventListener(e,n)}},v=function(t,e,n){var i=new Image;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},g=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},b=function(t){return g(t,"overflow")+g(t,"overflow-y")+g(t,"overflow-x")},y=function(t){if(h){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(b(e)))return e;e=e.parentNode}return window}},x={},w=function(){function t(e){var n=e.el,i=e.src,a=e.error,s=e.loading,r=e.bindType,o=e.$parent,l=e.options,u=e.elRenderer;c(this,t),this.el=n,this.src=i,this.error=a,this.loading=s,this.bindType=r,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=l,this.initState(),this.performanceData={init:Date.now(),loadStart:null,loadEnd:null},this.rect=n.getBoundingClientRect(),this.$parent=o,this.elRenderer=u,this.render("loading",!1)}return d(t,[{key:"initState",value:function(){this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error;this.src=e,this.loading=n,this.error=i,this.attempt=0,this.initState()}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top0&&this.rect.left0}},{key:"load",value:function(){var t=this;return this.attempt>this.options.attempt-1&&this.state.error?void(this.options.silent||console.log("error end")):this.state.loaded||x[this.src]?this.render("loaded",!0):(this.render("loading",!1),this.attempt++,this.record("loadStart"),void v({src:this.src},function(e){t.src=e.src,t.naturalHeight=e.naturalHeight,t.naturalWidth=e.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),x[t.src]=1},function(e){t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),C="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",T=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],_=function(o){return function(){function u(t){var e=this,n=t.preLoad,i=t.error,a=t.loading,o=t.attempt,l=t.silent,d=t.scale,h=t.listenEvents,p=(t.hasbind,t.filter),m=t.adapter;c(this,u),this.ListenerQueue=[],this.options={silent:l||!0,preLoad:n||1.3,error:i||C,loading:a||C,attempt:o||3,scale:f(d),ListenEvents:h||T,hasbind:!1,supportWebp:s(),filter:p||{},adapter:m||{}},this.initEvent(),this.lazyLoadHandler=r(function(){var t=!1;e.ListenerQueue.forEach(function(e){e.state.loaded||(t=e.checkInView(),t&&e.load())})},200)}return d(u,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e(this.options,t)}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),this.options.hasbind=!0,this.initListen(window,!0)}},{key:"add",value:function(t,e,a){var s=this;if(n(this.ListenerQueue,function(e){return e.el===t}))return this.update(t,e),o.nextTick(this.lazyLoadHandler);var r=this.valueFormatter(e.value),l=r.src,u=r.loading,c=r.error;o.nextTick(function(){var n=i(t,s.options.scale);n&&(l=n);var r=Object.keys(e.modifiers)[0],d=void 0;r&&(d=a.context.$refs[r],d=d?d.$el||d:document.getElementById(r)),d||(d=y(t));var h=new w({bindType:e.arg,$parent:d,el:t,loading:u,error:c,src:l,elRenderer:s.elRenderer.bind(s),options:s.options});s.ListenerQueue.push(s.listenerFilter(h)),s.ListenerQueue.length&&!s.options.hasbind&&(s.options.hasbind=!0,s.initListen(window,!0),d&&s.initListen(d,!0),s.lazyLoadHandler(),o.nextTick(function(){return s.lazyLoadHandler()}))})}},{key:"update",value:function(t,e){var n=this,i=this.valueFormatter(e.value),s=i.src,r=i.loading,l=i.error,u=a(this.ListenerQueue,function(e){return e.el===t});u&&u.src!==s&&u.update({src:s,loading:r,error:l}),this.lazyLoadHandler(),o.nextTick(function(){return n.lazyLoadHandler()})}},{key:"remove",value:function(e){if(e){var n=a(this.ListenerQueue,function(t){return t.el===e});n&&t(this.ListenerQueue,n)&&n.destroy(),this.options.hasbind&&!this.ListenerQueue.length&&this.initListen(window,!1)}}},{key:"removeComponent",value:function(e){e&&t(this.ListenerQueue,e),this.options.hasbind&&!this.ListenerQueue.length&&this.initListen(window,!1)}},{key:"initListen",value:function(t,e){var n=this;this.options.hasbind=e,this.options.ListenEvents.forEach(function(i){return m[e?"on":"off"](t,i,n.lazyLoadHandler)})}},{key:"initEvent",value:function(){var e=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(t,n){e.Event.listeners[t].push(n)},this.$once=function(t,n){function i(){a.$off(t,i),n.apply(a,arguments)}var a=e;e.$on(t,i)},this.$off=function(n,i){return i?void t(e.Event.listeners[n],i):void(e.Event.listeners[n]=[])},this.$emit=function(t,n,i){e.Event.listeners[t].forEach(function(t){return t(n,i)})}}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map(function(e){t.push(e.performance())}),t}},{key:"elRenderer",value:function(t,e,n){if(t.el){var i=t.el,a=t.bindType,s=void 0;switch(e){case"loading":s=t.loading;break;case"error":s=t.error;break;default:s=t.src}a?i.style[a]="url("+s+")":i.getAttribute("src")!==s&&i.setAttribute("src",s),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options)}}},{key:"listenerFilter",value:function(t){return this.options.filter.webp&&this.options.supportWebp&&(t.src=this.options.filter.webp(t,this.options)),this.options.filter.customer&&(t.src=this.options.filter.customer(t,this.options)),t}},{key:"valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return l(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,n=t.loading||this.options.loading,i=t.error||this.options.error),{src:e,loading:n,error:i}}}]),u}()},S=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return this.show===!1?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{state:{loaded:!1},rect:{},show:!1}},mounted:function(){t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),h&&this.rect.top0&&this.rect.left0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},E={install:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=_(t),a=new i(n),s="2"===t.version.split(".")[0];t.prototype.$Lazyload=a,n.lazyComponent&&t.component("lazy-component",S(a)),s?t.directive("lazy",{bind:a.add.bind(a),update:a.update.bind(a),componentUpdated:a.lazyLoadHandler.bind(a),unbind:a.remove.bind(a)}):t.directive("lazy",{bind:a.lazyLoadHandler.bind(a),update:function(t,n){e(this.vm.$refs,this.vm.$els),a.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:n},{context:this.vm})},unbind:function(){a.remove(this.el)}})}};return E})},function(t,e,n){function i(t){n(101)}var a=n(0)(n(16),n(174),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(103)}var a=n(0)(n(17),n(176),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(107)}var a=n(0)(n(18),n(180),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(99)}var a=n(0)(n(19),n(172),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(114)}var a=n(0)(n(20),n(188),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(125)}var a=n(0)(n(21),n(199),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(110)}var a=n(0)(n(22),n(184),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(117)}var a=n(0)(n(23),n(190),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(109)}var a=n(0)(n(24),n(182),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(94)}var a=n(0)(n(25),n(167),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(95)}var a=n(0)(n(26),n(168),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(120)}var a=n(0)(n(27),n(194),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(122)}var a=n(0)(n(28),n(196),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(115),n(116)}var a=n(0)(n(29),n(189),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(124)}var a=n(0)(n(30),n(198),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(113)}var a=n(0)(n(31),n(187),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(93)}var a=n(0)(n(32),n(166),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(127)}var a=n(0)(n(33),n(201),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(121)}var a=n(0)(n(34),n(195),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(97)}var a=n(0)(n(35),n(170),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(119)}var a=n(0)(n(36),n(193),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(123)}var a=n(0)(n(37),n(197),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(126)}var a=n(0)(n(38),n(200),i,null,null);t.exports=a.exports},function(t,e,n){var i=n(0)(n(39),n(192),null,null,null);t.exports=i.exports},function(t,e,n){function i(t){n(112)}var a=n(0)(n(41),n(186),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(104)}var a=n(0)(n(43),n(177),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(100)}var a=n(0)(n(44),n(173),i,null,null);t.exports=a.exports},function(t,e,n){var i=n(0)(n(45),n(183),null,null,null);t.exports=i.exports},function(t,e,n){function i(t){n(96)}var a=n(0)(n(46),n(169),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(108)}var a=n(0)(n(47),n(181),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(118)}var a=n(0)(n(48),n(191),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(102)}var a=n(0)(n(49),n(175),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(106)}var a=n(0)(n(50),n(179),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(111)}var a=n(0)(n(51),n(185),i,null,null);t.exports=a.exports},function(t,e,n){function i(t){n(98)}var a=n(0)(n(52),n(171),i,null,null);t.exports=a.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"picker-slot",class:t.classNames,style:t.flexStyle},[t.divider?t._e():n("div",{ref:"wrapper",staticClass:"picker-slot-wrapper",class:{dragging:t.dragging},style:{height:t.contentHeight+"px"}},t._l(t.mutatingValues,function(e){return n("div",{staticClass:"picker-item",class:{"picker-selected":e===t.currentValue},style:{height:t.itemHeight+"px",lineHeight:t.itemHeight+"px"}},[t._v("\n "+t._s("object"==typeof e&&e[t.valueKey]?e[t.valueKey]:e)+"\n ")])})),t.divider?n("div",[t._v(t._s(t.content))]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-indexlist"},[n("ul",{ref:"content",staticClass:"mint-indexlist-content",style:{height:t.currentHeight+"px","margin-right":t.navWidth+"px"}},[t._t("default")],2),n("div",{ref:"nav",staticClass:"mint-indexlist-nav",on:{touchstart:t.handleTouchStart}},[n("ul",{staticClass:"mint-indexlist-navlist"},t._l(t.sections,function(e){return n("li",{staticClass:"mint-indexlist-navitem"},[t._v(t._s(e.index))])}))]),t.showIndicator?n("div",{directives:[{name:"show",rawName:"v-show",value:t.moving,expression:"moving"}],staticClass:"mint-indexlist-indicator"},[t._v(t._s(t.currentIndicator))]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"mint-indexsection"},[n("p",{staticClass:"mint-indexsection-index"},[t._v(t._s(t.index))]),n("ul",[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-swipe"},[n("div",{ref:"wrap",staticClass:"mint-swipe-items-wrap"},[t._t("default")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showIndicators,expression:"showIndicators"}],staticClass:"mint-swipe-indicators"},t._l(t.pages,function(e,i){return n("div",{staticClass:"mint-swipe-indicator",class:{"is-active":i===t.index}})}))])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-progress"},[t._t("start"),n("div",{staticClass:"mt-progress-content"},[n("div",{staticClass:"mt-progress-runway",style:{height:t.barHeight+"px"}}),n("div",{staticClass:"mt-progress-progress",style:{width:t.value+"%",height:t.barHeight+"px"}})]),t._t("end")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"mint-toast-pop"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"mint-toast",class:t.customClass,style:{padding:""===t.iconClass?"10px":"20px"}},[""!==t.iconClass?n("i",{staticClass:"mint-toast-icon",class:t.iconClass}):t._e(),n("span",{staticClass:"mint-toast-text",style:{"padding-top":""===t.iconClass?"0":"10px"}},[t._v(t._s(t.message))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-cell",{directives:[{name:"clickoutside",rawName:"v-clickoutside:touchstart",value:t.swipeMove,expression:"swipeMove",arg:"touchstart"}],ref:"cell",staticClass:"mint-cell-swipe",attrs:{title:t.title,icon:t.icon,label:t.label,to:t.to,"is-link":t.isLink,value:t.value},nativeOn:{click:function(e){t.swipeMove()},touchstart:function(e){t.startDrag(e)},touchmove:function(e){t.onDrag(e)},touchend:function(e){t.endDrag(e)}}},[n("div",{ref:"right",staticClass:"mint-cell-swipe-buttongroup",slot:"right"},t._l(t.right,function(e){return n("a",{staticClass:"mint-cell-swipe-button",style:e.style,domProps:{innerHTML:t._s(e.content)},on:{click:function(n){n.preventDefault(),n.stopPropagation(),e.handler&&e.handler(),t.swipeMove()}}})})),n("div",{ref:"left",staticClass:"mint-cell-swipe-buttongroup",slot:"left"},t._l(t.left,function(e){return n("a",{staticClass:"mint-cell-swipe-button",style:e.style,domProps:{innerHTML:t._s(e.content)},on:{click:function(n){n.preventDefault(),n.stopPropagation(),e.handler&&e.handler(),t.swipeMove()}}})})),t._t("default"),t.$slots.title?n("span",{slot:"title"},[t._t("title")],2):t._e(),t.$slots.icon?n("span",{slot:"icon"},[t._t("icon")],2):t._e()],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-spinner-triple-bounce"},[n("div",{staticClass:"mint-spinner-triple-bounce-bounce1",style:t.bounceStyle}),n("div",{staticClass:"mint-spinner-triple-bounce-bounce2",style:t.bounceStyle}),n("div",{staticClass:"mint-spinner-triple-bounce-bounce3",style:t.bounceStyle})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"actionsheet-float"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"mint-actionsheet"},[n("ul",{staticClass:"mint-actionsheet-list",style:{"margin-bottom":t.cancelText?"5px":"0"}},t._l(t.actions,function(e,i){return n("li",{staticClass:"mint-actionsheet-listitem",on:{click:function(n){n.stopPropagation(),t.itemClick(e,i)}}},[t._v(t._s(e.name))])})),t.cancelText?n("a",{staticClass:"mint-actionsheet-button",on:{click:function(e){e.stopPropagation(),t.currentValue=!1}}},[t._v(t._s(t.cancelText))]):t._e()])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-tab-container",on:{touchstart:t.startDrag,mousedown:t.startDrag,touchmove:t.onDrag,mousemove:t.onDrag,mouseup:t.endDrag,touchend:t.endDrag}},[n("div",{ref:"wrap",staticClass:"mint-tab-container-wrap"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"mint-badge",class:["is-"+t.type,"is-size-"+t.size],style:{backgroundColor:t.color}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-spinner-snake",style:{"border-top-color":t.spinnerColor,"border-left-color":t.spinnerColor,"border-bottom-color":t.spinnerColor,height:t.spinnerSize,width:t.spinnerSize}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["mint-spinner-fading-circle circle-color-"+t._uid],style:{width:t.spinnerSize,height:t.spinnerSize}},t._l(12,function(t){return n("div",{staticClass:"mint-spinner-fading-circle-circle",class:["is-circle"+(t+1)]})}))},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"mint-tab-item",class:{"is-selected":t.$parent.value===t.id},on:{click:function(e){t.$parent.$emit("input",t.id)}}},[n("div",{staticClass:"mint-tab-item-icon"},[t._t("icon")],2),n("div",{staticClass:"mint-tab-item-label"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"mint-button",class:["mint-button--"+t.type,"mint-button--"+t.size,{"is-disabled":t.disabled,"is-plain":t.plain}],attrs:{type:t.nativeType,disabled:t.disabled},on:{click:t.handleClick}},[t.icon||t.$slots.icon?n("span",{staticClass:"mint-button-icon"},[t._t("icon",[t.icon?n("i",{staticClass:"mintui",class:"mintui-"+t.icon}):t._e()])],2):t._e(),n("label",{staticClass:"mint-button-text"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"mint-switch"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"mint-switch-input",attrs:{disabled:t.disabled,type:"checkbox"},domProps:{checked:Array.isArray(t.currentValue)?t._i(t.currentValue,null)>-1:t.currentValue},on:{change:function(e){t.$emit("change",t.currentValue)},__c:function(e){var n=t.currentValue,i=e.target,a=!!i.checked;if(Array.isArray(n)){var s=null,r=t._i(n,s);a?r<0&&(t.currentValue=n.concat(s)):r>-1&&(t.currentValue=n.slice(0,r).concat(n.slice(r+1)))}else t.currentValue=a}}}),n("span",{staticClass:"mint-switch-core"}),n("div",{staticClass:"mint-switch-label"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("header",{staticClass:"mint-header",class:{"is-fixed":t.fixed}},[n("div",{staticClass:"mint-header-button is-left"},[t._t("left")],2),n("h1",{staticClass:"mint-header-title",domProps:{textContent:t._s(t.title)}}),n("div",{staticClass:"mint-header-button is-right"},[t._t("right")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-swipe-item"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("mt-popup",{staticClass:"mint-datetime",attrs:{closeOnClickModal:t.closeOnClickModal,position:"bottom"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[n("mt-picker",{ref:"picker",staticClass:"mint-datetime-picker",attrs:{slots:t.dateSlots,"visible-item-count":t.visibleItemCount,"show-toolbar":""},on:{change:t.onChange}},[n("span",{staticClass:"mint-datetime-action mint-datetime-cancel",on:{click:function(e){t.visible=!1,t.$emit("cancel")}}},[t._v(t._s(t.cancelText))]),n("span",{staticClass:"mint-datetime-action mint-datetime-confirm",on:{click:t.confirm}},[t._v(t._s(t.confirmText))])])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-tabbar",class:{"is-fixed":t.fixed}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-spinner-double-bounce",style:{width:t.spinnerSize,height:t.spinnerSize}},[n("div",{staticClass:"mint-spinner-double-bounce-bounce1",style:{backgroundColor:t.spinnerColor}}),n("div",{staticClass:"mint-spinner-double-bounce-bounce2",style:{backgroundColor:t.spinnerColor}})])},staticRenderFns:[]}; +},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-palette-button",class:{expand:t.expanded,"mint-palette-button-active":t.transforming},on:{animationend:t.onMainAnimationEnd,webkitAnimationEnd:t.onMainAnimationEnd,mozAnimationEnd:t.onMainAnimationEnd}},[n("div",{staticClass:"mint-sub-button-container"},[t._t("default")],2),n("div",{staticClass:"mint-main-button",style:t.mainButtonStyle,on:{touchstart:t.toggle}},[t._v("\n "+t._s(t.content)+"\n ")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"mint-cell",attrs:{href:t.href}},[t.isLink?n("span",{staticClass:"mint-cell-mask"}):t._e(),n("div",{staticClass:"mint-cell-left"},[t._t("left")],2),n("div",{staticClass:"mint-cell-wrapper"},[n("div",{staticClass:"mint-cell-title"},[t._t("icon",[t.icon?n("i",{staticClass:"mintui",class:"mintui-"+t.icon}):t._e()]),t._t("title",[n("span",{staticClass:"mint-cell-text",domProps:{textContent:t._s(t.title)}}),t.label?n("span",{staticClass:"mint-cell-label",domProps:{textContent:t._s(t.label)}}):t._e()])],2),n("div",{staticClass:"mint-cell-value",class:{"is-link":t.isLink}},[t._t("default",[n("span",{domProps:{textContent:t._s(t.value)}})])],2),t.isLink?n("i",{staticClass:"mint-cell-allow-right"}):t._e()]),n("div",{staticClass:"mint-cell-right"},[t._t("right")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-msgbox-wrapper"},[n("transition",{attrs:{name:"msgbox-bounce"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],staticClass:"mint-msgbox"},[""!==t.title?n("div",{staticClass:"mint-msgbox-header"},[n("div",{staticClass:"mint-msgbox-title"},[t._v(t._s(t.title))])]):t._e(),""!==t.message?n("div",{staticClass:"mint-msgbox-content"},[n("div",{staticClass:"mint-msgbox-message",domProps:{innerHTML:t._s(t.message)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showInput,expression:"showInput"}],staticClass:"mint-msgbox-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],ref:"input",attrs:{placeholder:t.inputPlaceholder},domProps:{value:t.inputValue},on:{input:function(e){e.target.composing||(t.inputValue=e.target.value)}}}),n("div",{staticClass:"mint-msgbox-errormsg",style:{visibility:t.editorErrorMessage?"visible":"hidden"}},[t._v(t._s(t.editorErrorMessage))])])]):t._e(),n("div",{staticClass:"mint-msgbox-btns"},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.showCancelButton,expression:"showCancelButton"}],class:[t.cancelButtonClasses],on:{click:function(e){t.handleAction("cancel")}}},[t._v(t._s(t.cancelButtonText))]),n("button",{directives:[{name:"show",rawName:"v-show",value:t.showConfirmButton,expression:"showConfirmButton"}],class:[t.confirmButtonClasses],on:{click:function(e){t.handleAction("confirm")}}},[t._v(t._s(t.confirmButtonText))])])])])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("x-cell",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:t.doCloseActive,expression:"doCloseActive"}],staticClass:"mint-field",class:[{"is-textarea":"textarea"===t.type,"is-nolabel":!t.label}],attrs:{title:t.label}},["textarea"===t.type?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"textarea",staticClass:"mint-field-core",attrs:{placeholder:t.placeholder,rows:t.rows,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.currentValue},on:{change:function(e){t.$emit("change",t.currentValue)},input:function(e){e.target.composing||(t.currentValue=e.target.value)}}}):n("input",{ref:"input",staticClass:"mint-field-core",attrs:{placeholder:t.placeholder,number:"number"===t.type,type:t.type,disabled:t.disabled,readonly:t.readonly},domProps:{value:t.currentValue},on:{change:function(e){t.$emit("change",t.currentValue)},focus:function(e){t.active=!0},input:t.handleInput}}),t.disableClear?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue&&"textarea"!==t.type&&t.active,expression:"currentValue && type !== 'textarea' && active"}],staticClass:"mint-field-clear",on:{click:t.handleClear}},[n("i",{staticClass:"mintui mintui-field-error"})]),t.state?n("span",{staticClass:"mint-field-state",class:["is-"+t.state]},[n("i",{staticClass:"mintui",class:["mintui-field-"+t.state]})]):t._e(),n("div",{staticClass:"mint-field-other"},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.$parent.swiping||t.id===t.$parent.currentActive,expression:"$parent.swiping || id === $parent.currentActive"}],staticClass:"mint-tab-container-item"},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[n(t.spinner,{tag:"component"})],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-radiolist",on:{change:function(e){t.$emit("change",t.currentValue)}}},[n("label",{staticClass:"mint-radiolist-title",domProps:{textContent:t._s(t.title)}}),t._l(t.options,function(e){return n("x-cell",[n("label",{staticClass:"mint-radiolist-label",slot:"title"},[n("span",{staticClass:"mint-radio",class:{"is-right":"right"===t.align}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"mint-radio-input",attrs:{type:"radio",disabled:e.disabled},domProps:{value:e.value||e,checked:t._q(t.currentValue,e.value||e)},on:{__c:function(n){t.currentValue=e.value||e}}}),n("span",{staticClass:"mint-radio-core"})]),n("span",{staticClass:"mint-radio-label",domProps:{textContent:t._s(e.label||e)}})])])})],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"mint-indicator"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"mint-indicator"},[n("div",{staticClass:"mint-indicator-wrapper",style:{padding:t.text?"20px":"15px"}},[n("spinner",{staticClass:"mint-indicator-spin",attrs:{type:t.convertedSpinnerType,size:32}}),n("span",{directives:[{name:"show",rawName:"v-show",value:t.text,expression:"text"}],staticClass:"mint-indicator-text"},[t._v(t._s(t.text))])],1),n("div",{staticClass:"mint-indicator-mask",on:{touchmove:function(t){t.stopPropagation(),t.preventDefault()}}})])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.currentTransition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.currentValue,expression:"currentValue"}],staticClass:"mint-popup",class:[t.position?"mint-popup-"+t.position:""]},[t._t("default")],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-loadmore"},[n("div",{staticClass:"mint-loadmore-content",class:{"is-dropped":t.topDropped||t.bottomDropped},style:{transform:t.transform}},[t._t("top",[t.topMethod?n("div",{staticClass:"mint-loadmore-top"},["loading"===t.topStatus?n("spinner",{staticClass:"mint-loadmore-spinner",attrs:{size:20,type:"fading-circle"}}):t._e(),n("span",{staticClass:"mint-loadmore-text"},[t._v(t._s(t.topText))])],1):t._e()]),t._t("default"),t._t("bottom",[t.bottomMethod?n("div",{staticClass:"mint-loadmore-bottom"},["loading"===t.bottomStatus?n("spinner",{staticClass:"mint-loadmore-spinner",attrs:{size:20,type:"fading-circle"}}):t._e(),n("span",{staticClass:"mint-loadmore-text"},[t._v(t._s(t.bottomText))])],1):t._e()])],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-range",class:{"mt-range--disabled":t.disabled}},[t._t("start"),n("div",{ref:"content",staticClass:"mt-range-content"},[n("div",{staticClass:"mt-range-runway",style:{"border-top-width":t.barHeight+"px"}}),n("div",{staticClass:"mt-range-progress",style:{width:t.progress+"%",height:t.barHeight+"px"}}),n("div",{ref:"thumb",staticClass:"mt-range-thumb",style:{left:t.progress+"%"}})]),t._t("end")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-navbar",class:{"is-fixed":t.fixed}},[t._t("default")],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-checklist",class:{"is-limit":t.max<=t.currentValue.length},on:{change:function(e){t.$emit("change",t.currentValue)}}},[n("label",{staticClass:"mint-checklist-title",domProps:{textContent:t._s(t.title)}}),t._l(t.options,function(e){return n("x-cell",[n("label",{staticClass:"mint-checklist-label",slot:"title"},[n("span",{staticClass:"mint-checkbox",class:{"is-right":"right"===t.align}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],staticClass:"mint-checkbox-input",attrs:{type:"checkbox",disabled:e.disabled},domProps:{value:e.value||e,checked:Array.isArray(t.currentValue)?t._i(t.currentValue,e.value||e)>-1:t.currentValue},on:{__c:function(n){var i=t.currentValue,a=n.target,s=!!a.checked;if(Array.isArray(i)){var r=e.value||e,o=t._i(i,r);s?o<0&&(t.currentValue=i.concat(r)):o>-1&&(t.currentValue=i.slice(0,o).concat(i.slice(o+1)))}else t.currentValue=s}}}),n("span",{staticClass:"mint-checkbox-core"})]),n("span",{staticClass:"mint-checkbox-label",domProps:{textContent:t._s(e.label||e)}})])])})],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mint-search"},[n("div",{staticClass:"mint-searchbar"},[n("div",{staticClass:"mint-searchbar-inner"},[n("i",{staticClass:"mintui mintui-search"}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.currentValue,expression:"currentValue"}],ref:"input",staticClass:"mint-searchbar-core",attrs:{type:"search",placeholder:t.placeholder},domProps:{value:t.currentValue},on:{click:function(e){t.visible=!0},input:function(e){e.target.composing||(t.currentValue=e.target.value)}}})]),n("a",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"mint-searchbar-cancel",domProps:{textContent:t._s(t.cancelText)},on:{click:function(e){t.visible=!1,t.currentValue=""}}})]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.show||t.currentValue,expression:"show || currentValue"}],staticClass:"mint-search-list"},[n("div",{staticClass:"mint-search-list-warp"},[t._t("default",t._l(t.result,function(t,e){return n("x-cell",{key:e,attrs:{title:t}})}))],2)])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"picker",class:{"picker-3d":t.rotateEffect}},[t.showToolbar?n("div",{staticClass:"picker-toolbar"},[t._t("default")],2):t._e(),n("div",{staticClass:"picker-items"},[t._l(t.slots,function(e){return n("picker-slot",{attrs:{valueKey:t.valueKey,values:e.values||[],"text-align":e.textAlign||"center","visible-item-count":t.visibleItemCount,"class-name":e.className,flex:e.flex,"rotate-effect":t.rotateEffect,divider:e.divider,content:e.content,itemHeight:t.itemHeight,"default-index":e.defaultIndex},model:{value:t.values[e.valueIndex],callback:function(n){var i=t.values,a=e.valueIndex;Array.isArray(i)?i.splice(a,1,n):t.values[e.valueIndex]=n},expression:"values[slot.valueIndex]"}})}),n("div",{staticClass:"picker-center-highlight",style:{height:t.itemHeight+"px",marginTop:-t.itemHeight/2+"px"}})],2)])},staticRenderFns:[]}},function(t,e,n){t.exports=n(14)}])}); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/indicator/index.js b/src/main/web/static/mint-ui/indicator/index.js new file mode 100644 index 0000000000000000000000000000000000000000..87e6d91210c7a680b685628ad8b8bf45add66748 --- /dev/null +++ b/src/main/web/static/mint-ui/indicator/index.js @@ -0,0 +1,425 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 221); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 122: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 141: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(122) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(63), + /* template */ + __webpack_require__(192), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 192: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": "mint-indicator" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.visible), + expression: "visible" + }], + staticClass: "mint-indicator" + }, [_c('div', { + staticClass: "mint-indicator-wrapper", + style: ({ + 'padding': _vm.text ? '20px' : '15px' + }) + }, [_c('spinner', { + staticClass: "mint-indicator-spin", + attrs: { + "type": _vm.convertedSpinnerType, + "size": 32 + } + }), _vm._v(" "), _c('span', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.text), + expression: "text" + }], + staticClass: "mint-indicator-text" + }, [_vm._v(_vm._s(_vm.text))])], 1), _vm._v(" "), _c('div', { + staticClass: "mint-indicator-mask", + on: { + "touchmove": function($event) { + $event.stopPropagation(); + $event.preventDefault(); + } + } + })])]) +},staticRenderFns: []} + +/***/ }, + +/***/ 205: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/spinner"); + +/***/ }, + +/***/ 206: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/spinner/style.css"); + +/***/ }, + +/***/ 221: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(29); + + +/***/ }, + +/***/ 29: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); + + +var Indicator = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__webpack_require__(141)); +var instance; + +/* harmony default export */ exports["default"] = { + open: function open(options) { + if ( options === void 0 ) options = {}; + + if (!instance) { + instance = new Indicator({ + el: document.createElement('div') + }); + } + if (instance.visible) return; + instance.text = typeof options === 'string' ? options : options.text || ''; + instance.spinnerType = options.spinnerType || 'snake'; + document.body.appendChild(instance.$el); + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + instance.visible = true; + }); + }, + + close: function close() { + if (instance) { + instance.visible = false; + } + } +}; + + +/***/ }, + +/***/ 63: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js__ = __webpack_require__(205); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (true) { + __webpack_require__(206); +} + +/* harmony default export */ exports["default"] = { + data: function data() { + return { + visible: false + }; + }, + + components: { + Spinner: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js___default.a + }, + + computed: { + convertedSpinnerType: function convertedSpinnerType() { + 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' + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/indicator/style.css b/src/main/web/static/mint-ui/indicator/style.css new file mode 100644 index 0000000000000000000000000000000000000000..fe820cba4317e709558d4c017e024490d4266f70 --- /dev/null +++ b/src/main/web/static/mint-ui/indicator/style.css @@ -0,0 +1,40 @@ + +.mint-indicator { + -webkit-transition: opacity .2s linear; + transition: opacity .2s linear; +} +.mint-indicator-wrapper { + top: 50%; + left: 50%; + position: fixed; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + border-radius: 5px; + background: rgba(0, 0, 0, 0.7); + color: white; + box-sizing: border-box; + text-align: center; +} +.mint-indicator-text { + display: block; + color: #fff; + text-align: center; + margin-top: 10px; + font-size: 16px; +} +.mint-indicator-spin { + display: inline-block; + text-align: center; +} +.mint-indicator-mask { + top: 0; + left: 0; + position: fixed; + width: 100%; + height: 100%; + opacity: 0; + background: transparent; +} +.mint-indicator-enter, .mint-indicator-leave-active { + opacity: 0; +} diff --git a/src/main/web/static/mint-ui/infinite-scroll/index.js b/src/main/web/static/mint-ui/infinite-scroll/index.js new file mode 100644 index 0000000000000000000000000000000000000000..ce9c8a618b05621bf0780018b8c01daa3b47249d --- /dev/null +++ b/src/main/web/static/mint-ui/infinite-scroll/index.js @@ -0,0 +1,356 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 222); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 222: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(30); + + +/***/ }, + +/***/ 30: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_infinite_scroll_js__ = __webpack_require__(88); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_1__src_infinite_scroll_js__["a"]; }); + + + + +/***/ }, + +/***/ 5: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 87: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); + +var ctx = '@@InfiniteScroll'; + +var throttle = function(fn, delay) { + var now, lastExec, timer, context, args; //eslint-disable-line + + var execute = function() { + fn.apply(context, args); + lastExec = now; + }; + + return function() { + context = this; + args = arguments; + + now = Date.now(); + + if (timer) { + clearTimeout(timer); + timer = null; + } + + if (lastExec) { + var diff = delay - (now - lastExec); + if (diff < 0) { + execute(); + } else { + timer = setTimeout(function () { + execute(); + }, diff); + } + } else { + execute(); + } + }; +}; + +var getScrollTop = function(element) { + if (element === window) { + return Math.max(window.pageYOffset || 0, document.documentElement.scrollTop); + } + + return element.scrollTop; +}; + +var getComputedStyle = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer ? {} : document.defaultView.getComputedStyle; + +var getScrollEventTarget = function(element) { + var currentNode = element; + // bugfix, see http://w3help.org/zh-cn/causes/SD9013 and http://stackoverflow.com/questions/17016740/onscroll-function-is-not-working-for-chrome + while (currentNode && currentNode.tagName !== 'HTML' && currentNode.tagName !== 'BODY' && currentNode.nodeType === 1) { + var overflowY = getComputedStyle(currentNode).overflowY; + if (overflowY === 'scroll' || overflowY === 'auto') { + return currentNode; + } + currentNode = currentNode.parentNode; + } + return window; +}; + +var getVisibleHeight = function(element) { + if (element === window) { + return document.documentElement.clientHeight; + } + + return element.clientHeight; +}; + +var getElementTop = function(element) { + if (element === window) { + return getScrollTop(window); + } + return element.getBoundingClientRect().top + getScrollTop(window); +}; + +var isAttached = function(element) { + var currentNode = element.parentNode; + while (currentNode) { + if (currentNode.tagName === 'HTML') { + return true; + } + if (currentNode.nodeType === 11) { + return false; + } + currentNode = currentNode.parentNode; + } + return false; +}; + +var doBind = function() { + if (this.binded) return; // eslint-disable-line + this.binded = true; + + var directive = this; + var element = directive.el; + + directive.scrollEventTarget = getScrollEventTarget(element); + directive.scrollListener = throttle(doCheck.bind(directive), 200); + directive.scrollEventTarget.addEventListener('scroll', directive.scrollListener); + + var disabledExpr = element.getAttribute('infinite-scroll-disabled'); + var disabled = false; + + if (disabledExpr) { + this.vm.$watch(disabledExpr, function(value) { + directive.disabled = value; + if (!value && directive.immediateCheck) { + doCheck.call(directive); + } + }); + disabled = Boolean(directive.vm[disabledExpr]); + } + directive.disabled = disabled; + + var distanceExpr = element.getAttribute('infinite-scroll-distance'); + var distance = 0; + if (distanceExpr) { + distance = Number(directive.vm[distanceExpr] || distanceExpr); + if (isNaN(distance)) { + distance = 0; + } + } + directive.distance = distance; + + var immediateCheckExpr = element.getAttribute('infinite-scroll-immediate-check'); + var immediateCheck = true; + if (immediateCheckExpr) { + immediateCheck = Boolean(directive.vm[immediateCheckExpr]); + } + directive.immediateCheck = immediateCheck; + + if (immediateCheck) { + doCheck.call(directive); + } + + var eventName = element.getAttribute('infinite-scroll-listen-for-event'); + if (eventName) { + directive.vm.$on(eventName, function() { + doCheck.call(directive); + }); + } +}; + +var doCheck = function(force) { + var scrollEventTarget = this.scrollEventTarget; + var element = this.el; + var distance = this.distance; + + if (force !== true && this.disabled) return; //eslint-disable-line + var viewportScrollTop = getScrollTop(scrollEventTarget); + var viewportBottom = viewportScrollTop + getVisibleHeight(scrollEventTarget); + + var shouldTrigger = false; + + if (scrollEventTarget === element) { + shouldTrigger = scrollEventTarget.scrollHeight - viewportBottom <= distance; + } else { + var elementBottom = getElementTop(element) - getElementTop(scrollEventTarget) + element.offsetHeight + viewportScrollTop; + + shouldTrigger = viewportBottom + distance >= elementBottom; + } + + if (shouldTrigger && this.expression) { + this.expression(); + } +}; + +/* harmony default export */ exports["a"] = { + bind: function bind(el, binding, vnode) { + el[ctx] = { + el: el, + vm: vnode.context, + expression: binding.value + }; + var args = arguments; + var cb = function() { + el[ctx].vm.$nextTick(function() { + if (isAttached(el)) { + doBind.call(el[ctx], args); + } + + el[ctx].bindTryCount = 0; + + var tryBind = function() { + if (el[ctx].bindTryCount > 10) return; //eslint-disable-line + el[ctx].bindTryCount++; + if (isAttached(el)) { + doBind.call(el[ctx], args); + } else { + setTimeout(tryBind, 50); + } + }; + + tryBind(); + }); + }; + if (el[ctx].vm._isMounted) { + cb(); + return; + } + el[ctx].vm.$on('hook:mounted', cb); + }, + + unbind: function unbind(el) { + if (el[ctx] && el[ctx].scrollEventTarget) { + el[ctx].scrollEventTarget.removeEventListener('scroll', el[ctx].scrollListener); + } + } +}; + + +/***/ }, + +/***/ 88: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__directive__ = __webpack_require__(87); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_vue__); + + + + +var install = function(Vue) { + Vue.directive('InfiniteScroll', __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */]); +}; + +if (!__WEBPACK_IMPORTED_MODULE_2_vue___default.a.prototype.$isServer && window.Vue) { + window.infiniteScroll = __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */]; + __WEBPACK_IMPORTED_MODULE_2_vue___default.a.use(install); // eslint-disable-line +} + +__WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */].install = install; +/* harmony default export */ exports["a"] = __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */]; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/infinite-scroll/style.css b/src/main/web/static/mint-ui/infinite-scroll/style.css new file mode 100644 index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc --- /dev/null +++ b/src/main/web/static/mint-ui/infinite-scroll/style.css @@ -0,0 +1 @@ + diff --git a/src/main/web/static/mint-ui/lazyload/index.js b/src/main/web/static/mint-ui/lazyload/index.js new file mode 100644 index 0000000000000000000000000000000000000000..7a0989c28c5ff82cfc99cf050bf00700eeba9169 --- /dev/null +++ b/src/main/web/static/mint-ui/lazyload/index.js @@ -0,0 +1,125 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 223); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 208: +/***/ function(module, exports) { + +module.exports = require("vue-lazyload"); + +/***/ }, + +/***/ 223: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(31); + + +/***/ }, + +/***/ 31: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_lazyload_js__ = __webpack_require__(89); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_1__src_lazyload_js__["a"]; }); + + + + +/***/ }, + +/***/ 5: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 89: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_lazyload__ = __webpack_require__(208); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_lazyload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue_lazyload__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__); + + + +/* harmony default export */ exports["a"] = __WEBPACK_IMPORTED_MODULE_0_vue_lazyload___default.a; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/lazyload/style.css b/src/main/web/static/mint-ui/lazyload/style.css new file mode 100644 index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc --- /dev/null +++ b/src/main/web/static/mint-ui/lazyload/style.css @@ -0,0 +1 @@ + diff --git a/src/main/web/static/mint-ui/loadmore/index.js b/src/main/web/static/mint-ui/loadmore/index.js new file mode 100644 index 0000000000000000000000000000000000000000..eb87901fe85a019d2aeb10bf479de8045dbbd48a --- /dev/null +++ b/src/main/web/static/mint-ui/loadmore/index.js @@ -0,0 +1,783 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 224); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 10: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +/* harmony default export */ exports["default"] = { + computed: { + spinnerColor: function spinnerColor() { + return this.color || this.$parent.color || '#ccc'; + }, + + spinnerSize: function spinnerSize() { + return (this.size || this.$parent.size || 28) + 'px'; + } + }, + + props: { + size: Number, + color: String + } +}; + + +/***/ }, + +/***/ 11: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'fading-circle', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a], + + created: function created() { + if (this.$isServer) return; + this.styleNode = document.createElement('style'); + var css = ".circle-color-" + (this._uid) + " > div::before { background-color: " + (this.spinnerColor) + "; }"; + + this.styleNode.type = 'text/css'; + this.styleNode.rel = 'stylesheet'; + this.styleNode.title = 'fading circle style'; + document.getElementsByTagName('head')[0].appendChild(this.styleNode); + this.styleNode.appendChild(document.createTextNode(css)); + }, + + destroyed: function destroyed() { + if (this.styleNode) { + this.styleNode.parentNode.removeChild(this.styleNode); + } + } +}; + + +/***/ }, + +/***/ 124: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 14: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 142: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(124) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(64), + /* template */ + __webpack_require__(194), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 15: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(14) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(11), + /* template */ + __webpack_require__(16), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 16: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + class: ['mint-spinner-fading-circle circle-color-' + _vm._uid], + style: ({ + width: _vm.spinnerSize, + height: _vm.spinnerSize + }) + }, _vm._l((12), function(n) { + return _c('div', { + staticClass: "mint-spinner-fading-circle-circle", + class: ['is-circle' + (n + 1)] + }) + })) +},staticRenderFns: []} + +/***/ }, + +/***/ 194: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-loadmore" + }, [_c('div', { + staticClass: "mint-loadmore-content", + class: { + 'is-dropped': _vm.topDropped || _vm.bottomDropped + }, + style: ({ + 'transform': _vm.transform + }) + }, [_vm._t("top", [(_vm.topMethod) ? _c('div', { + staticClass: "mint-loadmore-top" + }, [(_vm.topStatus === 'loading') ? _c('spinner', { + staticClass: "mint-loadmore-spinner", + attrs: { + "size": 20, + "type": "fading-circle" + } + }) : _vm._e(), _vm._v(" "), _c('span', { + staticClass: "mint-loadmore-text" + }, [_vm._v(_vm._s(_vm.topText))])], 1) : _vm._e()]), _vm._v(" "), _vm._t("default"), _vm._v(" "), _vm._t("bottom", [(_vm.bottomMethod) ? _c('div', { + staticClass: "mint-loadmore-bottom" + }, [(_vm.bottomStatus === 'loading') ? _c('spinner', { + staticClass: "mint-loadmore-spinner", + attrs: { + "size": 20, + "type": "fading-circle" + } + }) : _vm._e(), _vm._v(" "), _c('span', { + staticClass: "mint-loadmore-text" + }, [_vm._v(_vm._s(_vm.bottomText))])], 1) : _vm._e()])], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 224: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(32); + + +/***/ }, + +/***/ 32: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue__ = __webpack_require__(142); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue___default.a; }); + + + +/***/ }, + +/***/ 6: +/***/ function(module, exports, __webpack_require__) { + +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(10), + /* template */ + null, + /* styles */ + null, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 64: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue__ = __webpack_require__(15); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ exports["default"] = { + name: 'mt-loadmore', + components: { + 'spinner': __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue___default.a + }, + + props: { + maxDistance: { + type: Number, + default: 0 + }, + autoFill: { + type: Boolean, + default: true + }, + distanceIndex: { + type: Number, + default: 2 + }, + topPullText: { + type: String, + default: '下拉刷新' + }, + topDropText: { + type: String, + default: '释放更新' + }, + topLoadingText: { + type: String, + default: '加载中...' + }, + topDistance: { + type: Number, + default: 70 + }, + topMethod: { + type: Function + }, + bottomPullText: { + type: String, + default: '上拉刷新' + }, + bottomDropText: { + type: String, + default: '释放更新' + }, + bottomLoadingText: { + type: String, + default: '加载中...' + }, + bottomDistance: { + type: Number, + default: 70 + }, + bottomMethod: { + type: Function + }, + bottomAllLoaded: { + type: Boolean, + default: false + } + }, + + data: function data() { + return { + translate: 0, + scrollEventTarget: null, + containerFilled: false, + topText: '', + topDropped: false, + bottomText: '', + bottomDropped: false, + bottomReached: false, + direction: '', + startY: 0, + startScrollTop: 0, + currentY: 0, + topStatus: '', + bottomStatus: '' + }; + }, + + computed: { + transform: function transform() { + return this.translate === 0 ? null : 'translate3d(0, ' + this.translate + 'px, 0)'; + } + }, + + watch: { + topStatus: function topStatus(val) { + this.$emit('top-status-change', val); + switch (val) { + case 'pull': + this.topText = this.topPullText; + break; + case 'drop': + this.topText = this.topDropText; + break; + case 'loading': + this.topText = this.topLoadingText; + break; + } + }, + + bottomStatus: function bottomStatus(val) { + this.$emit('bottom-status-change', val); + switch (val) { + case 'pull': + this.bottomText = this.bottomPullText; + break; + case 'drop': + this.bottomText = this.bottomDropText; + break; + case 'loading': + this.bottomText = this.bottomLoadingText; + break; + } + } + }, + + methods: { + onTopLoaded: function onTopLoaded() { + var this$1 = this; + + this.translate = 0; + setTimeout(function () { + this$1.topStatus = 'pull'; + }, 200); + }, + + onBottomLoaded: function onBottomLoaded() { + var this$1 = this; + + this.bottomStatus = 'pull'; + this.bottomDropped = false; + this.$nextTick(function () { + if (this$1.scrollEventTarget === window) { + document.body.scrollTop += 50; + } else { + this$1.scrollEventTarget.scrollTop += 50; + } + this$1.translate = 0; + }); + if (!this.bottomAllLoaded && !this.containerFilled) { + this.fillContainer(); + } + }, + + getScrollEventTarget: function getScrollEventTarget(element) { + var currentNode = element; + while (currentNode && currentNode.tagName !== 'HTML' && + currentNode.tagName !== 'BODY' && currentNode.nodeType === 1) { + var overflowY = document.defaultView.getComputedStyle(currentNode).overflowY; + if (overflowY === 'scroll' || overflowY === 'auto') { + return currentNode; + } + currentNode = currentNode.parentNode; + } + return window; + }, + + getScrollTop: function getScrollTop(element) { + if (element === window) { + return Math.max(window.pageYOffset || 0, document.documentElement.scrollTop); + } else { + return element.scrollTop; + } + }, + + bindTouchEvents: function bindTouchEvents() { + this.$el.addEventListener('touchstart', this.handleTouchStart); + this.$el.addEventListener('touchmove', this.handleTouchMove); + this.$el.addEventListener('touchend', this.handleTouchEnd); + }, + + init: function init() { + this.topStatus = 'pull'; + this.bottomStatus = 'pull'; + this.topText = this.topPullText; + this.scrollEventTarget = this.getScrollEventTarget(this.$el); + if (typeof this.bottomMethod === 'function') { + this.fillContainer(); + this.bindTouchEvents(); + } + if (typeof this.topMethod === 'function') { + this.bindTouchEvents(); + } + }, + + fillContainer: function fillContainer() { + var this$1 = this; + + if (this.autoFill) { + this.$nextTick(function () { + if (this$1.scrollEventTarget === window) { + this$1.containerFilled = this$1.$el.getBoundingClientRect().bottom >= + document.documentElement.getBoundingClientRect().bottom; + } else { + this$1.containerFilled = this$1.$el.getBoundingClientRect().bottom >= + this$1.scrollEventTarget.getBoundingClientRect().bottom; + } + if (!this$1.containerFilled) { + this$1.bottomStatus = 'loading'; + this$1.bottomMethod(); + } + }); + } + }, + + checkBottomReached: function checkBottomReached() { + if (this.scrollEventTarget === window) { + return document.body.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight; + } else { + return this.$el.getBoundingClientRect().bottom <= this.scrollEventTarget.getBoundingClientRect().bottom + 1; + } + }, + + handleTouchStart: function handleTouchStart(event) { + this.startY = event.touches[0].clientY; + this.startScrollTop = this.getScrollTop(this.scrollEventTarget); + this.bottomReached = false; + if (this.topStatus !== 'loading') { + this.topStatus = 'pull'; + this.topDropped = false; + } + if (this.bottomStatus !== 'loading') { + this.bottomStatus = 'pull'; + this.bottomDropped = false; + } + }, + + handleTouchMove: function handleTouchMove(event) { + if (this.startY < this.$el.getBoundingClientRect().top && this.startY > this.$el.getBoundingClientRect().bottom) { + return; + } + this.currentY = event.touches[0].clientY; + var distance = (this.currentY - this.startY) / this.distanceIndex; + this.direction = distance > 0 ? 'down' : 'up'; + if (typeof this.topMethod === 'function' && this.direction === 'down' && + this.getScrollTop(this.scrollEventTarget) === 0 && this.topStatus !== 'loading') { + event.preventDefault(); + event.stopPropagation(); + if (this.maxDistance > 0) { + this.translate = distance <= this.maxDistance ? distance - this.startScrollTop : this.translate; + } else { + this.translate = distance - this.startScrollTop; + } + if (this.translate < 0) { + this.translate = 0; + } + this.topStatus = this.translate >= this.topDistance ? 'drop' : 'pull'; + } + + if (this.direction === 'up') { + this.bottomReached = this.bottomReached || this.checkBottomReached(); + } + if (typeof this.bottomMethod === 'function' && this.direction === 'up' && + this.bottomReached && this.bottomStatus !== 'loading' && !this.bottomAllLoaded) { + event.preventDefault(); + event.stopPropagation(); + if (this.maxDistance > 0) { + this.translate = Math.abs(distance) <= this.maxDistance + ? this.getScrollTop(this.scrollEventTarget) - this.startScrollTop + distance : this.translate; + } else { + this.translate = this.getScrollTop(this.scrollEventTarget) - this.startScrollTop + distance; + } + if (this.translate > 0) { + this.translate = 0; + } + this.bottomStatus = -this.translate >= this.bottomDistance ? 'drop' : 'pull'; + } + this.$emit('translate-change', this.translate); + }, + + handleTouchEnd: function handleTouchEnd() { + if (this.direction === 'down' && this.getScrollTop(this.scrollEventTarget) === 0 && this.translate > 0) { + this.topDropped = true; + if (this.topStatus === 'drop') { + this.translate = '50'; + this.topStatus = 'loading'; + this.topMethod(); + } else { + this.translate = '0'; + this.topStatus = 'pull'; + } + } + if (this.direction === 'up' && this.bottomReached && this.translate < 0) { + this.bottomDropped = true; + this.bottomReached = false; + if (this.bottomStatus === 'drop') { + this.translate = '-50'; + this.bottomStatus = 'loading'; + this.bottomMethod(); + } else { + this.translate = '0'; + this.bottomStatus = 'pull'; + } + } + this.$emit('translate-change', this.translate); + this.direction = ''; + } + }, + + mounted: function mounted() { + this.init(); + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/loadmore/style.css b/src/main/web/static/mint-ui/loadmore/style.css new file mode 100644 index 0000000000000000000000000000000000000000..05233d55a3467eeeaab7c8b49dc382bf684f406e --- /dev/null +++ b/src/main/web/static/mint-ui/loadmore/style.css @@ -0,0 +1,153 @@ + +.mint-spinner-fading-circle { + position: relative +} +.mint-spinner-fading-circle-circle { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute +} +.mint-spinner-fading-circle-circle::before { + content: " "; + display: block; + margin: 0 auto; + width: 15%; + height: 15%; + border-radius: 100%; + -webkit-animation: mint-fading-circle 1.2s infinite ease-in-out both; + animation: mint-fading-circle 1.2s infinite ease-in-out both +} +.mint-spinner-fading-circle-circle.is-circle2 { + -webkit-transform: rotate(30deg); + transform: rotate(30deg) +} +.mint-spinner-fading-circle-circle.is-circle2::before { + -webkit-animation-delay: -1.1s; + animation-delay: -1.1s +} +.mint-spinner-fading-circle-circle.is-circle3 { + -webkit-transform: rotate(60deg); + transform: rotate(60deg) +} +.mint-spinner-fading-circle-circle.is-circle3::before { + -webkit-animation-delay: -1s; + animation-delay: -1s +} +.mint-spinner-fading-circle-circle.is-circle4 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg) +} +.mint-spinner-fading-circle-circle.is-circle4::before { + -webkit-animation-delay: -0.9s; + animation-delay: -0.9s +} +.mint-spinner-fading-circle-circle.is-circle5 { + -webkit-transform: rotate(120deg); + transform: rotate(120deg) +} +.mint-spinner-fading-circle-circle.is-circle5::before { + -webkit-animation-delay: -0.8s; + animation-delay: -0.8s +} +.mint-spinner-fading-circle-circle.is-circle6 { + -webkit-transform: rotate(150deg); + transform: rotate(150deg) +} +.mint-spinner-fading-circle-circle.is-circle6::before { + -webkit-animation-delay: -0.7s; + animation-delay: -0.7s +} +.mint-spinner-fading-circle-circle.is-circle7 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg) +} +.mint-spinner-fading-circle-circle.is-circle7::before { + -webkit-animation-delay: -0.6s; + animation-delay: -0.6s +} +.mint-spinner-fading-circle-circle.is-circle8 { + -webkit-transform: rotate(210deg); + transform: rotate(210deg) +} +.mint-spinner-fading-circle-circle.is-circle8::before { + -webkit-animation-delay: -0.5s; + animation-delay: -0.5s +} +.mint-spinner-fading-circle-circle.is-circle9 { + -webkit-transform: rotate(240deg); + transform: rotate(240deg) +} +.mint-spinner-fading-circle-circle.is-circle9::before { + -webkit-animation-delay: -0.4s; + animation-delay: -0.4s +} +.mint-spinner-fading-circle-circle.is-circle10 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg) +} +.mint-spinner-fading-circle-circle.is-circle10::before { + -webkit-animation-delay: -0.3s; + animation-delay: -0.3s +} +.mint-spinner-fading-circle-circle.is-circle11 { + -webkit-transform: rotate(300deg); + transform: rotate(300deg) +} +.mint-spinner-fading-circle-circle.is-circle11::before { + -webkit-animation-delay: -0.2s; + animation-delay: -0.2s +} +.mint-spinner-fading-circle-circle.is-circle12 { + -webkit-transform: rotate(330deg); + transform: rotate(330deg) +} +.mint-spinner-fading-circle-circle.is-circle12::before { + -webkit-animation-delay: -0.1s; + animation-delay: -0.1s +} +@-webkit-keyframes mint-fading-circle { + 0%, 39%, 100% { + opacity: 0 + } + 40% { + opacity: 1 + } +} +@keyframes mint-fading-circle { + 0%, 39%, 100% { + opacity: 0 + } + 40% { + opacity: 1 + } +} + +.mint-loadmore { + overflow: hidden +} +.mint-loadmore-content {} +.mint-loadmore-content.is-dropped { + -webkit-transition: .2s; + transition: .2s +} +.mint-loadmore-top, .mint-loadmore-bottom { + text-align: center; + height: 50px; + line-height: 50px +} +.mint-loadmore-top { + margin-top: -50px +} +.mint-loadmore-bottom { + margin-bottom: -50px +} +.mint-loadmore-spinner { + display: inline-block; + margin-right: 5px; + vertical-align: middle +} +.mint-loadmore-text { + vertical-align: middle +} diff --git a/src/main/web/static/mint-ui/message-box/index.js b/src/main/web/static/mint-ui/message-box/index.js new file mode 100644 index 0000000000000000000000000000000000000000..317d36c72c4dea024b657969f618892cafb1f1d6 --- /dev/null +++ b/src/main/web/static/mint-ui/message-box/index.js @@ -0,0 +1,1592 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 225); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 117: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 118: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 143: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(117) + __webpack_require__(118) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(65), + /* template */ + __webpack_require__(187), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 187: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-msgbox-wrapper" + }, [_c('transition', { + attrs: { + "name": "msgbox-bounce" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.value), + expression: "value" + }], + staticClass: "mint-msgbox" + }, [(_vm.title !== '') ? _c('div', { + staticClass: "mint-msgbox-header" + }, [_c('div', { + staticClass: "mint-msgbox-title" + }, [_vm._v(_vm._s(_vm.title))])]) : _vm._e(), _vm._v(" "), (_vm.message !== '') ? _c('div', { + staticClass: "mint-msgbox-content" + }, [_c('div', { + staticClass: "mint-msgbox-message", + domProps: { + "innerHTML": _vm._s(_vm.message) + } + }), _vm._v(" "), _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showInput), + expression: "showInput" + }], + staticClass: "mint-msgbox-input" + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.inputValue), + expression: "inputValue" + }], + ref: "input", + attrs: { + "placeholder": _vm.inputPlaceholder + }, + domProps: { + "value": (_vm.inputValue) + }, + on: { + "input": function($event) { + if ($event.target.composing) { return; } + _vm.inputValue = $event.target.value + } + } + }), _vm._v(" "), _c('div', { + staticClass: "mint-msgbox-errormsg", + style: ({ + visibility: !!_vm.editorErrorMessage ? 'visible' : 'hidden' + }) + }, [_vm._v(_vm._s(_vm.editorErrorMessage))])])]) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "mint-msgbox-btns" + }, [_c('button', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showCancelButton), + expression: "showCancelButton" + }], + class: [_vm.cancelButtonClasses], + on: { + "click": function($event) { + _vm.handleAction('cancel') + } + } + }, [_vm._v(_vm._s(_vm.cancelButtonText))]), _vm._v(" "), _c('button', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showConfirmButton), + expression: "showConfirmButton" + }], + class: [_vm.confirmButtonClasses], + on: { + "click": function($event) { + _vm.handleAction('confirm') + } + } + }, [_vm._v(_vm._s(_vm.confirmButtonText))])])])])], 1) +},staticRenderFns: []} + +/***/ }, + +/***/ 2: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, + +/***/ 225: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(33); + + +/***/ }, + +/***/ 33: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_message_box_js__ = __webpack_require__(90); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_message_box_js__["a"]; }); + + + +/***/ }, + +/***/ 65: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(8); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +var CONFIRM_TEXT = '确定'; +var CANCEL_TEXT = '取消'; + + + +/* harmony default export */ exports["default"] = { + mixins: [ __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */] ], + + props: { + modal: { + default: true + }, + showClose: { + type: Boolean, + default: true + }, + lockScroll: { + type: Boolean, + default: false + }, + closeOnClickModal: { + default: true + }, + closeOnPressEscape: { + default: true + }, + inputType: { + type: String, + default: 'text' + } + }, + + computed: { + confirmButtonClasses: function confirmButtonClasses() { + var classes = 'mint-msgbox-btn mint-msgbox-confirm ' + this.confirmButtonClass; + if (this.confirmButtonHighlight) { + classes += ' mint-msgbox-confirm-highlight'; + } + return classes; + }, + cancelButtonClasses: function cancelButtonClasses() { + var classes = 'mint-msgbox-btn mint-msgbox-cancel ' + this.cancelButtonClass; + if (this.cancelButtonHighlight) { + classes += ' mint-msgbox-cancel-highlight'; + } + return classes; + } + }, + + methods: { + doClose: function doClose() { + var this$1 = this; + + this.value = false; + this._closing = true; + + this.onClose && this.onClose(); + + setTimeout(function () { + if (this$1.modal && this$1.bodyOverflow !== 'hidden') { + document.body.style.overflow = this$1.bodyOverflow; + document.body.style.paddingRight = this$1.bodyPaddingRight; + } + this$1.bodyOverflow = null; + this$1.bodyPaddingRight = null; + }, 200); + this.opened = false; + + if (!this.transition) { + this.doAfterClose(); + } + }, + + handleAction: function handleAction(action) { + if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) { + return; + } + var callback = this.callback; + this.value = false; + callback(action); + }, + + validate: function validate() { + if (this.$type === 'prompt') { + var inputPattern = this.inputPattern; + if (inputPattern && !inputPattern.test(this.inputValue || '')) { + this.editorErrorMessage = this.inputErrorMessage || '输入的数据不合法!'; + this.$refs.input.classList.add('invalid'); + return false; + } + var inputValidator = this.inputValidator; + if (typeof inputValidator === 'function') { + var validateResult = inputValidator(this.inputValue); + if (validateResult === false) { + this.editorErrorMessage = this.inputErrorMessage || '输入的数据不合法!'; + this.$refs.input.classList.add('invalid'); + return false; + } + if (typeof validateResult === 'string') { + this.editorErrorMessage = validateResult; + return false; + } + } + } + this.editorErrorMessage = ''; + this.$refs.input.classList.remove('invalid'); + return true; + }, + + handleInputType: function handleInputType(val) { + if (val === 'range' || !this.$refs.input) return; + this.$refs.input.type = val; + } + }, + + watch: { + inputValue: function inputValue() { + if (this.$type === 'prompt') { + this.validate(); + } + }, + + value: function value(val) { + var this$1 = this; + + this.handleInputType(this.inputType); + if (val && this.$type === 'prompt') { + setTimeout(function () { + if (this$1.$refs.input) { + this$1.$refs.input.focus(); + } + }, 500); + } + }, + + inputType: function inputType(val) { + this.handleInputType(val); + } + }, + + data: function data() { + return { + title: '', + message: '', + type: '', + showInput: false, + inputValue: null, + inputPlaceholder: '', + inputPattern: null, + inputValidator: null, + inputErrorMessage: '', + showConfirmButton: true, + showCancelButton: false, + confirmButtonText: CONFIRM_TEXT, + cancelButtonText: CANCEL_TEXT, + confirmButtonClass: '', + confirmButtonDisabled: false, + cancelButtonClass: '', + editorErrorMessage: null, + callback: null + }; + } +}; + + +/***/ }, + +/***/ 7: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony default export */ exports["a"] = function(target) { + var arguments$1 = arguments; + + for (var i = 1, j = arguments.length; i < j; i++) { + var source = arguments$1[i] || {}; + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + var value = source[prop]; + if (value !== undefined) { + target[prop] = value; + } + } + } + } + + return target; +};; + + +/***/ }, + +/***/ 8: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__ = __webpack_require__(9); +/* unused harmony reexport PopupManager */ + + + + +var idSeed = 1; +var transitions = []; + +var hookTransition = function (transition) { + if (transitions.indexOf(transition) !== -1) return; + + var getVueInstance = function (element) { + var instance = element.__vue__; + if (!instance) { + var textNode = element.previousSibling; + if (textNode.__vue__) { + instance = textNode.__vue__; + } + } + return instance; + }; + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.transition(transition, { + afterEnter: function afterEnter(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterOpen && instance.doAfterOpen(); + } + }, + afterLeave: function afterLeave(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterClose && instance.doAfterClose(); + } + } + }); +}; + +var scrollBarWidth; +var getScrollBarWidth = function () { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (scrollBarWidth !== undefined) return scrollBarWidth; + + var outer = document.createElement('div'); + outer.style.visibility = 'hidden'; + outer.style.width = '100px'; + outer.style.position = 'absolute'; + outer.style.top = '-9999px'; + document.body.appendChild(outer); + + var widthNoScroll = outer.offsetWidth; + outer.style.overflow = 'scroll'; + + var inner = document.createElement('div'); + inner.style.width = '100%'; + outer.appendChild(inner); + + var widthWithScroll = inner.offsetWidth; + outer.parentNode.removeChild(outer); + + return widthNoScroll - widthWithScroll; +}; + +var getDOM = function(dom) { + if (dom.nodeType === 3) { + dom = dom.nextElementSibling || dom.nextSibling; + getDOM(dom); + } + return dom; +}; + +/* harmony default export */ exports["a"] = { + props: { + value: { + type: Boolean, + default: false + }, + transition: { + type: String, + default: '' + }, + openDelay: {}, + closeDelay: {}, + zIndex: {}, + modal: { + type: Boolean, + default: false + }, + modalFade: { + type: Boolean, + default: true + }, + modalClass: { + }, + lockScroll: { + type: Boolean, + default: true + }, + closeOnPressEscape: { + type: Boolean, + default: false + }, + closeOnClickModal: { + type: Boolean, + default: false + } + }, + + created: function created() { + if (this.transition) { + hookTransition(this.transition); + } + }, + + beforeMount: function beforeMount() { + this._popupId = 'popup-' + idSeed++; + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].register(this._popupId, this); + }, + + beforeDestroy: function beforeDestroy() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].deregister(this._popupId); + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + if (this.modal && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') { + document.body.style.overflow = this.bodyOverflow; + document.body.style.paddingRight = this.bodyPaddingRight; + } + this.bodyOverflow = null; + this.bodyPaddingRight = null; + }, + + data: function data() { + return { + opened: false, + bodyOverflow: null, + bodyPaddingRight: null, + rendered: false + }; + }, + + watch: { + value: function value(val) { + var this$1 = this; + + if (val) { + if (this._opening) return; + if (!this.rendered) { + this.rendered = true; + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + this$1.open(); + }); + } else { + this.open(); + } + } else { + this.close(); + } + } + }, + + methods: { + open: function open(options) { + var this$1 = this; + + if (!this.rendered) { + this.rendered = true; + this.$emit('input', true); + } + + var props = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__["a" /* default */])({}, this, options, this.$props); + + if (this._closeTimer) { + clearTimeout(this._closeTimer); + this._closeTimer = null; + } + clearTimeout(this._openTimer); + + var openDelay = Number(props.openDelay); + if (openDelay > 0) { + this._openTimer = setTimeout(function () { + this$1._openTimer = null; + this$1.doOpen(props); + }, openDelay); + } else { + this.doOpen(props); + } + }, + + doOpen: function doOpen(props) { + if (this.$isServer) return; + if (this.willOpen && !this.willOpen()) return; + if (this.opened) return; + + this._opening = true; + + // 使用 vue-popup 的组件,如果需要和父组件通信显示的状态,应该使用 value,它是一个 prop, + // 这样在父组件中用 v-model 即可;否则可以使用 visible,它是一个 data + this.visible = true; + this.$emit('input', true); + + var dom = getDOM(this.$el); + + var modal = props.modal; + + var zIndex = props.zIndex; + if (zIndex) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].zIndex = zIndex; + } + + if (modal) { + if (this._closing) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].openModal(this._popupId, __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(), dom, props.modalClass, props.modalFade); + if (props.lockScroll) { + if (!this.bodyOverflow) { + this.bodyPaddingRight = document.body.style.paddingRight; + this.bodyOverflow = document.body.style.overflow; + } + scrollBarWidth = getScrollBarWidth(); + var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight; + if (scrollBarWidth > 0 && bodyHasOverflow) { + document.body.style.paddingRight = scrollBarWidth + 'px'; + } + document.body.style.overflow = 'hidden'; + } + } + + if (getComputedStyle(dom).position === 'static') { + dom.style.position = 'absolute'; + } + + dom.style.zIndex = __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(); + this.opened = true; + + this.onOpen && this.onOpen(); + + if (!this.transition) { + this.doAfterOpen(); + } + }, + + doAfterOpen: function doAfterOpen() { + this._opening = false; + }, + + close: function close() { + var this$1 = this; + + if (this.willClose && !this.willClose()) return; + + if (this._openTimer !== null) { + clearTimeout(this._openTimer); + this._openTimer = null; + } + clearTimeout(this._closeTimer); + + var closeDelay = Number(this.closeDelay); + + if (closeDelay > 0) { + this._closeTimer = setTimeout(function () { + this$1._closeTimer = null; + this$1.doClose(); + }, closeDelay); + } else { + this.doClose(); + } + }, + + doClose: function doClose() { + var this$1 = this; + + this.visible = false; + this.$emit('input', false); + this._closing = true; + + this.onClose && this.onClose(); + + if (this.lockScroll) { + setTimeout(function () { + if (this$1.modal && this$1.bodyOverflow !== 'hidden') { + document.body.style.overflow = this$1.bodyOverflow; + document.body.style.paddingRight = this$1.bodyPaddingRight; + } + this$1.bodyOverflow = null; + this$1.bodyPaddingRight = null; + }, 200); + } + + this.opened = false; + + if (!this.transition) { + this.doAfterClose(); + } + }, + + doAfterClose: function doAfterClose() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + } +}; + + + + +/***/ }, + +/***/ 9: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__ = __webpack_require__(2); + + + +var hasModal = false; + +var getModal = function() { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + var modalDom = PopupManager.modalDom; + if (modalDom) { + hasModal = true; + } else { + hasModal = false; + modalDom = document.createElement('div'); + PopupManager.modalDom = modalDom; + + modalDom.addEventListener('touchmove', function(event) { + event.preventDefault(); + event.stopPropagation(); + }); + + modalDom.addEventListener('click', function() { + PopupManager.doOnModalClick && PopupManager.doOnModalClick(); + }); + } + + return modalDom; +}; + +var instances = {}; + +var PopupManager = { + zIndex: 2000, + + modalFade: true, + + getInstance: function(id) { + return instances[id]; + }, + + register: function(id, instance) { + if (id && instance) { + instances[id] = instance; + } + }, + + deregister: function(id) { + if (id) { + instances[id] = null; + delete instances[id]; + } + }, + + nextZIndex: function() { + return PopupManager.zIndex++; + }, + + modalStack: [], + + doOnModalClick: function() { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + + var instance = PopupManager.getInstance(topItem.id); + if (instance && instance.closeOnClickModal) { + instance.close(); + } + }, + + openModal: function(id, zIndex, dom, modalClass, modalFade) { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (!id || zIndex === undefined) return; + this.modalFade = modalFade; + + var modalStack = this.modalStack; + + for (var i = 0, j = modalStack.length; i < j; i++) { + var item = modalStack[i]; + if (item.id === id) { + return; + } + } + + var modalDom = getModal(); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal'); + if (this.modalFade && !hasModal) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-enter'); + } + if (modalClass) { + var classArr = modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, item); }); + } + setTimeout(function () { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-enter'); + }, 200); + + if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) { + dom.parentNode.appendChild(modalDom); + } else { + document.body.appendChild(modalDom); + } + + if (zIndex) { + modalDom.style.zIndex = zIndex; + } + modalDom.style.display = ''; + + this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass }); + }, + + closeModal: function(id) { + var modalStack = this.modalStack; + var modalDom = getModal(); + + if (modalStack.length > 0) { + var topItem = modalStack[modalStack.length - 1]; + if (topItem.id === id) { + if (topItem.modalClass) { + var classArr = topItem.modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, item); }); + } + + modalStack.pop(); + if (modalStack.length > 0) { + modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex; + } + } else { + for (var i = modalStack.length - 1; i >= 0; i--) { + if (modalStack[i].id === id) { + modalStack.splice(i, 1); + break; + } + } + } + } + + if (modalStack.length === 0) { + if (this.modalFade) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-leave'); + } + setTimeout(function () { + if (modalStack.length === 0) { + if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom); + modalDom.style.display = 'none'; + PopupManager.modalDom = undefined; + } + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-leave'); + }, 200); + } + } +}; +!__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && window.addEventListener('keydown', function(event) { + if (event.keyCode === 27) { // ESC + if (PopupManager.modalStack.length > 0) { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + var instance = PopupManager.getInstance(topItem.id); + if (instance.closeOnPressEscape) { + instance.close(); + } + } + } +}); + +/* harmony default export */ exports["a"] = PopupManager; + + +/***/ }, + +/***/ 90: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__message_box_vue__ = __webpack_require__(143); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__message_box_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__message_box_vue__); +/* unused harmony export MessageBox */ +var CONFIRM_TEXT = '确定'; +var CANCEL_TEXT = '取消'; + +var defaults = { + title: '提示', + message: '', + type: '', + showInput: false, + showClose: true, + modalFade: false, + lockScroll: false, + closeOnClickModal: true, + inputValue: null, + inputPlaceholder: '', + inputPattern: null, + inputValidator: null, + inputErrorMessage: '', + showConfirmButton: true, + showCancelButton: false, + confirmButtonPosition: 'right', + confirmButtonHighlight: false, + cancelButtonHighlight: false, + confirmButtonText: CONFIRM_TEXT, + cancelButtonText: CANCEL_TEXT, + confirmButtonClass: '', + cancelButtonClass: '' +}; + + + + +var merge = function(target) { + var arguments$1 = arguments; + + for (var i = 1, j = arguments.length; i < j; i++) { + var source = arguments$1[i]; + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + var value = source[prop]; + if (value !== undefined) { + target[prop] = value; + } + } + } + } + + return target; +}; + +var MessageBoxConstructor = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__WEBPACK_IMPORTED_MODULE_1__message_box_vue___default.a); + +var currentMsg, instance; +var msgQueue = []; + +var defaultCallback = function (action) { + if (currentMsg) { + var callback = currentMsg.callback; + if (typeof callback === 'function') { + if (instance.showInput) { + callback(instance.inputValue, action); + } else { + callback(action); + } + } + if (currentMsg.resolve) { + var $type = currentMsg.options.$type; + if ($type === 'confirm' || $type === 'prompt') { + if (action === 'confirm') { + if (instance.showInput) { + currentMsg.resolve({ value: instance.inputValue, action: action }); + } else { + currentMsg.resolve(action); + } + } else if (action === 'cancel' && currentMsg.reject) { + currentMsg.reject(action); + } + } else { + currentMsg.resolve(action); + } + } + } +}; + +var initInstance = function() { + instance = new MessageBoxConstructor({ + el: document.createElement('div') + }); + + instance.callback = defaultCallback; +}; + +var showNextMsg = function() { + if (!instance) { + initInstance(); + } + + if (!instance.value || instance.closeTimer) { + if (msgQueue.length > 0) { + currentMsg = msgQueue.shift(); + + var options = currentMsg.options; + for (var prop in options) { + if (options.hasOwnProperty(prop)) { + instance[prop] = options[prop]; + } + } + if (options.callback === undefined) { + instance.callback = defaultCallback; + } + ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(function (prop) { + if (instance[prop] === undefined) { + instance[prop] = true; + } + }); + document.body.appendChild(instance.$el); + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + instance.value = true; + }); + } + } +}; + +var MessageBox = function(options, callback) { + if (typeof options === 'string') { + options = { + title: options + }; + if (arguments[1]) { + options.message = arguments[1]; + } + if (arguments[2]) { + options.type = arguments[2]; + } + } else if (options.callback && !callback) { + callback = options.callback; + } + + if (typeof Promise !== 'undefined') { + return new Promise(function(resolve, reject) { // eslint-disable-line + msgQueue.push({ + options: merge({}, defaults, MessageBox.defaults || {}, options), + callback: callback, + resolve: resolve, + reject: reject + }); + + showNextMsg(); + }); + } else { + msgQueue.push({ + options: merge({}, defaults, MessageBox.defaults || {}, options), + callback: callback + }); + + showNextMsg(); + } +}; + +MessageBox.setDefaults = function(defaults) { + MessageBox.defaults = defaults; +}; + +MessageBox.alert = function(message, title, options) { + if (typeof title === 'object') { + options = title; + title = ''; + } + return MessageBox(merge({ + title: title, + message: message, + $type: 'alert', + closeOnPressEscape: false, + closeOnClickModal: false + }, options)); +}; + +MessageBox.confirm = function(message, title, options) { + if (typeof title === 'object') { + options = title; + title = ''; + } + return MessageBox(merge({ + title: title, + message: message, + $type: 'confirm', + showCancelButton: true + }, options)); +}; + +MessageBox.prompt = function(message, title, options) { + if (typeof title === 'object') { + options = title; + title = ''; + } + return MessageBox(merge({ + title: title, + message: message, + showCancelButton: true, + showInput: true, + $type: 'prompt' + }, options)); +}; + +MessageBox.close = function() { + if (!instance) return; + instance.value = false; + msgQueue = []; + currentMsg = null; +}; + +/* harmony default export */ exports["a"] = MessageBox; + + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/message-box/style.css b/src/main/web/static/mint-ui/message-box/style.css new file mode 100644 index 0000000000000000000000000000000000000000..883d304e6362107cb878a9716014232e573f7f28 --- /dev/null +++ b/src/main/web/static/mint-ui/message-box/style.css @@ -0,0 +1,159 @@ + +.mint-msgbox { + position: fixed; + top: 50%; + left: 50%; + -webkit-transform: translate3d(-50%, -50%, 0); + transform: translate3d(-50%, -50%, 0); + background-color: #fff; + width: 85%; + border-radius: 3px; + font-size: 16px; + -webkit-user-select: none; + overflow: hidden; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition: .2s; + transition: .2s; +} +.mint-msgbox-header { + padding: 15px 0 0; +} +.mint-msgbox-content { + padding: 10px 20px 15px; + border-bottom: 1px solid #ddd; + min-height: 36px; + position: relative; +} +.mint-msgbox-input { + padding-top: 15px; +} +.mint-msgbox-input input { + border: 1px solid #dedede; + border-radius: 5px; + padding: 4px 5px; + width: 100%; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + outline: none; +} +.mint-msgbox-input input.invalid { + border-color: #ff4949; +} +.mint-msgbox-input input.invalid:focus { + border-color: #ff4949; +} +.mint-msgbox-errormsg { + color: red; + font-size: 12px; + min-height: 18px; + margin-top: 2px; +} +.mint-msgbox-title { + text-align: center; + padding-left: 0; + margin-bottom: 0; + font-size: 16px; + font-weight: 700; + color: #333; +} +.mint-msgbox-message { + color: #999; + margin: 0; + text-align: center; + line-height: 36px; +} +.mint-msgbox-btns { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + height: 40px; + line-height: 40px; +} +.mint-msgbox-btn { + line-height: 35px; + display: block; + background-color: #fff; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + margin: 0; + border: 0; +} +.mint-msgbox-btn:focus { + outline: none; +} +.mint-msgbox-btn:active { + background-color: #fff; +} +.mint-msgbox-cancel { + width: 50%; + border-right: 1px solid #ddd; +} +.mint-msgbox-cancel:active { + color: #000; +} +.mint-msgbox-confirm { + color: #26a2ff; + width: 50%; +} +.mint-msgbox-confirm:active { + color: #26a2ff; +} +.msgbox-bounce-enter { + opacity: 0; + -webkit-transform: translate3d(-50%, -50%, 0) scale(0.7); + transform: translate3d(-50%, -50%, 0) scale(0.7); +} +.msgbox-bounce-leave-active { + opacity: 0; + -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9); + transform: translate3d(-50%, -50%, 0) scale(0.9); +} + +.v-modal-enter { + -webkit-animation: v-modal-in .2s ease; + animation: v-modal-in .2s ease; +} +.v-modal-leave { + -webkit-animation: v-modal-out .2s ease forwards; + animation: v-modal-out .2s ease forwards; +} +@-webkit-keyframes v-modal-in { +0% { + opacity: 0; +} +100% { +} +} +@keyframes v-modal-in { +0% { + opacity: 0; +} +100% { +} +} +@-webkit-keyframes v-modal-out { +0% { +} +100% { + opacity: 0; +} +} +@keyframes v-modal-out { +0% { +} +100% { + opacity: 0; +} +} +.v-modal { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0.5; + background: #000; +} diff --git a/src/main/web/static/mint-ui/mint-ui.common.js b/src/main/web/static/mint-ui/mint-ui.common.js new file mode 100644 index 0000000000000000000000000000000000000000..d38e8db73162c026003861bea999ed1eccdece96 --- /dev/null +++ b/src/main/web/static/mint-ui/mint-ui.common.js @@ -0,0 +1,9917 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 202); +/******/ }) +/************************************************************************/ +/******/ ([ +/* 0 */ +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, +/* 1 */ +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, +/* 2 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue__ = __webpack_require__(132); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_cell_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_cell_vue___default.a; }); + + + +/***/ }, +/* 3 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, +/* 4 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 5 */ +/***/ function(module, exports, __webpack_require__) { + +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(39), + /* template */ + null, + /* styles */ + null, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__ = __webpack_require__(11); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__ = __webpack_require__(90); +/* unused harmony reexport PopupManager */ + + + + +var idSeed = 1; +var transitions = []; + +var hookTransition = function (transition) { + if (transitions.indexOf(transition) !== -1) return; + + var getVueInstance = function (element) { + var instance = element.__vue__; + if (!instance) { + var textNode = element.previousSibling; + if (textNode.__vue__) { + instance = textNode.__vue__; + } + } + return instance; + }; + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.transition(transition, { + afterEnter: function afterEnter(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterOpen && instance.doAfterOpen(); + } + }, + afterLeave: function afterLeave(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterClose && instance.doAfterClose(); + } + } + }); +}; + +var scrollBarWidth; +var getScrollBarWidth = function () { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (scrollBarWidth !== undefined) return scrollBarWidth; + + var outer = document.createElement('div'); + outer.style.visibility = 'hidden'; + outer.style.width = '100px'; + outer.style.position = 'absolute'; + outer.style.top = '-9999px'; + document.body.appendChild(outer); + + var widthNoScroll = outer.offsetWidth; + outer.style.overflow = 'scroll'; + + var inner = document.createElement('div'); + inner.style.width = '100%'; + outer.appendChild(inner); + + var widthWithScroll = inner.offsetWidth; + outer.parentNode.removeChild(outer); + + return widthNoScroll - widthWithScroll; +}; + +var getDOM = function(dom) { + if (dom.nodeType === 3) { + dom = dom.nextElementSibling || dom.nextSibling; + getDOM(dom); + } + return dom; +}; + +/* harmony default export */ exports["a"] = { + props: { + value: { + type: Boolean, + default: false + }, + transition: { + type: String, + default: '' + }, + openDelay: {}, + closeDelay: {}, + zIndex: {}, + modal: { + type: Boolean, + default: false + }, + modalFade: { + type: Boolean, + default: true + }, + modalClass: { + }, + lockScroll: { + type: Boolean, + default: true + }, + closeOnPressEscape: { + type: Boolean, + default: false + }, + closeOnClickModal: { + type: Boolean, + default: false + } + }, + + created: function created() { + if (this.transition) { + hookTransition(this.transition); + } + }, + + beforeMount: function beforeMount() { + this._popupId = 'popup-' + idSeed++; + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].register(this._popupId, this); + }, + + beforeDestroy: function beforeDestroy() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].deregister(this._popupId); + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + if (this.modal && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') { + document.body.style.overflow = this.bodyOverflow; + document.body.style.paddingRight = this.bodyPaddingRight; + } + this.bodyOverflow = null; + this.bodyPaddingRight = null; + }, + + data: function data() { + return { + opened: false, + bodyOverflow: null, + bodyPaddingRight: null, + rendered: false + }; + }, + + watch: { + value: function value(val) { + var this$1 = this; + + if (val) { + if (this._opening) return; + if (!this.rendered) { + this.rendered = true; + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + this$1.open(); + }); + } else { + this.open(); + } + } else { + this.close(); + } + } + }, + + methods: { + open: function open(options) { + var this$1 = this; + + if (!this.rendered) { + this.rendered = true; + this.$emit('input', true); + } + + var props = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__["a" /* default */])({}, this, options, this.$props); + + if (this._closeTimer) { + clearTimeout(this._closeTimer); + this._closeTimer = null; + } + clearTimeout(this._openTimer); + + var openDelay = Number(props.openDelay); + if (openDelay > 0) { + this._openTimer = setTimeout(function () { + this$1._openTimer = null; + this$1.doOpen(props); + }, openDelay); + } else { + this.doOpen(props); + } + }, + + doOpen: function doOpen(props) { + if (this.$isServer) return; + if (this.willOpen && !this.willOpen()) return; + if (this.opened) return; + + this._opening = true; + + // 使用 vue-popup 的组件,如果需要和父组件通信显示的状态,应该使用 value,它是一个 prop, + // 这样在父组件中用 v-model 即可;否则可以使用 visible,它是一个 data + this.visible = true; + this.$emit('input', true); + + var dom = getDOM(this.$el); + + var modal = props.modal; + + var zIndex = props.zIndex; + if (zIndex) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].zIndex = zIndex; + } + + if (modal) { + if (this._closing) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].openModal(this._popupId, __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(), dom, props.modalClass, props.modalFade); + if (props.lockScroll) { + if (!this.bodyOverflow) { + this.bodyPaddingRight = document.body.style.paddingRight; + this.bodyOverflow = document.body.style.overflow; + } + scrollBarWidth = getScrollBarWidth(); + var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight; + if (scrollBarWidth > 0 && bodyHasOverflow) { + document.body.style.paddingRight = scrollBarWidth + 'px'; + } + document.body.style.overflow = 'hidden'; + } + } + + if (getComputedStyle(dom).position === 'static') { + dom.style.position = 'absolute'; + } + + dom.style.zIndex = __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(); + this.opened = true; + + this.onOpen && this.onOpen(); + + if (!this.transition) { + this.doAfterOpen(); + } + }, + + doAfterOpen: function doAfterOpen() { + this._opening = false; + }, + + close: function close() { + var this$1 = this; + + if (this.willClose && !this.willClose()) return; + + if (this._openTimer !== null) { + clearTimeout(this._openTimer); + this._openTimer = null; + } + clearTimeout(this._closeTimer); + + var closeDelay = Number(this.closeDelay); + + if (closeDelay > 0) { + this._closeTimer = setTimeout(function () { + this$1._closeTimer = null; + this$1.doClose(); + }, closeDelay); + } else { + this.doClose(); + } + }, + + doClose: function doClose() { + var this$1 = this; + + this.visible = false; + this.$emit('input', false); + this._closing = true; + + this.onClose && this.onClose(); + + if (this.lockScroll) { + setTimeout(function () { + if (this$1.modal && this$1.bodyOverflow !== 'hidden') { + document.body.style.overflow = this$1.bodyOverflow; + document.body.style.paddingRight = this$1.bodyPaddingRight; + } + this$1.bodyOverflow = null; + this$1.bodyPaddingRight = null; + }, 200); + } + + this.opened = false; + + if (!this.transition) { + this.doAfterClose(); + } + }, + + doAfterClose: function doAfterClose() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + } +}; + + + + +/***/ }, +/* 7 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_picker_vue__ = __webpack_require__(145); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_picker_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_picker_vue___default.a; }); + + + +/***/ }, +/* 8 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_popup_vue__ = __webpack_require__(146); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_popup_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_popup_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_popup_vue___default.a; }); + + + +/***/ }, +/* 9 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner__ = __webpack_require__(151); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_spinner__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_spinner___default.a; }); + + + +/***/ }, +/* 10 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/** + * v-clickoutside + * @desc 点击元素外面才会触发的事件 + * @example + * ```vue + *
+ * ``` + */ +var clickoutsideContext = '@@clickoutsideContext'; + +/* harmony default export */ exports["a"] = { + bind: function bind(el, binding, vnode) { + var documentHandler = function(e) { + if (vnode.context && !el.contains(e.target)) { + vnode.context[el[clickoutsideContext].methodName](); + } + }; + el[clickoutsideContext] = { + documentHandler: documentHandler, + methodName: binding.expression, + arg: binding.arg || 'click' + }; + document.addEventListener(el[clickoutsideContext].arg, documentHandler); + }, + + update: function update(el, binding) { + el[clickoutsideContext].methodName = binding.expression; + }, + + unbind: function unbind(el) { + document.removeEventListener( + el[clickoutsideContext].arg, + el[clickoutsideContext].documentHandler); + }, + + install: function install(Vue) { + Vue.directive('clickoutside', { + bind: this.bind, + unbind: this.unbind + }); + } +}; + + +/***/ }, +/* 11 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony default export */ exports["a"] = function(target) { + var arguments$1 = arguments; + + for (var i = 1, j = arguments.length; i < j; i++) { + var source = arguments$1[i] || {}; + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + var value = source[prop]; + if (value !== undefined) { + target[prop] = value; + } + } + } + } + + return target; +};; + + +/***/ }, +/* 12 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 13 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(104) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(41), + /* template */ + __webpack_require__(175), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 14 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__packages_header__ = __webpack_require__(59); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__packages_button__ = __webpack_require__(54); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__packages_cell__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__ = __webpack_require__(55); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__packages_field__ = __webpack_require__(58); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__packages_badge__ = __webpack_require__(53); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__packages_switch__ = __webpack_require__(82); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__packages_spinner__ = __webpack_require__(9); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__packages_tab_item__ = __webpack_require__(85); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__ = __webpack_require__(83); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__packages_tab_container__ = __webpack_require__(84); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__packages_navbar__ = __webpack_require__(71); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__packages_tabbar__ = __webpack_require__(86); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__packages_search__ = __webpack_require__(79); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__packages_checklist__ = __webpack_require__(56); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__packages_radio__ = __webpack_require__(76); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__packages_loadmore__ = __webpack_require__(68); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__ = __webpack_require__(52); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__packages_popup__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__packages_swipe__ = __webpack_require__(81); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__ = __webpack_require__(80); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__packages_range__ = __webpack_require__(77); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__packages_picker__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__packages_progress__ = __webpack_require__(75); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__packages_toast__ = __webpack_require__(87); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__packages_indicator__ = __webpack_require__(62); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__packages_message_box__ = __webpack_require__(69); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__packages_infinite_scroll__ = __webpack_require__(63); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__packages_lazyload__ = __webpack_require__(66); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__ = __webpack_require__(57); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__packages_index_list__ = __webpack_require__(60); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__packages_index_section__ = __webpack_require__(61); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__packages_palette_button__ = __webpack_require__(72); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__src_assets_font_iconfont_css__ = __webpack_require__(91); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__src_assets_font_iconfont_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_33__src_assets_font_iconfont_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__utils_merge__ = __webpack_require__(11); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +var version = '2.2.13'; +var install = function(Vue, config) { + if ( config === void 0 ) config = {}; + + if (install.installed) return; + + Vue.component(__WEBPACK_IMPORTED_MODULE_0__packages_header__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_0__packages_header__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_1__packages_button__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_1__packages_button__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_2__packages_cell__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_2__packages_cell__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_4__packages_field__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_4__packages_field__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_5__packages_badge__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_5__packages_badge__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_6__packages_switch__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_6__packages_switch__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_7__packages_spinner__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_7__packages_spinner__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_8__packages_tab_item__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_8__packages_tab_item__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_10__packages_tab_container__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_10__packages_tab_container__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_11__packages_navbar__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_11__packages_navbar__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_12__packages_tabbar__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_12__packages_tabbar__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_13__packages_search__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_13__packages_search__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_14__packages_checklist__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_14__packages_checklist__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_15__packages_radio__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_15__packages_radio__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_16__packages_loadmore__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_16__packages_loadmore__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_18__packages_popup__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_18__packages_popup__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_19__packages_swipe__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_19__packages_swipe__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_21__packages_range__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_21__packages_range__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_22__packages_picker__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_22__packages_picker__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_23__packages_progress__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_23__packages_progress__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_30__packages_index_list__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_30__packages_index_list__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_31__packages_index_section__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_31__packages_index_section__["a" /* default */]); + Vue.component(__WEBPACK_IMPORTED_MODULE_32__packages_palette_button__["a" /* default */].name, __WEBPACK_IMPORTED_MODULE_32__packages_palette_button__["a" /* default */]); + Vue.use(__WEBPACK_IMPORTED_MODULE_27__packages_infinite_scroll__["a" /* default */]); + Vue.use(__WEBPACK_IMPORTED_MODULE_28__packages_lazyload__["a" /* default */], __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_34__utils_merge__["a" /* default */])({ + loading: __webpack_require__(127), + attempt: 3 + }, config.lazyload)); + + Vue.$messagebox = Vue.prototype.$messagebox = __WEBPACK_IMPORTED_MODULE_26__packages_message_box__["a" /* default */]; + Vue.$toast = Vue.prototype.$toast = __WEBPACK_IMPORTED_MODULE_24__packages_toast__["a" /* default */]; + Vue.$indicator = Vue.prototype.$indicator = __WEBPACK_IMPORTED_MODULE_25__packages_indicator__["a" /* default */]; +}; + +// auto install +if (typeof window !== 'undefined' && window.Vue) { + install(window.Vue); +}; + +module.exports = { + install: install, + version: version, + Header: __WEBPACK_IMPORTED_MODULE_0__packages_header__["a" /* default */], + Button: __WEBPACK_IMPORTED_MODULE_1__packages_button__["a" /* default */], + Cell: __WEBPACK_IMPORTED_MODULE_2__packages_cell__["a" /* default */], + CellSwipe: __WEBPACK_IMPORTED_MODULE_3__packages_cell_swipe__["a" /* default */], + Field: __WEBPACK_IMPORTED_MODULE_4__packages_field__["a" /* default */], + Badge: __WEBPACK_IMPORTED_MODULE_5__packages_badge__["a" /* default */], + Switch: __WEBPACK_IMPORTED_MODULE_6__packages_switch__["a" /* default */], + Spinner: __WEBPACK_IMPORTED_MODULE_7__packages_spinner__["a" /* default */], + TabItem: __WEBPACK_IMPORTED_MODULE_8__packages_tab_item__["a" /* default */], + TabContainerItem: __WEBPACK_IMPORTED_MODULE_9__packages_tab_container_item__["a" /* default */], + TabContainer: __WEBPACK_IMPORTED_MODULE_10__packages_tab_container__["a" /* default */], + Navbar: __WEBPACK_IMPORTED_MODULE_11__packages_navbar__["a" /* default */], + Tabbar: __WEBPACK_IMPORTED_MODULE_12__packages_tabbar__["a" /* default */], + Search: __WEBPACK_IMPORTED_MODULE_13__packages_search__["a" /* default */], + Checklist: __WEBPACK_IMPORTED_MODULE_14__packages_checklist__["a" /* default */], + Radio: __WEBPACK_IMPORTED_MODULE_15__packages_radio__["a" /* default */], + Loadmore: __WEBPACK_IMPORTED_MODULE_16__packages_loadmore__["a" /* default */], + Actionsheet: __WEBPACK_IMPORTED_MODULE_17__packages_actionsheet__["a" /* default */], + Popup: __WEBPACK_IMPORTED_MODULE_18__packages_popup__["a" /* default */], + Swipe: __WEBPACK_IMPORTED_MODULE_19__packages_swipe__["a" /* default */], + SwipeItem: __WEBPACK_IMPORTED_MODULE_20__packages_swipe_item__["a" /* default */], + Range: __WEBPACK_IMPORTED_MODULE_21__packages_range__["a" /* default */], + Picker: __WEBPACK_IMPORTED_MODULE_22__packages_picker__["a" /* default */], + Progress: __WEBPACK_IMPORTED_MODULE_23__packages_progress__["a" /* default */], + Toast: __WEBPACK_IMPORTED_MODULE_24__packages_toast__["a" /* default */], + Indicator: __WEBPACK_IMPORTED_MODULE_25__packages_indicator__["a" /* default */], + MessageBox: __WEBPACK_IMPORTED_MODULE_26__packages_message_box__["a" /* default */], + InfiniteScroll: __WEBPACK_IMPORTED_MODULE_27__packages_infinite_scroll__["a" /* default */], + Lazyload: __WEBPACK_IMPORTED_MODULE_28__packages_lazyload__["a" /* default */], + DatetimePicker: __WEBPACK_IMPORTED_MODULE_29__packages_datetime_picker__["a" /* default */], + IndexList: __WEBPACK_IMPORTED_MODULE_30__packages_index_list__["a" /* default */], + IndexSection: __WEBPACK_IMPORTED_MODULE_31__packages_index_section__["a" /* default */], + PaletteButton: __WEBPACK_IMPORTED_MODULE_32__packages_palette_button__["a" /* default */] +}; + + +/***/ }, +/* 15 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css__ = __webpack_require__(12); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_popup_css__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ exports["default"] = { + name: 'mt-actionsheet', + + mixins: [__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */]], + + props: { + modal: { + default: true + }, + + modalFade: { + default: false + }, + + lockScroll: { + default: false + }, + + closeOnClickModal: { + default: true + }, + + cancelText: { + type: String, + default: '取消' + }, + + actions: { + type: Array, + default: function () { return []; } + } + }, + + data: function data() { + return { + currentValue: false + }; + }, + + watch: { + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + value: function value(val) { + this.currentValue = val; + } + }, + + methods: { + itemClick: function itemClick(item, index) { + if (item.method && typeof item.method === 'function') { + item.method(item, index); + } + this.currentValue = false; + } + }, + + mounted: function mounted() { + if (this.value) { + this.rendered = true; + this.currentValue = true; + this.open(); + } + } +}; + + +/***/ }, +/* 16 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// + +/** + * mt-badge + * @module components/badge + * @desc 徽章 + * @param {string} [type=primary] 组件样式,可选 primary, error, success, warning + * @param {string} [color] - 传入颜色值 + * @param {string} [size=normal] - 尺寸,接受 normal, small, large + * + * @example + * 错误 + * 30 + */ +/* harmony default export */ exports["default"] = { + name: 'mt-badge', + + props: { + color: String, + type: { + type: String, + default: 'primary' + }, + size: { + type: String, + default: 'normal' + } + } +}; + + +/***/ }, +/* 17 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +if (false) { + require('mint-ui/packages/font/style.css'); +} + +/** + * mt-header + * @module components/button + * @desc 按钮 + * @param {string} [type=default] - 显示类型,接受 default, primary, danger + * @param {boolean} [disabled=false] - 禁用 + * @param {boolean} [plain=false] - 幽灵按钮 + * @param {string} [size=normal] - 尺寸,接受 normal, small, large + * @param {string} [native-type] - 原生 type 属性 + * @param {string} [icon] - 图标,提供 more, back,或者自定义的图标(传入不带前缀的图标类名,最后拼接成 .mintui-xxx) + * @param {slot} - 显示文本 + * @param {slot} [icon] 显示图标 + * + * @example + * 按钮 + */ +/* harmony default export */ exports["default"] = { + name: 'mt-button', + + methods: { + handleClick: function handleClick(evt) { + this.$emit('click', evt); + } + }, + + props: { + icon: String, + disabled: Boolean, + nativeType: String, + plain: Boolean, + type: { + type: String, + default: 'default', + validator: function validator(value) { + return [ + 'default', + 'danger', + 'primary' + ].indexOf(value) > -1; + } + }, + size: { + type: String, + default: 'normal', + validator: function validator$1(value) { + return [ + 'small', + 'normal', + 'large' + ].indexOf(value) > -1; + } + } + } +}; + + +/***/ }, +/* 18 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_clickoutside__ = __webpack_require__(10); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +if (false) { + require('mint-ui/packages/cell/style.css'); +} + +/** + * mt-cell-swipe + * @desc 类似 iOS 滑动 Cell 的效果 + * @module components/cell-swipe + * + * @example + * console.log(123) + * } + * ] + * :right=[{ content: 'allowed HTML' }]> + * swipe me + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-cell-swipe', + + components: { XCell: __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_cell_index_js__["a" /* default */] }, + + directives: { Clickoutside: __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_clickoutside__["a" /* default */] }, + + props: { + to: String, + left: Array, + right: Array, + icon: String, + title: String, + label: String, + isLink: Boolean, + value: {} + }, + + data: function data() { + return { + start: { x: 0, y: 0 } + }; + }, + + mounted: function mounted() { + this.wrap = this.$refs.cell.$el.querySelector('.mint-cell-wrapper'); + this.leftElm = this.$refs.left; + this.rightElm = this.$refs.right; + this.leftWrapElm = this.leftElm.parentNode; + this.rightWrapElm = this.rightElm.parentNode; + this.leftWidth = this.leftElm.getBoundingClientRect().width; + this.rightWidth = this.rightElm.getBoundingClientRect().width; + + this.leftDefaultTransform = this.translate3d(-this.leftWidth - 1); + this.rightDefaultTransform = this.translate3d(this.rightWidth); + + this.rightWrapElm.style.webkitTransform = this.rightDefaultTransform; + this.leftWrapElm.style.webkitTransform = this.leftDefaultTransform; + }, + + methods: { + resetSwipeStatus: function resetSwipeStatus() { + this.swiping = false; + this.opened = true; + this.offsetLeft = 0; + }, + + translate3d: function translate3d(offset) { + return ("translate3d(" + offset + "px, 0, 0)"); + }, + + setAnimations: function setAnimations(val) { + this.wrap.style.transitionDuration = val; + this.rightWrapElm.style.transitionDuration = val; + this.leftWrapElm.style.transitionDuration = val; + }, + + swipeMove: function swipeMove(offset) { + if ( offset === void 0 ) offset = 0; + + this.wrap.style.webkitTransform = this.translate3d(offset); + this.rightWrapElm.style.webkitTransform = this.translate3d(this.rightWidth + offset); + this.leftWrapElm.style.webkitTransform = this.translate3d(-this.leftWidth + offset); + offset && (this.swiping = true); + }, + + swipeLeaveTransition: function swipeLeaveTransition(direction) { + var this$1 = this; + + setTimeout(function () { + this$1.swipeLeave = true; + + // left + if (direction > 0 && -this$1.offsetLeft > this$1.rightWidth * 0.4) { + this$1.swipeMove(-this$1.rightWidth); + this$1.resetSwipeStatus(); + return; + // right + } else if (direction < 0 && this$1.offsetLeft > this$1.leftWidth * 0.4) { + this$1.swipeMove(this$1.leftWidth); + this$1.resetSwipeStatus(); + return; + } + + this$1.swipeMove(0); + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(this$1.wrap, 'webkitTransitionEnd', function (_) { + this$1.wrap.style.webkitTransform = ''; + this$1.rightWrapElm.style.webkitTransform = this$1.rightDefaultTransform; + this$1.leftWrapElm.style.webkitTransform = this$1.leftDefaultTransform; + this$1.swipeLeave = false; + this$1.swiping = false; + }); + }, 0); + }, + + startDrag: function startDrag(evt) { + evt = evt.changedTouches ? evt.changedTouches[0] : evt; + this.dragging = true; + this.start.x = evt.pageX; + this.start.y = evt.pageY; + this.direction = ''; + }, + + onDrag: function onDrag(evt) { + if (this.opened) { + if (!this.swiping) { + this.swipeMove(0); + this.setAnimations(''); + } + this.opened = false; + return; + } + if (!this.dragging) return; + + var swiping; + var e = evt.changedTouches ? evt.changedTouches[0] : evt; + var offsetTop = e.pageY - this.start.y; + var offsetLeft = this.offsetLeft = e.pageX - this.start.x; + + var y = Math.abs(offsetTop); + var x = Math.abs(offsetLeft); + + this.setAnimations('0ms'); + + if (this.direction === '') { + this.direction = x > y ? 'horizonal' : 'vertical'; + } + + if (this.direction === 'horizonal') { + evt.preventDefault(); + evt.stopPropagation(); + + swiping = !(x < 5 || (x >= 5 && y >= x * 1.73)); + if (!swiping) return; + + if ((offsetLeft < 0 && -offsetLeft > this.rightWidth) || + (offsetLeft > 0 && offsetLeft > this.leftWidth) || + (offsetLeft > 0 && !this.leftWidth) || + (offsetLeft < 0 && !this.rightWidth)) { + } else { + this.swipeMove(offsetLeft); + } + } + }, + + endDrag: function endDrag() { + this.direction = ''; + this.setAnimations(''); + if (!this.swiping) return; + this.swipeLeaveTransition(this.offsetLeft > 0 ? -1 : 1); + } + } +}; + + +/***/ }, +/* 19 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +if (false) { + require('mint-ui/packages/font/style.css'); +} + +/** + * mt-cell + * @module components/cell + * @desc 单元格 + * @param {string|Object} [to] - 跳转链接,使用 vue-router 的情况下 to 会传递给 router.push,否则作为 a 标签的 href 属性处理 + * @param {string} [icon] - 图标,提供 more, back,或者自定义的图标(传入不带前缀的图标类名,最后拼接成 .mintui-xxx) + * @param {string} [title] - 标题 + * @param {string} [label] - 备注信息 + * @param {boolean} [is-link=false] - 可点击的链接 + * @param {string} [value] - 右侧显示文字 + * @param {slot} - 同 value, 会覆盖 value 属性 + * @param {slot} [title] - 同 title, 会覆盖 title 属性 + * @param {slot} [icon] - 同 icon, 会覆盖 icon 属性,例如可以传入图片 + * + * @example + * + * + *
描述文字啊哈
+ *
+ */ +/* harmony default export */ exports["default"] = { + name: 'mt-cell', + + props: { + to: [String, Object], + icon: String, + title: String, + label: String, + isLink: Boolean, + value: {} + }, + + computed: { + href: function href() { + var this$1 = this; + + if (this.to && !this.added && this.$router) { + var resolved = this.$router.match(this.to); + if (!resolved.matched.length) return this.to; + + this.$nextTick(function () { + this$1.added = true; + this$1.$el.addEventListener('click', this$1.handleClick); + }); + return resolved.fullPath || resolved.path; + } + return this.to; + } + }, + + methods: { + handleClick: function handleClick($event) { + $event.preventDefault(); + this.$router.push(this.href); + } + } +}; + + +/***/ }, +/* 20 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (false) { + require('mint-ui/packages/cell/style.css'); +} + +/** + * mt-checklist + * @module components/checklist + * @desc 复选框列表,依赖 cell 组件 + * + * @param {(string[]|object[])} options - 选项数组,可以传入 [{label: 'label', value: 'value', disabled: true}] 或者 ['ab', 'cd', 'ef'] + * @param {string[]} value - 选中值的数组 + * @param {string} title - 标题 + * @param {number} [max] - 最多可选的个数 + * @param {string} [align=left] - checkbox 对齐位置,`left`, `right` + * + * + * @example + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-checklist', + + props: { + max: Number, + title: String, + align: String, + options: { + type: Array, + required: true + }, + value: Array + }, + + components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */] }, + + data: function data() { + return { + currentValue: this.value + }; + }, + + computed: { + limit: function limit() { + return this.max < this.currentValue.length; + } + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + currentValue: function currentValue(val) { + if (this.limit) val.pop(); + this.$emit('input', val); + } + } +}; + + +/***/ }, +/* 21 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js__ = __webpack_require__(8); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +if (false) { + require('mint-ui/packages/picker/style.css'); + require('mint-ui/packages/popup/style.css'); +} + +var FORMAT_MAP = { + Y: 'year', + M: 'month', + D: 'date', + H: 'hour', + m: 'minute' +}; + +/* harmony default export */ exports["default"] = { + name: 'mt-datetime-picker', + + props: { + cancelText: { + type: String, + default: '取消' + }, + confirmText: { + type: String, + default: '确定' + }, + type: { + type: String, + default: 'datetime' + }, + startDate: { + type: Date, + default: function default$1() { + return new Date(new Date().getFullYear() - 10, 0, 1); + } + }, + endDate: { + type: Date, + default: function default$2() { + return new Date(new Date().getFullYear() + 10, 11, 31); + } + }, + startHour: { + type: Number, + default: 0 + }, + endHour: { + type: Number, + default: 23 + }, + yearFormat: { + type: String, + default: '{value}' + }, + monthFormat: { + type: String, + default: '{value}' + }, + dateFormat: { + type: String, + default: '{value}' + }, + hourFormat: { + type: String, + default: '{value}' + }, + minuteFormat: { + type: String, + default: '{value}' + }, + visibleItemCount: { + type: Number, + default: 7 + }, + closeOnClickModal: { + type: Boolean, + default: true + }, + value: null + }, + + data: function data() { + return { + visible: false, + startYear: null, + endYear: null, + startMonth: 1, + endMonth: 12, + startDay: 1, + endDay: 31, + currentValue: null, + selfTriggered: false, + dateSlots: [], + shortMonthDates: [], + longMonthDates: [], + febDates: [], + leapFebDates: [] + }; + }, + + components: { + 'mt-picker': __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_picker_index_js__["a" /* default */], + 'mt-popup': __WEBPACK_IMPORTED_MODULE_1_mint_ui_packages_popup_index_js__["a" /* default */] + }, + + methods: { + open: function open() { + this.visible = true; + }, + + close: function close() { + this.visible = false; + }, + + isLeapYear: function isLeapYear(year) { + return (year % 400 === 0) || (year % 100 !== 0 && year % 4 === 0); + }, + + isShortMonth: function isShortMonth(month) { + return [4, 6, 9, 11].indexOf(month) > -1; + }, + + getMonthEndDay: function getMonthEndDay(year, month) { + if (this.isShortMonth(month)) { + return 30; + } else if (month === 2) { + return this.isLeapYear(year) ? 29 : 28; + } else { + return 31; + } + }, + + getTrueValue: function getTrueValue(formattedValue) { + if (!formattedValue) return; + while (isNaN(parseInt(formattedValue, 10))) { + formattedValue = formattedValue.slice(1); + } + return parseInt(formattedValue, 10); + }, + + getValue: function getValue(values) { + var this$1 = this; + + var value; + if (this.type === 'time') { + value = values.map(function (value) { return ('0' + this$1.getTrueValue(value)).slice(-2); }).join(':'); + } else { + var year = this.getTrueValue(values[0]); + var month = this.getTrueValue(values[1]); + var date = this.getTrueValue(values[2]); + var maxDate = this.getMonthEndDay(year, month); + if (date > maxDate) { + this.selfTriggered = true; + date = 1; + } + var hour = this.typeStr.indexOf('H') > -1 ? this.getTrueValue(values[this.typeStr.indexOf('H')]) : 0; + var minute = this.typeStr.indexOf('m') > -1 ? this.getTrueValue(values[this.typeStr.indexOf('m')]) : 0; + value = new Date(year, month - 1, date, hour, minute); + } + return value; + }, + + onChange: function onChange(picker) { + var values = picker.$children.filter(function (child) { return child.currentValue !== undefined; }).map(function (child) { return child.currentValue; }); + if (this.selfTriggered) { + this.selfTriggered = false; + return; + } + if (values.length !== 0) { + this.currentValue = this.getValue(values); + this.handleValueChange(); + } + }, + + fillValues: function fillValues(type, start, end) { + var this$1 = this; + + var values = []; + for (var i = start; i <= end; i++) { + if (i < 10) { + values.push(this$1[((FORMAT_MAP[type]) + "Format")].replace('{value}', ('0' + i).slice(-2))); + } else { + values.push(this$1[((FORMAT_MAP[type]) + "Format")].replace('{value}', i)); + } + } + return values; + }, + + pushSlots: function pushSlots(slots, type, start, end) { + slots.push({ + flex: 1, + values: this.fillValues(type, start, end) + }); + }, + + generateSlots: function generateSlots() { + var this$1 = this; + + var dateSlots = []; + var INTERVAL_MAP = { + Y: this.rims.year, + M: this.rims.month, + D: this.rims.date, + H: this.rims.hour, + m: this.rims.min + }; + var typesArr = this.typeStr.split(''); + typesArr.forEach(function (type) { + if (INTERVAL_MAP[type]) { + this$1.pushSlots.apply(null, [dateSlots, type].concat(INTERVAL_MAP[type])); + } + }); + if (this.typeStr === 'Hm') { + dateSlots.splice(1, 0, { + divider: true, + content: ':' + }); + } + this.dateSlots = dateSlots; + this.handleExceededValue(); + }, + + handleExceededValue: function handleExceededValue() { + var this$1 = this; + + var values = []; + if (this.type === 'time') { + var currentValue = this.currentValue.split(':'); + values = [ + this.hourFormat.replace('{value}', currentValue[0]), + this.minuteFormat.replace('{value}', currentValue[1]) + ]; + } else { + values = [ + this.yearFormat.replace('{value}', this.getYear(this.currentValue)), + this.monthFormat.replace('{value}', ('0' + this.getMonth(this.currentValue)).slice(-2)), + this.dateFormat.replace('{value}', ('0' + this.getDate(this.currentValue)).slice(-2)) + ]; + if (this.type === 'datetime') { + values.push( + this.hourFormat.replace('{value}', ('0' + this.getHour(this.currentValue)).slice(-2)), + this.minuteFormat.replace('{value}', ('0' + this.getMinute(this.currentValue)).slice(-2)) + ); + } + } + this.dateSlots.filter(function (child) { return child.values !== undefined; }) + .map(function (slot) { return slot.values; }).forEach(function (slotValues, index) { + if (slotValues.indexOf(values[index]) === -1) { + values[index] = slotValues[0]; + } + }); + this.$nextTick(function () { + this$1.setSlotsByValues(values); + }); + }, + + setSlotsByValues: function setSlotsByValues(values) { + var setSlotValue = this.$refs.picker.setSlotValue; + if (this.type === 'time') { + setSlotValue(0, values[0]); + setSlotValue(1, values[1]); + } + if (this.type !== 'time') { + setSlotValue(0, values[0]); + setSlotValue(1, values[1]); + setSlotValue(2, values[2]); + if (this.type === 'datetime') { + setSlotValue(3, values[3]); + setSlotValue(4, values[4]); + } + } + [].forEach.call(this.$refs.picker.$children, function (child) { return child.doOnValueChange(); }); + }, + + rimDetect: function rimDetect(result, rim) { + var position = rim === 'start' ? 0 : 1; + var rimDate = rim === 'start' ? this.startDate : this.endDate; + if (this.getYear(this.currentValue) === rimDate.getFullYear()) { + result.month[position] = rimDate.getMonth() + 1; + if (this.getMonth(this.currentValue) === rimDate.getMonth() + 1) { + result.date[position] = rimDate.getDate(); + if (this.getDate(this.currentValue) === rimDate.getDate()) { + result.hour[position] = rimDate.getHours(); + if (this.getHour(this.currentValue) === rimDate.getHours()) { + result.min[position] = rimDate.getMinutes(); + } + } + } + } + }, + + isDateString: function isDateString(str) { + return /\d{4}(\-|\/|.)\d{1,2}\1\d{1,2}/.test(str); + }, + + getYear: function getYear(value) { + return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[0] : value.getFullYear(); + }, + + getMonth: function getMonth(value) { + return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[1] : value.getMonth() + 1; + }, + + getDate: function getDate(value) { + return this.isDateString(value) ? value.split(' ')[0].split(/-|\/|\./)[2] : value.getDate(); + }, + + getHour: function getHour(value) { + if (this.isDateString(value)) { + var str = value.split(' ')[1] || '00:00:00'; + return str.split(':')[0]; + } + return value.getHours(); + }, + + getMinute: function getMinute(value) { + if (this.isDateString(value)) { + var str = value.split(' ')[1] || '00:00:00'; + return str.split(':')[1]; + } + return value.getMinutes(); + }, + + confirm: function confirm() { + this.visible = false; + this.$emit('confirm', this.currentValue); + }, + + handleValueChange: function handleValueChange() { + this.$emit('input', this.currentValue); + } + }, + + computed: { + rims: function rims() { + if (!this.currentValue) return { year: [], month: [], date: [], hour: [], min: [] }; + var result; + if (this.type === 'time') { + result = { + hour: [this.startHour, this.endHour], + min: [0, 59] + }; + return result; + } + result = { + year: [this.startDate.getFullYear(), this.endDate.getFullYear()], + month: [1, 12], + date: [1, this.getMonthEndDay(this.getYear(this.currentValue), this.getMonth(this.currentValue))], + hour: [0, 23], + min: [0, 59] + }; + this.rimDetect(result, 'start'); + this.rimDetect(result, 'end'); + return result; + }, + + typeStr: function typeStr() { + if (this.type === 'time') { + return 'Hm'; + } else if (this.type === 'date') { + return 'YMD'; + } else { + return 'YMDHm'; + } + } + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + rims: function rims$1() { + this.generateSlots(); + }, + + visible: function visible(val) { + this.$emit('visible-change', val); + } + }, + + mounted: function mounted() { + this.currentValue = this.value; + if (!this.value) { + if (this.type.indexOf('date') > -1) { + this.currentValue = this.startDate; + } else { + this.currentValue = (('0' + this.startHour).slice(-2)) + ":00"; + } + } + this.generateSlots(); + } +}; + + +/***/ }, +/* 22 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_clickoutside__ = __webpack_require__(10); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +if (false) { + require('mint-ui/packages/cell/style.css'); +} + +/** + * mt-field + * @desc 编辑器,依赖 cell + * @module components/field + * + * @param {string} [type=text] - field 类型,接受 text, textarea 等 + * @param {string} [label] - 标签 + * @param {string} [rows] - textarea 的 rows + * @param {string} [placeholder] - placeholder + * @param {string} [disabled] - disabled + * @param {string} [readonly] - readonly + * @param {string} [state] - 表单校验状态样式,接受 error, warning, success + * + * @example + * + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-field', + + data: function data() { + return { + active: false, + currentValue: this.value + }; + }, + + directives: { + Clickoutside: __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_clickoutside__["a" /* default */] + }, + + props: { + type: { + type: String, + default: 'text' + }, + rows: String, + label: String, + placeholder: String, + readonly: Boolean, + disabled: Boolean, + disableClear: Boolean, + state: { + type: String, + default: 'default' + }, + value: {}, + attr: Object + }, + + components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */] }, + + methods: { + doCloseActive: function doCloseActive() { + this.active = false; + }, + + handleInput: function handleInput(evt) { + this.currentValue = evt.target.value; + }, + + handleClear: function handleClear() { + if (this.disabled || this.readonly) return; + this.currentValue = ''; + } + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + attr: { + immediate: true, + handler: function handler(attrs) { + var this$1 = this; + + this.$nextTick(function () { + var target = [this$1.$refs.input, this$1.$refs.textarea]; + target.forEach(function (el) { + if (!el || !attrs) return; + Object.keys(attrs).map(function (name) { return el.setAttribute(name, attrs[name]); }); + }); + }); + } + } + } +}; + + +/***/ }, +/* 23 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/** + * mt-header + * @module components/header + * @desc 顶部导航 + * @param {boolean} [fixed=false] - 固定顶部 + * @param {string} [title] - 标题 + * @param {slot} [left] - 显示在左侧区域 + * @param {slot} [right] - 显示在右侧区域 + * + * @example + * + * 返回 + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-header', + + props: { + fixed: Boolean, + title: String + } +}; + + +/***/ }, +/* 24 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-index-list', + + props: { + height: Number, + showIndicator: { + type: Boolean, + default: true + } + }, + + data: function data() { + return { + sections: [], + navWidth: 0, + indicatorTime: null, + moving: false, + firstSection: null, + currentIndicator: '', + currentHeight: this.height, + navOffsetX: 0 + }; + }, + + watch: { + sections: function sections() { + this.init(); + }, + height: function height(val) { + if (val) { + this.currentHeight = val; + } + } + }, + + methods: { + init: function init() { + var this$1 = this; + + this.$nextTick(function () { + this$1.navWidth = this$1.$refs.nav.clientWidth; + }); + var listItems = this.$refs.content.getElementsByTagName('li'); + if (listItems.length > 0) { + this.firstSection = listItems[0]; + } + }, + + handleTouchStart: function handleTouchStart(e) { + if (e.target.tagName !== 'LI') { + return; + } + this.navOffsetX = e.changedTouches[0].clientX; + this.scrollList(e.changedTouches[0].clientY); + if (this.indicatorTime) { + clearTimeout(this.indicatorTime); + } + this.moving = true; + window.addEventListener('touchmove', this.handleTouchMove); + window.addEventListener('touchend', this.handleTouchEnd); + }, + + handleTouchMove: function handleTouchMove(e) { + e.preventDefault(); + this.scrollList(e.changedTouches[0].clientY); + }, + + handleTouchEnd: function handleTouchEnd() { + var this$1 = this; + + this.indicatorTime = setTimeout(function () { + this$1.moving = false; + this$1.currentIndicator = ''; + }, 500); + window.removeEventListener('touchmove', this.handleTouchMove); + window.removeEventListener('touchend', this.handleTouchEnd); + }, + + scrollList: function scrollList(y) { + var currentItem = document.elementFromPoint(this.navOffsetX, y); + if (!currentItem || !currentItem.classList.contains('mint-indexlist-navitem')) { + return; + } + this.currentIndicator = currentItem.innerText; + var targets = this.sections.filter(function (section) { return section.index === currentItem.innerText; }); + var targetDOM; + if (targets.length > 0) { + targetDOM = targets[0].$el; + this.$refs.content.scrollTop = targetDOM.getBoundingClientRect().top - this.firstSection.getBoundingClientRect().top; + } + } + }, + + mounted: function mounted() { + var this$1 = this; + + if (!this.currentHeight) { + window.scrollTo(0, 0); + requestAnimationFrame(function (){ + this$1.currentHeight = document.documentElement.clientHeight - this$1.$refs.content.getBoundingClientRect().top; + }); + } + this.init(); + } +}; + + +/***/ }, +/* 25 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-index-section', + + props: { + index: { + type: String, + required: true + } + }, + + mounted: function mounted() { + this.$parent.sections.push(this); + }, + + beforeDestroy: function beforeDestroy() { + var index = this.$parent.sections.indexOf(this); + if (index > -1) { + this.$parent.sections.splice(index, 1); + } + } +}; + + +/***/ }, +/* 26 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js__ = __webpack_require__(9); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (false) { + require('mint-ui/packages/spinner/style.css'); +} + +/* harmony default export */ exports["default"] = { + data: function data() { + return { + visible: false + }; + }, + + components: { + Spinner: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_index_js__["a" /* default */] + }, + + computed: { + convertedSpinnerType: function convertedSpinnerType() { + 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' + } + } +}; + + +/***/ }, +/* 27 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue__ = __webpack_require__(13); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +/* harmony default export */ exports["default"] = { + name: 'mt-loadmore', + components: { + 'spinner': __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_spinner_src_spinner_fading_circle_vue___default.a + }, + + props: { + maxDistance: { + type: Number, + default: 0 + }, + autoFill: { + type: Boolean, + default: true + }, + distanceIndex: { + type: Number, + default: 2 + }, + topPullText: { + type: String, + default: '下拉刷新' + }, + topDropText: { + type: String, + default: '释放更新' + }, + topLoadingText: { + type: String, + default: '加载中...' + }, + topDistance: { + type: Number, + default: 70 + }, + topMethod: { + type: Function + }, + bottomPullText: { + type: String, + default: '上拉刷新' + }, + bottomDropText: { + type: String, + default: '释放更新' + }, + bottomLoadingText: { + type: String, + default: '加载中...' + }, + bottomDistance: { + type: Number, + default: 70 + }, + bottomMethod: { + type: Function + }, + bottomAllLoaded: { + type: Boolean, + default: false + } + }, + + data: function data() { + return { + translate: 0, + scrollEventTarget: null, + containerFilled: false, + topText: '', + topDropped: false, + bottomText: '', + bottomDropped: false, + bottomReached: false, + direction: '', + startY: 0, + startScrollTop: 0, + currentY: 0, + topStatus: '', + bottomStatus: '' + }; + }, + + computed: { + transform: function transform() { + return this.translate === 0 ? null : 'translate3d(0, ' + this.translate + 'px, 0)'; + } + }, + + watch: { + topStatus: function topStatus(val) { + this.$emit('top-status-change', val); + switch (val) { + case 'pull': + this.topText = this.topPullText; + break; + case 'drop': + this.topText = this.topDropText; + break; + case 'loading': + this.topText = this.topLoadingText; + break; + } + }, + + bottomStatus: function bottomStatus(val) { + this.$emit('bottom-status-change', val); + switch (val) { + case 'pull': + this.bottomText = this.bottomPullText; + break; + case 'drop': + this.bottomText = this.bottomDropText; + break; + case 'loading': + this.bottomText = this.bottomLoadingText; + break; + } + } + }, + + methods: { + onTopLoaded: function onTopLoaded() { + var this$1 = this; + + this.translate = 0; + setTimeout(function () { + this$1.topStatus = 'pull'; + }, 200); + }, + + onBottomLoaded: function onBottomLoaded() { + var this$1 = this; + + this.bottomStatus = 'pull'; + this.bottomDropped = false; + this.$nextTick(function () { + if (this$1.scrollEventTarget === window) { + document.body.scrollTop += 50; + } else { + this$1.scrollEventTarget.scrollTop += 50; + } + this$1.translate = 0; + }); + if (!this.bottomAllLoaded && !this.containerFilled) { + this.fillContainer(); + } + }, + + getScrollEventTarget: function getScrollEventTarget(element) { + var currentNode = element; + while (currentNode && currentNode.tagName !== 'HTML' && + currentNode.tagName !== 'BODY' && currentNode.nodeType === 1) { + var overflowY = document.defaultView.getComputedStyle(currentNode).overflowY; + if (overflowY === 'scroll' || overflowY === 'auto') { + return currentNode; + } + currentNode = currentNode.parentNode; + } + return window; + }, + + getScrollTop: function getScrollTop(element) { + if (element === window) { + return Math.max(window.pageYOffset || 0, document.documentElement.scrollTop); + } else { + return element.scrollTop; + } + }, + + bindTouchEvents: function bindTouchEvents() { + this.$el.addEventListener('touchstart', this.handleTouchStart); + this.$el.addEventListener('touchmove', this.handleTouchMove); + this.$el.addEventListener('touchend', this.handleTouchEnd); + }, + + init: function init() { + this.topStatus = 'pull'; + this.bottomStatus = 'pull'; + this.topText = this.topPullText; + this.scrollEventTarget = this.getScrollEventTarget(this.$el); + if (typeof this.bottomMethod === 'function') { + this.fillContainer(); + this.bindTouchEvents(); + } + if (typeof this.topMethod === 'function') { + this.bindTouchEvents(); + } + }, + + fillContainer: function fillContainer() { + var this$1 = this; + + if (this.autoFill) { + this.$nextTick(function () { + if (this$1.scrollEventTarget === window) { + this$1.containerFilled = this$1.$el.getBoundingClientRect().bottom >= + document.documentElement.getBoundingClientRect().bottom; + } else { + this$1.containerFilled = this$1.$el.getBoundingClientRect().bottom >= + this$1.scrollEventTarget.getBoundingClientRect().bottom; + } + if (!this$1.containerFilled) { + this$1.bottomStatus = 'loading'; + this$1.bottomMethod(); + } + }); + } + }, + + checkBottomReached: function checkBottomReached() { + if (this.scrollEventTarget === window) { + return document.body.scrollTop + document.documentElement.clientHeight >= document.body.scrollHeight; + } else { + return this.$el.getBoundingClientRect().bottom <= this.scrollEventTarget.getBoundingClientRect().bottom + 1; + } + }, + + handleTouchStart: function handleTouchStart(event) { + this.startY = event.touches[0].clientY; + this.startScrollTop = this.getScrollTop(this.scrollEventTarget); + this.bottomReached = false; + if (this.topStatus !== 'loading') { + this.topStatus = 'pull'; + this.topDropped = false; + } + if (this.bottomStatus !== 'loading') { + this.bottomStatus = 'pull'; + this.bottomDropped = false; + } + }, + + handleTouchMove: function handleTouchMove(event) { + if (this.startY < this.$el.getBoundingClientRect().top && this.startY > this.$el.getBoundingClientRect().bottom) { + return; + } + this.currentY = event.touches[0].clientY; + var distance = (this.currentY - this.startY) / this.distanceIndex; + this.direction = distance > 0 ? 'down' : 'up'; + if (typeof this.topMethod === 'function' && this.direction === 'down' && + this.getScrollTop(this.scrollEventTarget) === 0 && this.topStatus !== 'loading') { + event.preventDefault(); + event.stopPropagation(); + if (this.maxDistance > 0) { + this.translate = distance <= this.maxDistance ? distance - this.startScrollTop : this.translate; + } else { + this.translate = distance - this.startScrollTop; + } + if (this.translate < 0) { + this.translate = 0; + } + this.topStatus = this.translate >= this.topDistance ? 'drop' : 'pull'; + } + + if (this.direction === 'up') { + this.bottomReached = this.bottomReached || this.checkBottomReached(); + } + if (typeof this.bottomMethod === 'function' && this.direction === 'up' && + this.bottomReached && this.bottomStatus !== 'loading' && !this.bottomAllLoaded) { + event.preventDefault(); + event.stopPropagation(); + if (this.maxDistance > 0) { + this.translate = Math.abs(distance) <= this.maxDistance + ? this.getScrollTop(this.scrollEventTarget) - this.startScrollTop + distance : this.translate; + } else { + this.translate = this.getScrollTop(this.scrollEventTarget) - this.startScrollTop + distance; + } + if (this.translate > 0) { + this.translate = 0; + } + this.bottomStatus = -this.translate >= this.bottomDistance ? 'drop' : 'pull'; + } + this.$emit('translate-change', this.translate); + }, + + handleTouchEnd: function handleTouchEnd() { + if (this.direction === 'down' && this.getScrollTop(this.scrollEventTarget) === 0 && this.translate > 0) { + this.topDropped = true; + if (this.topStatus === 'drop') { + this.translate = '50'; + this.topStatus = 'loading'; + this.topMethod(); + } else { + this.translate = '0'; + this.topStatus = 'pull'; + } + } + if (this.direction === 'up' && this.bottomReached && this.translate < 0) { + this.bottomDropped = true; + this.bottomReached = false; + if (this.bottomStatus === 'drop') { + this.translate = '-50'; + this.bottomStatus = 'loading'; + this.bottomMethod(); + } else { + this.translate = '0'; + this.bottomStatus = 'pull'; + } + } + this.$emit('translate-change', this.translate); + this.direction = ''; + } + }, + + mounted: function mounted() { + this.init(); + } +}; + + +/***/ }, +/* 28 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(6); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +var CONFIRM_TEXT = '确定'; +var CANCEL_TEXT = '取消'; + + + +/* harmony default export */ exports["default"] = { + mixins: [ __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */] ], + + props: { + modal: { + default: true + }, + showClose: { + type: Boolean, + default: true + }, + lockScroll: { + type: Boolean, + default: false + }, + closeOnClickModal: { + default: true + }, + closeOnPressEscape: { + default: true + }, + inputType: { + type: String, + default: 'text' + } + }, + + computed: { + confirmButtonClasses: function confirmButtonClasses() { + var classes = 'mint-msgbox-btn mint-msgbox-confirm ' + this.confirmButtonClass; + if (this.confirmButtonHighlight) { + classes += ' mint-msgbox-confirm-highlight'; + } + return classes; + }, + cancelButtonClasses: function cancelButtonClasses() { + var classes = 'mint-msgbox-btn mint-msgbox-cancel ' + this.cancelButtonClass; + if (this.cancelButtonHighlight) { + classes += ' mint-msgbox-cancel-highlight'; + } + return classes; + } + }, + + methods: { + doClose: function doClose() { + var this$1 = this; + + this.value = false; + this._closing = true; + + this.onClose && this.onClose(); + + setTimeout(function () { + if (this$1.modal && this$1.bodyOverflow !== 'hidden') { + document.body.style.overflow = this$1.bodyOverflow; + document.body.style.paddingRight = this$1.bodyPaddingRight; + } + this$1.bodyOverflow = null; + this$1.bodyPaddingRight = null; + }, 200); + this.opened = false; + + if (!this.transition) { + this.doAfterClose(); + } + }, + + handleAction: function handleAction(action) { + if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) { + return; + } + var callback = this.callback; + this.value = false; + callback(action); + }, + + validate: function validate() { + if (this.$type === 'prompt') { + var inputPattern = this.inputPattern; + if (inputPattern && !inputPattern.test(this.inputValue || '')) { + this.editorErrorMessage = this.inputErrorMessage || '输入的数据不合法!'; + this.$refs.input.classList.add('invalid'); + return false; + } + var inputValidator = this.inputValidator; + if (typeof inputValidator === 'function') { + var validateResult = inputValidator(this.inputValue); + if (validateResult === false) { + this.editorErrorMessage = this.inputErrorMessage || '输入的数据不合法!'; + this.$refs.input.classList.add('invalid'); + return false; + } + if (typeof validateResult === 'string') { + this.editorErrorMessage = validateResult; + return false; + } + } + } + this.editorErrorMessage = ''; + this.$refs.input.classList.remove('invalid'); + return true; + }, + + handleInputType: function handleInputType(val) { + if (val === 'range' || !this.$refs.input) return; + this.$refs.input.type = val; + } + }, + + watch: { + inputValue: function inputValue() { + if (this.$type === 'prompt') { + this.validate(); + } + }, + + value: function value(val) { + var this$1 = this; + + this.handleInputType(this.inputType); + if (val && this.$type === 'prompt') { + setTimeout(function () { + if (this$1.$refs.input) { + this$1.$refs.input.focus(); + } + }, 500); + } + }, + + inputType: function inputType(val) { + this.handleInputType(val); + } + }, + + data: function data() { + return { + title: '', + message: '', + type: '', + showInput: false, + inputValue: null, + inputPlaceholder: '', + inputPattern: null, + inputValidator: null, + inputErrorMessage: '', + showConfirmButton: true, + showCancelButton: false, + confirmButtonText: CONFIRM_TEXT, + cancelButtonText: CANCEL_TEXT, + confirmButtonClass: '', + confirmButtonDisabled: false, + cancelButtonClass: '', + editorErrorMessage: null, + callback: null + }; + } +}; + + +/***/ }, +/* 29 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// + +/** + * mt-navbar + * @module components/navbar + * @desc 顶部 tab,依赖 tab-item + * + * @param {boolean} [fixed=false] - 固定底部 + * @param {*} selected - 返回 item component 传入的 value + * + * @example + * + * + * 订单 + * + * + * + * + * + * 订单 + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-navbar', + + props: { + fixed: Boolean, + value: {} + } +}; + + +/***/ }, +/* 30 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-palette-button', + + data: function() { + return { + transforming: false, // 是否正在执行动画 + expanded: false // 是否已经展开子按钮 + }; + }, + + props: { + content: { + type: String, + default: '' + }, + + offset: { + type: Number, // 扇面偏移角,默认是四分之π,配合默认方向lt + default: Math.PI / 4 + }, + + direction: { + type: String, + default: 'lt' // lt t rt this.radius rb b lb l 取值有8个方向,左上、上、右上、右、右下、下、左下、左,默认为左上 + }, + + radius: { + type: Number, + default: 90 + }, + + mainButtonStyle: { + type: String, // 应用到 mint-main-button 上的 class + default: '' + } + }, + methods: { + toggle: function toggle(event) { + if (!this.transforming) { + if (this.expanded) { + this.collapse(event); + } else { + this.expand(event); + } + } + }, + + onMainAnimationEnd: function onMainAnimationEnd(event) { + this.transforming = false; + this.$emit('expanded'); + }, + + expand: function expand(event) { + this.expanded = true; + this.transforming = true; + this.$emit('expand', event); + }, + + collapse: function collapse(event) { + this.expanded = false; + this.$emit('collapse', event); + } + }, + mounted: function mounted() { + var this$1 = this; + + this.slotChildren = []; + for (var i = 0; i < this.$slots.default.length; i++) { + if (this$1.$slots.default[i].elm.nodeType !== 3) { + this$1.slotChildren.push(this$1.$slots.default[i]); + } + } + + var css = ''; + var direction_arc = Math.PI * (3 + Math.max(['lt', 't', 'rt', 'r', 'rb', 'b', 'lb', 'l'].indexOf(this.direction), 0)) / 4; + for (var i$1 = 0; i$1 < this.slotChildren.length; i$1++) { + var arc = (Math.PI - this$1.offset * 2) / (this$1.slotChildren.length - 1) * i$1 + this$1.offset + direction_arc; + var x = (Math.cos(arc) * this$1.radius).toFixed(2); + var y = (Math.sin(arc) * this$1.radius).toFixed(2); + var item_css = '.expand .palette-button-' + this$1._uid + '-sub-' + i$1 + '{transform:translate(' + x + 'px,' + y + 'px) rotate(720deg);transition-delay:' + 0.03 * i$1 + 's}'; + css += item_css; + + this$1.slotChildren[i$1].elm.className += (' palette-button-' + this$1._uid + '-sub-' + i$1); + } + + this.styleNode = document.createElement('style'); + this.styleNode.type = 'text/css'; + this.styleNode.rel = 'stylesheet'; + this.styleNode.title = 'palette button style'; + this.styleNode.appendChild(document.createTextNode(css)); + document.getElementsByTagName('head')[0].appendChild(this.styleNode); + }, + + destroyed: function destroyed() { + if (this.styleNode) { + this.styleNode.parentNode.removeChild(this.styleNode); + } + } +}; + + +/***/ }, +/* 31 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__draggable__ = __webpack_require__(73); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__translate__ = __webpack_require__(74); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mint_ui_src_mixins_emitter__ = __webpack_require__(89); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_vue__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + +if (!__WEBPACK_IMPORTED_MODULE_4_vue___default.a.prototype.$isServer) { + __webpack_require__(200); +} + +var rotateElement = function(element, angle) { + if (!element) return; + var transformProperty = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].transformProperty; + + element.style[transformProperty] = element.style[transformProperty].replace(/rotateX\(.+?deg\)/gi, '') + " rotateX(" + angle + "deg)"; +}; + +var ITEM_HEIGHT = 36; +var VISIBLE_ITEMS_ANGLE_MAP = { + 3: -45, + 5: -20, + 7: -15 +}; + +/* harmony default export */ exports["default"] = { + name: 'picker-slot', + + props: { + values: { + type: Array, + default: function default$1() { + return []; + } + }, + value: {}, + visibleItemCount: { + type: Number, + default: 5 + }, + valueKey: String, + rotateEffect: { + type: Boolean, + default: false + }, + divider: { + type: Boolean, + default: false + }, + textAlign: { + type: String, + default: 'center' + }, + flex: {}, + className: {}, + content: {}, + itemHeight: { + type: Number, + default: ITEM_HEIGHT + }, + defaultIndex: { + type: Number, + default: 0, + require: false + } + }, + + data: function data() { + return { + currentValue: this.value, + mutatingValues: this.values, + dragging: false, + animationFrameId: null + }; + }, + + mixins: [__WEBPACK_IMPORTED_MODULE_3_mint_ui_src_mixins_emitter__["a" /* default */]], + + computed: { + flexStyle: function flexStyle() { + return { + 'flex': this.flex, + '-webkit-box-flex': this.flex, + '-moz-box-flex': this.flex, + '-ms-flex': this.flex + }; + }, + classNames: function classNames() { + var PREFIX = 'picker-slot-'; + var resultArray = []; + + if (this.rotateEffect) { + resultArray.push(PREFIX + 'absolute'); + } + + var textAlign = this.textAlign || 'center'; + resultArray.push(PREFIX + textAlign); + + if (this.divider) { + resultArray.push(PREFIX + 'divider'); + } + + if (this.className) { + resultArray.push(this.className); + } + + return resultArray.join(' '); + }, + contentHeight: function contentHeight() { + return this.itemHeight * this.visibleItemCount; + }, + valueIndex: function valueIndex() { + var this$1 = this; + + var valueKey = this.valueKey; + if (this.currentValue instanceof Object) { + for (var i = 0, len = this.mutatingValues.length; i < len ; i++) { + if (this$1.currentValue[valueKey] === this$1.mutatingValues[i][valueKey]) { + return i; + } + } + return -1; + } else { + return this.mutatingValues.indexOf(this.currentValue); + } + }, + dragRange: function dragRange() { + var values = this.mutatingValues; + var visibleItemCount = this.visibleItemCount; + var itemHeight = this.itemHeight; + + return [ -itemHeight * (values.length - Math.ceil(visibleItemCount / 2)), itemHeight * Math.floor(visibleItemCount / 2) ]; + }, + minTranslateY: function minTranslateY() { + return this.itemHeight * (Math.ceil(this.visibleItemCount / 2) - this.mutatingValues.length); + }, + maxTranslateY: function maxTranslateY() { + return this.itemHeight * Math.floor(this.visibleItemCount / 2); + } + }, + + methods: { + value2Translate: function value2Translate(value) { + var values = this.mutatingValues; + var valueIndex = values.indexOf(value); + var offset = Math.floor(this.visibleItemCount / 2); + var itemHeight = this.itemHeight; + + if (valueIndex !== -1) { + return (valueIndex - offset) * -itemHeight; + } + }, + + translate2Value: function translate2Value(translate) { + var itemHeight = this.itemHeight; + translate = Math.round(translate / itemHeight) * itemHeight; + var index = -(translate - Math.floor(this.visibleItemCount / 2) * itemHeight) / itemHeight; + + return this.mutatingValues[index]; + }, + + updateRotate: function(currentTranslate, pickerItems) { + var this$1 = this; + + if (this.divider) return; + var dragRange = this.dragRange; + var wrapper = this.$refs.wrapper; + + if (!pickerItems) { + pickerItems = wrapper.querySelectorAll('.picker-item'); + } + + if (currentTranslate === undefined) { + currentTranslate = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(wrapper).top; + } + + var itemsFit = Math.ceil(this.visibleItemCount / 2); + var angleUnit = VISIBLE_ITEMS_ANGLE_MAP[this.visibleItemCount] || -20; + + [].forEach.call(pickerItems, function (item, index) { + var itemOffsetTop = index * this$1.itemHeight; + var translateOffset = dragRange[1] - currentTranslate; + var itemOffset = itemOffsetTop - translateOffset; + var percentage = itemOffset / this$1.itemHeight; + + var angle = angleUnit * percentage; + if (angle > 180) angle = 180; + if (angle < -180) angle = -180; + + rotateElement(item, angle); + + if (Math.abs(percentage) > itemsFit) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["a" /* addClass */])(item, 'picker-item-far'); + } else { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["b" /* removeClass */])(item, 'picker-item-far'); + } + }); + }, + + planUpdateRotate: function() { + var this$1 = this; + + var el = this.$refs.wrapper; + cancelAnimationFrame(this.animationFrameId); + + this.animationFrameId = requestAnimationFrame(function () { + this$1.updateRotate(); + }); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["c" /* once */])(el, __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].transitionEndProperty, function () { + cancelAnimationFrame(this$1.animationFrameId); + this$1.animationFrameId = null; + }); + }, + + initEvents: function initEvents() { + var this$1 = this; + + var el = this.$refs.wrapper; + var dragState = {}; + + var velocityTranslate, prevTranslate, pickerItems; + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__draggable__["a" /* default */])(el, { + start: function (event) { + cancelAnimationFrame(this$1.animationFrameId); + this$1.animationFrameId = null; + dragState = { + range: this$1.dragRange, + start: new Date(), + startLeft: event.pageX, + startTop: event.pageY, + startTranslateTop: __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(el).top + }; + pickerItems = el.querySelectorAll('.picker-item'); + }, + + drag: function (event) { + this$1.dragging = true; + + dragState.left = event.pageX; + dragState.top = event.pageY; + + var deltaY = dragState.top - dragState.startTop; + var translate = dragState.startTranslateTop + deltaY; + + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(el, null, translate); + + velocityTranslate = translate - prevTranslate || translate; + + prevTranslate = translate; + + if (this$1.rotateEffect) { + this$1.updateRotate(prevTranslate, pickerItems); + } + }, + + end: function (event) { + this$1.dragging = false; + + var momentumRatio = 7; + var currentTranslate = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(el).top; + var duration = new Date() - dragState.start; + var distance = Math.abs(dragState.startTranslateTop - currentTranslate); + var itemHeight = this$1.itemHeight; + var visibleItemCount = this$1.visibleItemCount; + + var rect, offset; + if (distance < 6) { + rect = this$1.$el.getBoundingClientRect(); + offset = Math.floor((event.clientY - (rect.top + (visibleItemCount - 1) * itemHeight / 2)) / itemHeight) * itemHeight; + + if (offset > this$1.maxTranslateY) { + offset = this$1.maxTranslateY; + } + + velocityTranslate = 0; + currentTranslate -= offset; + } + + var momentumTranslate; + if (duration < 300) { + momentumTranslate = currentTranslate + velocityTranslate * momentumRatio; + } + + var dragRange = dragState.range; + + this$1.$nextTick(function () { + var translate; + if (momentumTranslate) { + translate = Math.round(momentumTranslate / itemHeight) * itemHeight; + } else { + translate = Math.round(currentTranslate / itemHeight) * itemHeight; + } + + translate = Math.max(Math.min(translate, dragRange[1]), dragRange[0]); + + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(el, null, translate); + + this$1.currentValue = this$1.translate2Value(translate); + + if (this$1.rotateEffect) { + this$1.planUpdateRotate(); + } + }); + + dragState = {}; + } + }); + }, + + doOnValueChange: function doOnValueChange() { + var value = this.currentValue; + var wrapper = this.$refs.wrapper; + + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(wrapper, null, this.value2Translate(value)); + }, + + doOnValuesChange: function doOnValuesChange() { + var this$1 = this; + + var el = this.$el; + var items = el.querySelectorAll('.picker-item'); + [].forEach.call(items, function (item, index) { + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(item, null, this$1.itemHeight * index); + }); + if (this.rotateEffect) { + this.planUpdateRotate(); + } + } + }, + + mounted: function mounted() { + this.ready = true; + + if (!this.divider) { + this.initEvents(); + this.doOnValueChange(); + } + + if (this.rotateEffect) { + this.doOnValuesChange(); + } + }, + + watch: { + values: function values(val) { + this.mutatingValues = val; + }, + + mutatingValues: function mutatingValues(val) { + var this$1 = this; + + if (this.valueIndex === -1) { + this.currentValue = (val || [])[0]; + } + if (this.rotateEffect) { + this.$nextTick(function () { + this$1.doOnValuesChange(); + }); + } + }, + currentValue: function currentValue(val) { + this.doOnValueChange(); + if (this.rotateEffect) { + this.planUpdateRotate(); + } + this.$emit('input', val); + this.dispatch('picker', 'slotValueChange', this); + }, + defaultIndex: function defaultIndex(val) { + if ((this.mutatingValues[val] !== undefined) && (this.mutatingValues.length >= val + 1)) { + this.currentValue = this.mutatingValues[val]; + } + } + } +}; + + +/***/ }, +/* 32 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-picker', + + componentName: 'picker', + + props: { + slots: { + type: Array + }, + showToolbar: { + type: Boolean, + default: false + }, + visibleItemCount: { + type: Number, + default: 5 + }, + valueKey: String, + rotateEffect: { + type: Boolean, + default: false + }, + itemHeight: { + type: Number, + default: 36 + } + }, + + created: function created() { + this.$on('slotValueChange', this.slotValueChange); + this.slotValueChange(); + }, + + methods: { + slotValueChange: function slotValueChange() { + this.$emit('change', this, this.values); + }, + + getSlot: function getSlot(slotIndex) { + var slots = this.slots || []; + var count = 0; + var target; + var children = this.$children.filter(function (child) { return child.$options.name === 'picker-slot'; }); + + slots.forEach(function(slot, index) { + if (!slot.divider) { + if (slotIndex === count) { + target = children[index]; + } + count++; + } + }); + + return target; + }, + getSlotValue: function getSlotValue(index) { + var slot = this.getSlot(index); + if (slot) { + return slot.currentValue; + } + return null; + }, + setSlotValue: function setSlotValue(index, value) { + var slot = this.getSlot(index); + if (slot) { + slot.currentValue = value; + } + }, + getSlotValues: function getSlotValues(index) { + var slot = this.getSlot(index); + if (slot) { + return slot.mutatingValues; + } + return null; + }, + setSlotValues: function setSlotValues(index, values) { + var slot = this.getSlot(index); + if (slot) { + slot.mutatingValues = values; + } + }, + getValues: function getValues() { + return this.values; + }, + setValues: function setValues(values) { + var this$1 = this; + + var slotCount = this.slotCount; + values = values || []; + if (slotCount !== values.length) { + throw new Error('values length is not equal slot count.'); + } + values.forEach(function (value, index) { + this$1.setSlotValue(index, value); + }); + } + }, + + computed: { + values: { + get: function get() { + var slots = this.slots || []; + var values = []; + var valueIndexCount = 0; + slots.forEach(function (slot) { + if (!slot.divider) { + slot.valueIndex = valueIndexCount++; + values[slot.valueIndex] = (slot.values || [])[slot.defaultIndex || 0]; + } + }); + return values; + } + }, + slotCount: function slotCount() { + var slots = this.slots || []; + var result = 0; + slots.forEach(function(slot) { + if (!slot.divider) result++; + }); + return result; + } + }, + + components: { + PickerSlot: __webpack_require__(144) + } +}; + + +/***/ }, +/* 33 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_vue__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +if (!__WEBPACK_IMPORTED_MODULE_1_vue___default.a.prototype.$isServer) { + __webpack_require__(12); +} + +/* harmony default export */ exports["default"] = { + name: 'mt-popup', + + mixins: [__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */]], + + props: { + modal: { + default: true + }, + + modalFade: { + default: false + }, + + lockScroll: { + default: false + }, + + closeOnClickModal: { + default: true + }, + + popupTransition: { + type: String, + default: 'popup-slide' + }, + + position: { + type: String, + default: '' + } + }, + + data: function data() { + return { + currentValue: false, + currentTransition: this.popupTransition + }; + }, + + watch: { + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + value: function value(val) { + this.currentValue = val; + } + }, + + beforeMount: function beforeMount() { + if (this.popupTransition !== 'popup-fade') { + this.currentTransition = "popup-slide-" + (this.position); + } + }, + + mounted: function mounted() { + if (this.value) { + this.rendered = true; + this.currentValue = true; + this.open(); + } + } +}; + + +/***/ }, +/* 34 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-progress', + + props: { + value: Number, + barHeight: { + type: Number, + default: 3 + } + } +}; + + +/***/ }, +/* 35 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (false) { + require('mint-ui/packages/cell/style.css'); +} +/** + * mt-radio + * @module components/radio + * @desc 单选框列表,依赖 cell 组件 + * + * @param {string[], object[]} options - 选项数组,可以传入 [{label: 'label', value: 'value', disabled: true}] 或者 ['ab', 'cd', 'ef'] + * @param {string} value - 选中值 + * @param {string} title - 标题 + * @param {string} [align=left] - checkbox 对齐位置,`left`, `right` + * + * @example + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-radio', + + props: { + title: String, + align: String, + options: { + type: Array, + required: true + }, + value: String + }, + + data: function data() { + return { + currentValue: this.value + }; + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + currentValue: function currentValue(val) { + this.$emit('input', val); + } + }, + + components: { + XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */] + } +}; + + +/***/ }, +/* 36 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__draggable__ = __webpack_require__(78); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'mt-range', + + props: { + min: { + type: Number, + default: 0 + }, + max: { + type: Number, + default: 100 + }, + step: { + type: Number, + default: 1 + }, + disabled: { + type: Boolean, + default: false + }, + value: { + type: Number + }, + barHeight: { + type: Number, + default: 1 + } + }, + + computed: { + progress: function progress() { + var value = this.value; + if (typeof value === 'undefined' || value === null) return 0; + return Math.floor((value - this.min) / (this.max - this.min) * 100); + } + }, + + mounted: function mounted() { + var this$1 = this; + + var thumb = this.$refs.thumb; + var content = this.$refs.content; + + var getThumbPosition = function () { + var contentBox = content.getBoundingClientRect(); + var thumbBox = thumb.getBoundingClientRect(); + return { + left: thumbBox.left - contentBox.left, + top: thumbBox.top - contentBox.top, + thumbBoxLeft: thumbBox.left + }; + }; + + var dragState = {}; + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__draggable__["a" /* default */])(thumb, { + start: function (event) { + if (this$1.disabled) return; + var position = getThumbPosition(); + var thumbClickDetalX = event.clientX - position.thumbBoxLeft; + dragState = { + thumbStartLeft: position.left, + thumbStartTop: position.top, + thumbClickDetalX: thumbClickDetalX + }; + }, + drag: function (event) { + if (this$1.disabled) return; + var contentBox = content.getBoundingClientRect(); + var deltaX = event.pageX - contentBox.left - dragState.thumbStartLeft - dragState.thumbClickDetalX; + var stepCount = Math.ceil((this$1.max - this$1.min) / this$1.step); + var newPosition = (dragState.thumbStartLeft + deltaX) - (dragState.thumbStartLeft + deltaX) % (contentBox.width / stepCount); + + var newProgress = newPosition / contentBox.width; + + if (newProgress < 0) { + newProgress = 0; + } else if (newProgress > 1) { + newProgress = 1; + } + + this$1.$emit('input', Math.round(this$1.min + newProgress * (this$1.max - this$1.min))); + }, + end: function () { + if (this$1.disabled) return; + this$1.$emit('change', this$1.value); + dragState = {}; + } + }); + } +}; + + +/***/ }, +/* 37 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(2); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (false) { + require('mint-ui/packages/cell/style.css'); +} + +/** + * mt-search + * @module components/search + * @desc 搜索框 + * @param {string} value - 绑定值 + * @param {string} [cancel-text=取消] - 取消按钮文字 + * @param {string} [placeholder=取消] - 搜索框占位内容 + * @param {boolean} [autofocus=false] - 自动 focus + * @param {boolean} [show=false] - 始终显示列表 + * @param {string[]} [result] - 结果列表 + * @param {slot} 结果列表 + * + * @example + * + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-search', + + data: function data() { + return { + visible: false, + currentValue: this.value + }; + }, + + components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__["a" /* default */] }, + + watch: { + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + value: function value(val) { + this.currentValue = val; + } + }, + + props: { + value: String, + autofocus: Boolean, + show: Boolean, + cancelText: { + default: '取消' + }, + placeholder: { + default: '搜索' + }, + result: Array + }, + + mounted: function mounted() { + this.autofocus && this.$refs.input.focus(); + } +}; + + +/***/ }, +/* 38 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// + +var SPINNERS = [ + 'snake', + 'double-bounce', + 'triple-bounce', + 'fading-circle' +]; +var parseSpinner = function(index) { + if ({}.toString.call(index) === '[object Number]') { + if (SPINNERS.length <= index) { + console.warn(("'" + index + "' spinner not found, use the default spinner.")); + index = 0; + } + return SPINNERS[index]; + } + + if (SPINNERS.indexOf(index) === -1) { + console.warn(("'" + index + "' spinner not found, use the default spinner.")); + index = SPINNERS[0]; + } + return index; +}; + +/** + * mt-spinner + * @module components/spinner + * @desc 加载动画 + * @param {(string|number)} [type=snake] - 显示类型,传入类型名或者类型 id,可选 `snake`, `dobule-bounce`, `triple-bounce`, `fading-circle` + * @param {number} size - 尺寸 + * @param {string} color - 颜色 + * + * @example + * + * + * + * + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-spinner', + + computed: { + spinner: function spinner() { + return ("spinner-" + (parseSpinner(this.type))); + } + }, + + components: { + SpinnerSnake: __webpack_require__(153), + SpinnerDoubleBounce: __webpack_require__(152), + SpinnerTripleBounce: __webpack_require__(154), + SpinnerFadingCircle: __webpack_require__(13) + }, + + props: { + type: { + default: 0 + }, + size: { + type: Number, + default: 28 + }, + color: { + type: String, + default: '#ccc' + } + } +}; + + +/***/ }, +/* 39 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +/* harmony default export */ exports["default"] = { + computed: { + spinnerColor: function spinnerColor() { + return this.color || this.$parent.color || '#ccc'; + }, + + spinnerSize: function spinnerSize() { + return (this.size || this.$parent.size || 28) + 'px'; + } + }, + + props: { + size: Number, + color: String + } +}; + + +/***/ }, +/* 40 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'double-bounce', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a] +}; + + +/***/ }, +/* 41 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'fading-circle', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a], + + created: function created() { + if (this.$isServer) return; + this.styleNode = document.createElement('style'); + var css = ".circle-color-" + (this._uid) + " > div::before { background-color: " + (this.spinnerColor) + "; }"; + + this.styleNode.type = 'text/css'; + this.styleNode.rel = 'stylesheet'; + this.styleNode.title = 'fading circle style'; + document.getElementsByTagName('head')[0].appendChild(this.styleNode); + this.styleNode.appendChild(document.createTextNode(css)); + }, + + destroyed: function destroyed() { + if (this.styleNode) { + this.styleNode.parentNode.removeChild(this.styleNode); + } + } +}; + + +/***/ }, +/* 42 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'snake', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a] +}; + + +/***/ }, +/* 43 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'triple-bounce', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a], + + computed: { + spinnerSize: function spinnerSize() { + return ((this.size || this.$parent.size || 28) / 3) + 'px'; + }, + + bounceStyle: function bounceStyle() { + return { + width: this.spinnerSize, + height: this.spinnerSize, + backgroundColor: this.spinnerColor + }; + } + } +}; + + +/***/ }, +/* 44 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-swipe-item', + + mounted: function mounted() { + this.$parent && this.$parent.swipeItemCreated(this); + }, + + destroyed: function destroyed() { + this.$parent && this.$parent.swipeItemDestroyed(this); + } +}; + + +/***/ }, +/* 45 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(3); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ exports["default"] = { + name: 'mt-swipe', + + created: function created() { + this.dragState = {}; + }, + + data: function data() { + return { + ready: false, + dragging: false, + userScrolling: false, + animating: false, + index: 0, + pages: [], + timer: null, + reInitTimer: null, + noDrag: false, + isDone: false + }; + }, + + props: { + speed: { + type: Number, + default: 300 + }, + + defaultIndex: { + type: Number, + default: 0 + }, + + auto: { + type: Number, + default: 3000 + }, + + continuous: { + type: Boolean, + default: true + }, + + showIndicators: { + type: Boolean, + default: true + }, + + noDragWhenSingle: { + type: Boolean, + default: true + }, + + prevent: { + type: Boolean, + default: false + }, + + stopPropagation: { + type: Boolean, + default: false + } + }, + + watch: { + index: function index(newIndex) { + this.$emit('change', newIndex); + } + }, + + methods: { + swipeItemCreated: function swipeItemCreated() { + var this$1 = this; + + if (!this.ready) return; + + clearTimeout(this.reInitTimer); + this.reInitTimer = setTimeout(function () { + this$1.reInitPages(); + }, 100); + }, + + swipeItemDestroyed: function swipeItemDestroyed() { + var this$1 = this; + + if (!this.ready) return; + + clearTimeout(this.reInitTimer); + this.reInitTimer = setTimeout(function () { + this$1.reInitPages(); + }, 100); + }, + + rafTranslate: function rafTranslate(element, initOffset, offset, callback, nextElement) { + var ALPHA = 0.88; + this.animating = true; + var _offset = initOffset; + var raf = 0; + + function animationLoop() { + if (Math.abs(_offset - offset) < 0.5) { + this.animating = false; + _offset = offset; + element.style.webkitTransform = ''; + if (nextElement) { + nextElement.style.webkitTransform = ''; + } + cancelAnimationFrame(raf); + + if (callback) { + callback(); + } + + return; + } + + _offset = ALPHA * _offset + (1.0 - ALPHA) * offset; + element.style.webkitTransform = "translate3d(" + _offset + "px, 0, 0)"; + + if (nextElement) { + nextElement.style.webkitTransform = "translate3d(" + (_offset - offset) + "px, 0, 0)"; + } + + raf = requestAnimationFrame(animationLoop.bind(this)); + } + + animationLoop.call(this); + }, + + translate: function translate(element, offset, speed, callback) { + var arguments$1 = arguments; + var this$1 = this; + + if (speed) { + this.animating = true; + element.style.webkitTransition = '-webkit-transform ' + speed + 'ms ease-in-out'; + setTimeout(function () { + element.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)"; + }, 50); + + var called = false; + + var transitionEndCallback = function () { + if (called) return; + called = true; + this$1.animating = false; + element.style.webkitTransition = ''; + element.style.webkitTransform = ''; + if (callback) { + callback.apply(this$1, arguments$1); + } + }; + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(element, 'webkitTransitionEnd', transitionEndCallback); + setTimeout(transitionEndCallback, speed + 100); // webkitTransitionEnd maybe not fire on lower version android. + } else { + element.style.webkitTransition = ''; + element.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)"; + } + }, + + reInitPages: function reInitPages() { + var children = this.$children; + this.noDrag = children.length === 1 && this.noDragWhenSingle; + + var pages = []; + var intDefaultIndex = Math.floor(this.defaultIndex); + var defaultIndex = (intDefaultIndex >= 0 && intDefaultIndex < children.length) ? intDefaultIndex : 0; + this.index = defaultIndex; + + children.forEach(function(child, index) { + pages.push(child.$el); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["b" /* removeClass */])(child.$el, 'is-active'); + + if (index === defaultIndex) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["a" /* addClass */])(child.$el, 'is-active'); + } + }); + + this.pages = pages; + }, + + doAnimate: function doAnimate(towards, options) { + var this$1 = this; + + if (this.$children.length === 0) return; + if (!options && this.$children.length < 2) return; + + var prevPage, nextPage, currentPage, pageWidth, offsetLeft, speedX; + var speed = this.speed || 300; + var index = this.index; + var pages = this.pages; + var pageCount = pages.length; + + if (!options) { + pageWidth = this.$el.clientWidth; + currentPage = pages[index]; + prevPage = pages[index - 1]; + nextPage = pages[index + 1]; + if (this.continuous && pages.length > 1) { + if (!prevPage) { + prevPage = pages[pages.length - 1]; + } + if (!nextPage) { + nextPage = pages[0]; + } + } + if (prevPage) { + prevPage.style.display = 'block'; + this.translate(prevPage, -pageWidth); + } + if (nextPage) { + nextPage.style.display = 'block'; + this.translate(nextPage, pageWidth); + } + } else { + prevPage = options.prevPage; + currentPage = options.currentPage; + nextPage = options.nextPage; + pageWidth = options.pageWidth; + offsetLeft = options.offsetLeft; + speedX = options.speedX; + } + + var newIndex; + + var oldPage = this.$children[index].$el; + + if (towards === 'prev') { + if (index > 0) { + newIndex = index - 1; + } + if (this.continuous && index === 0) { + newIndex = pageCount - 1; + } + } else if (towards === 'next') { + if (index < pageCount - 1) { + newIndex = index + 1; + } + if (this.continuous && index === pageCount - 1) { + newIndex = 0; + } + } + + var callback = function () { + if (newIndex !== undefined) { + var newPage = this$1.$children[newIndex].$el; + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["b" /* removeClass */])(oldPage, 'is-active'); + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["a" /* addClass */])(newPage, 'is-active'); + + this$1.index = newIndex; + } + if (this$1.isDone) { + this$1.end(); + } + + if (prevPage) { + prevPage.style.display = ''; + } + + if (nextPage) { + nextPage.style.display = ''; + } + }; + + setTimeout(function () { + if (towards === 'next') { + this$1.isDone = true; + this$1.before(currentPage); + if (speedX) { + this$1.rafTranslate(currentPage, offsetLeft, -pageWidth, callback, nextPage); + } else { + this$1.translate(currentPage, -pageWidth, speed, callback); + if (nextPage) { + this$1.translate(nextPage, 0, speed); + } + } + } else if (towards === 'prev') { + this$1.isDone = true; + this$1.before(currentPage); + if (speedX) { + this$1.rafTranslate(currentPage, offsetLeft, pageWidth, callback, prevPage); + } else { + this$1.translate(currentPage, pageWidth, speed, callback); + if (prevPage) { + this$1.translate(prevPage, 0, speed); + } + } + } else { + this$1.isDone = false; + this$1.translate(currentPage, 0, speed, callback); + if (typeof offsetLeft !== 'undefined') { + if (prevPage && offsetLeft > 0) { + this$1.translate(prevPage, pageWidth * -1, speed); + } + if (nextPage && offsetLeft < 0) { + this$1.translate(nextPage, pageWidth, speed); + } + } else { + if (prevPage) { + this$1.translate(prevPage, pageWidth * -1, speed); + } + if (nextPage) { + this$1.translate(nextPage, pageWidth, speed); + } + } + } + }, 10); + }, + + next: function next() { + this.doAnimate('next'); + }, + + prev: function prev() { + this.doAnimate('prev'); + }, + + before: function before() { + this.$emit('before', this.index); + }, + + end: function end() { + this.$emit('end', this.index); + }, + + doOnTouchStart: function doOnTouchStart(event) { + if (this.noDrag) return; + + var element = this.$el; + var dragState = this.dragState; + var touch = event.touches[0]; + + dragState.startTime = new Date(); + dragState.startLeft = touch.pageX; + dragState.startTop = touch.pageY; + dragState.startTopAbsolute = touch.clientY; + + dragState.pageWidth = element.offsetWidth; + dragState.pageHeight = element.offsetHeight; + + var prevPage = this.$children[this.index - 1]; + var dragPage = this.$children[this.index]; + var nextPage = this.$children[this.index + 1]; + + if (this.continuous && this.pages.length > 1) { + if (!prevPage) { + prevPage = this.$children[this.$children.length - 1]; + } + if (!nextPage) { + nextPage = this.$children[0]; + } + } + + dragState.prevPage = prevPage ? prevPage.$el : null; + dragState.dragPage = dragPage ? dragPage.$el : null; + dragState.nextPage = nextPage ? nextPage.$el : null; + + if (dragState.prevPage) { + dragState.prevPage.style.display = 'block'; + } + + if (dragState.nextPage) { + dragState.nextPage.style.display = 'block'; + } + }, + + doOnTouchMove: function doOnTouchMove(event) { + if (this.noDrag) return; + + var dragState = this.dragState; + var touch = event.touches[0]; + + dragState.speedX = touch.pageX - dragState.currentLeft; + dragState.currentLeft = touch.pageX; + dragState.currentTop = touch.pageY; + dragState.currentTopAbsolute = touch.clientY; + + var offsetLeft = dragState.currentLeft - dragState.startLeft; + var offsetTop = dragState.currentTopAbsolute - dragState.startTopAbsolute; + + var distanceX = Math.abs(offsetLeft); + var distanceY = Math.abs(offsetTop); + if (distanceX < 5 || (distanceX >= 5 && distanceY >= 1.73 * distanceX)) { + this.userScrolling = true; + return; + } else { + this.userScrolling = false; + event.preventDefault(); + } + offsetLeft = Math.min(Math.max(-dragState.pageWidth + 1, offsetLeft), dragState.pageWidth - 1); + + var towards = offsetLeft < 0 ? 'next' : 'prev'; + + if (dragState.prevPage && towards === 'prev') { + this.translate(dragState.prevPage, offsetLeft - dragState.pageWidth); + } + this.translate(dragState.dragPage, offsetLeft); + if (dragState.nextPage && towards === 'next') { + this.translate(dragState.nextPage, offsetLeft + dragState.pageWidth); + } + }, + + doOnTouchEnd: function doOnTouchEnd() { + if (this.noDrag) return; + + var dragState = this.dragState; + + var dragDuration = new Date() - dragState.startTime; + var towards = null; + + var offsetLeft = dragState.currentLeft - dragState.startLeft; + var offsetTop = dragState.currentTop - dragState.startTop; + var pageWidth = dragState.pageWidth; + var index = this.index; + var pageCount = this.pages.length; + + if (dragDuration < 300) { + var fireTap = Math.abs(offsetLeft) < 5 && Math.abs(offsetTop) < 5; + if (isNaN(offsetLeft) || isNaN(offsetTop)) { + fireTap = true; + } + if (fireTap) { + this.$children[this.index].$emit('tap'); + } + } + + if (dragDuration < 300 && dragState.currentLeft === undefined) return; + + if (dragDuration < 300 || Math.abs(offsetLeft) > pageWidth / 2) { + towards = offsetLeft < 0 ? 'next' : 'prev'; + } + + if (!this.continuous) { + if ((index === 0 && towards === 'prev') || (index === pageCount - 1 && towards === 'next')) { + towards = null; + } + } + + if (this.$children.length < 2) { + towards = null; + } + + this.doAnimate(towards, { + offsetLeft: offsetLeft, + pageWidth: dragState.pageWidth, + prevPage: dragState.prevPage, + currentPage: dragState.dragPage, + nextPage: dragState.nextPage, + speedX: dragState.speedX + }); + + this.dragState = {}; + }, + + initTimer: function initTimer() { + var this$1 = this; + + if (this.auto > 0 && !this.timer) { + this.timer = setInterval(function () { + if (!this$1.continuous && (this$1.index >= this$1.pages.length - 1)) { + return this$1.clearTimer(); + } + if (!this$1.dragging && !this$1.animating) { + this$1.next(); + } + }, this.auto); + } + }, + + clearTimer: function clearTimer() { + clearInterval(this.timer); + this.timer = null; + } + }, + + destroyed: function destroyed() { + if (this.timer) { + this.clearTimer(); + } + if (this.reInitTimer) { + clearTimeout(this.reInitTimer); + this.reInitTimer = null; + } + }, + + mounted: function mounted() { + var this$1 = this; + + this.ready = true; + + this.initTimer(); + + this.reInitPages(); + + var element = this.$el; + + element.addEventListener('touchstart', function (event) { + if (this$1.prevent) event.preventDefault(); + if (this$1.stopPropagation) event.stopPropagation(); + if (this$1.animating) return; + this$1.dragging = true; + this$1.userScrolling = false; + this$1.doOnTouchStart(event); + }); + + element.addEventListener('touchmove', function (event) { + if (!this$1.dragging) return; + if (this$1.timer) this$1.clearTimer(); + this$1.doOnTouchMove(event); + }); + + element.addEventListener('touchend', function (event) { + if (this$1.userScrolling) { + this$1.dragging = false; + this$1.dragState = {}; + return; + } + if (!this$1.dragging) return; + this$1.initTimer(); + this$1.doOnTouchEnd(event); + this$1.dragging = false; + }); + } +}; + + +/***/ }, +/* 46 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// + +/** + * mt-switch + * @module components/switch + * @desc 切换按钮 + * @param {boolean} [value] - 绑定值,支持双向绑定 + * @param {slot} - 显示内容 + * + * @example + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-switch', + + props: { + value: Boolean, + disabled: { + type: Boolean, + default: false + } + }, + computed: { + currentValue: { + get: function get() { + return this.value; + }, + set: function set(val) { + this.$emit('input', val); + } + } + } +}; + + +/***/ }, +/* 47 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// + +/** + * mt-tab-container-item + * @desc 搭配 tab-container 使用 + * @module components/tab-container-item + * + * @param {number|string} [id] - 该项的 id + * + * @example + * + * 内容A + * 内容B + * 内容C + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tab-container-item', + + props: ['id'] +}; + + +/***/ }, +/* 48 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_array_find_index__ = __webpack_require__(199); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_array_find_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_array_find_index__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/** + * mt-tab-container + * @desc 面板,搭配 tab-container-item 使用 + * @module components/tab-container + * + * @param {number|string} [value] - 当前激活的 tabId + * + * @example + * + * 内容A + * 内容B + * 内容C + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tab-container', + + props: { + value: {}, + swipeable: Boolean + }, + + data: function data() { + return { + start: { x: 0, y: 0 }, + swiping: false, + activeItems: [], + pageWidth: 0, + currentActive: this.value + }; + }, + + watch: { + value: function value(val) { + this.currentActive = val; + }, + + currentActive: function currentActive(val, oldValue) { + this.$emit('input', val); + if (!this.swipeable) return; + var lastIndex = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children, + function (item) { return item.id === oldValue; }); + this.swipeLeaveTransition(lastIndex); + } + }, + + mounted: function mounted() { + if (!this.swipeable) return; + + this.wrap = this.$refs.wrap; + this.pageWidth = this.wrap.clientWidth; + this.limitWidth = this.pageWidth / 4; + }, + + methods: { + swipeLeaveTransition: function swipeLeaveTransition(lastIndex) { + var this$1 = this; + if ( lastIndex === void 0 ) lastIndex = 0; + + if (typeof this.index !== 'number') { + this.index = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children, + function (item) { return item.id === this$1.currentActive; }); + this.swipeMove(-lastIndex * this.pageWidth); + } + + setTimeout(function () { + this$1.wrap.classList.add('swipe-transition'); + this$1.swipeMove(-this$1.index * this$1.pageWidth); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(this$1.wrap, 'webkitTransitionEnd', function (_) { + this$1.wrap.classList.remove('swipe-transition'); + this$1.wrap.style.webkitTransform = ''; + this$1.swiping = false; + this$1.index = null; + }); + }, 0); + }, + + swipeMove: function swipeMove(offset) { + this.wrap.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)"; + this.swiping = true; + }, + + startDrag: function startDrag(evt) { + if (!this.swipeable) return; + evt = evt.changedTouches ? evt.changedTouches[0] : evt; + this.dragging = true; + this.start.x = evt.pageX; + this.start.y = evt.pageY; + }, + + onDrag: function onDrag(evt) { + var this$1 = this; + + if (!this.dragging) return; + var swiping; + var e = evt.changedTouches ? evt.changedTouches[0] : evt; + var offsetTop = e.pageY - this.start.y; + var offsetLeft = e.pageX - this.start.x; + var y = Math.abs(offsetTop); + var x = Math.abs(offsetLeft); + + swiping = !(x < 5 || (x >= 5 && y >= x * 1.73)); + if (!swiping) return; + evt.preventDefault(); + + var len = this.$children.length - 1; + var index = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children, + function (item) { return item.id === this$1.currentActive; }); + var currentPageOffset = index * this.pageWidth; + var offset = offsetLeft - currentPageOffset; + var absOffset = Math.abs(offset); + + if (absOffset > len * this.pageWidth || + (offset > 0 && offset < this.pageWidth)) { + this.swiping = false; + return; + } + + this.offsetLeft = offsetLeft; + this.index = index; + this.swipeMove(offset); + }, + + endDrag: function endDrag() { + if (!this.swiping) return; + this.dragging = false; + var direction = this.offsetLeft > 0 ? -1 : 1; + var isChange = Math.abs(this.offsetLeft) > this.limitWidth; + + if (isChange) { + this.index += direction; + var child = this.$children[this.index]; + if (child) { + this.currentActive = child.id; + return; + } + } + + this.swipeLeaveTransition(); + } + } +}; + + +/***/ }, +/* 49 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// + +/** + * mt-tab-item + * @module components/tab-item + * @desc 搭配 tabbar 或 navbar 使用 + * @param {*} id - 选中后的返回值,任意类型 + * @param {slot} [icon] - icon 图标 + * @param {slot} - 文字 + * + * @example + * + * + * 订单 + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tab-item', + + props: ['id'] +}; + + +/***/ }, +/* 50 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// + +/** + * mt-tabbar + * @module components/tabbar + * @desc 底部 tab,依赖 tab-item + * @param {boolean} [fixed=false] - 固定底部 + * @param {*} value - 返回 item component 传入的 id + * + * @example + * + * + * + * 订单 + * + * + * + * + * + * + * 订单 + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tabbar', + + props: { + fixed: Boolean, + value: {} + } +}; + + +/***/ }, +/* 51 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + props: { + message: String, + className: { + type: String, + default: '' + }, + position: { + type: String, + default: 'middle' + }, + iconClass: { + type: String, + default: '' + } + }, + + data: function data() { + return { + visible: false + }; + }, + + computed: { + customClass: function customClass() { + var classes = []; + switch (this.position) { + case 'top': + classes.push('is-placetop'); + break; + case 'bottom': + classes.push('is-placebottom'); + break; + default: + classes.push('is-placemiddle'); + } + classes.push(this.className); + + return classes.join(' '); + } + } +}; + + +/***/ }, +/* 52 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue__ = __webpack_require__(128); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_actionsheet_vue___default.a; }); + + + +/***/ }, +/* 53 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_badge_vue__ = __webpack_require__(129); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_badge_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_badge_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_badge_vue___default.a; }); + + + +/***/ }, +/* 54 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_button_vue__ = __webpack_require__(130); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_button_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_button_vue___default.a; }); + + + +/***/ }, +/* 55 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue__ = __webpack_require__(131); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_cell_swipe_vue___default.a; }); + + + +/***/ }, +/* 56 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue__ = __webpack_require__(133); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_checklist_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_checklist_vue___default.a; }); + + + +/***/ }, +/* 57 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue__ = __webpack_require__(134); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_datetime_picker_vue___default.a; }); + + + +/***/ }, +/* 58 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_field_vue__ = __webpack_require__(135); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_field_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_field_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_field_vue___default.a; }); + + + +/***/ }, +/* 59 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_header_vue__ = __webpack_require__(136); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_header_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_header_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_header_vue___default.a; }); + + + +/***/ }, +/* 60 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue__ = __webpack_require__(137); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_list_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_list_vue___default.a; }); + + + +/***/ }, +/* 61 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue__ = __webpack_require__(138); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_section_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_section_vue___default.a; }); + + + +/***/ }, +/* 62 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); + + +var Indicator = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__webpack_require__(139)); +var instance; + +/* harmony default export */ exports["a"] = { + open: function open(options) { + if ( options === void 0 ) options = {}; + + if (!instance) { + instance = new Indicator({ + el: document.createElement('div') + }); + } + if (instance.visible) return; + instance.text = typeof options === 'string' ? options : options.text || ''; + instance.spinnerType = options.spinnerType || 'snake'; + document.body.appendChild(instance.$el); + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + instance.visible = true; + }); + }, + + close: function close() { + if (instance) { + instance.visible = false; + } + } +}; + + +/***/ }, +/* 63 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_infinite_scroll_js__ = __webpack_require__(65); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__src_infinite_scroll_js__["a"]; }); + + + + +/***/ }, +/* 64 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); + +var ctx = '@@InfiniteScroll'; + +var throttle = function(fn, delay) { + var now, lastExec, timer, context, args; //eslint-disable-line + + var execute = function() { + fn.apply(context, args); + lastExec = now; + }; + + return function() { + context = this; + args = arguments; + + now = Date.now(); + + if (timer) { + clearTimeout(timer); + timer = null; + } + + if (lastExec) { + var diff = delay - (now - lastExec); + if (diff < 0) { + execute(); + } else { + timer = setTimeout(function () { + execute(); + }, diff); + } + } else { + execute(); + } + }; +}; + +var getScrollTop = function(element) { + if (element === window) { + return Math.max(window.pageYOffset || 0, document.documentElement.scrollTop); + } + + return element.scrollTop; +}; + +var getComputedStyle = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer ? {} : document.defaultView.getComputedStyle; + +var getScrollEventTarget = function(element) { + var currentNode = element; + // bugfix, see http://w3help.org/zh-cn/causes/SD9013 and http://stackoverflow.com/questions/17016740/onscroll-function-is-not-working-for-chrome + while (currentNode && currentNode.tagName !== 'HTML' && currentNode.tagName !== 'BODY' && currentNode.nodeType === 1) { + var overflowY = getComputedStyle(currentNode).overflowY; + if (overflowY === 'scroll' || overflowY === 'auto') { + return currentNode; + } + currentNode = currentNode.parentNode; + } + return window; +}; + +var getVisibleHeight = function(element) { + if (element === window) { + return document.documentElement.clientHeight; + } + + return element.clientHeight; +}; + +var getElementTop = function(element) { + if (element === window) { + return getScrollTop(window); + } + return element.getBoundingClientRect().top + getScrollTop(window); +}; + +var isAttached = function(element) { + var currentNode = element.parentNode; + while (currentNode) { + if (currentNode.tagName === 'HTML') { + return true; + } + if (currentNode.nodeType === 11) { + return false; + } + currentNode = currentNode.parentNode; + } + return false; +}; + +var doBind = function() { + if (this.binded) return; // eslint-disable-line + this.binded = true; + + var directive = this; + var element = directive.el; + + directive.scrollEventTarget = getScrollEventTarget(element); + directive.scrollListener = throttle(doCheck.bind(directive), 200); + directive.scrollEventTarget.addEventListener('scroll', directive.scrollListener); + + var disabledExpr = element.getAttribute('infinite-scroll-disabled'); + var disabled = false; + + if (disabledExpr) { + this.vm.$watch(disabledExpr, function(value) { + directive.disabled = value; + if (!value && directive.immediateCheck) { + doCheck.call(directive); + } + }); + disabled = Boolean(directive.vm[disabledExpr]); + } + directive.disabled = disabled; + + var distanceExpr = element.getAttribute('infinite-scroll-distance'); + var distance = 0; + if (distanceExpr) { + distance = Number(directive.vm[distanceExpr] || distanceExpr); + if (isNaN(distance)) { + distance = 0; + } + } + directive.distance = distance; + + var immediateCheckExpr = element.getAttribute('infinite-scroll-immediate-check'); + var immediateCheck = true; + if (immediateCheckExpr) { + immediateCheck = Boolean(directive.vm[immediateCheckExpr]); + } + directive.immediateCheck = immediateCheck; + + if (immediateCheck) { + doCheck.call(directive); + } + + var eventName = element.getAttribute('infinite-scroll-listen-for-event'); + if (eventName) { + directive.vm.$on(eventName, function() { + doCheck.call(directive); + }); + } +}; + +var doCheck = function(force) { + var scrollEventTarget = this.scrollEventTarget; + var element = this.el; + var distance = this.distance; + + if (force !== true && this.disabled) return; //eslint-disable-line + var viewportScrollTop = getScrollTop(scrollEventTarget); + var viewportBottom = viewportScrollTop + getVisibleHeight(scrollEventTarget); + + var shouldTrigger = false; + + if (scrollEventTarget === element) { + shouldTrigger = scrollEventTarget.scrollHeight - viewportBottom <= distance; + } else { + var elementBottom = getElementTop(element) - getElementTop(scrollEventTarget) + element.offsetHeight + viewportScrollTop; + + shouldTrigger = viewportBottom + distance >= elementBottom; + } + + if (shouldTrigger && this.expression) { + this.expression(); + } +}; + +/* harmony default export */ exports["a"] = { + bind: function bind(el, binding, vnode) { + el[ctx] = { + el: el, + vm: vnode.context, + expression: binding.value + }; + var args = arguments; + var cb = function() { + el[ctx].vm.$nextTick(function() { + if (isAttached(el)) { + doBind.call(el[ctx], args); + } + + el[ctx].bindTryCount = 0; + + var tryBind = function() { + if (el[ctx].bindTryCount > 10) return; //eslint-disable-line + el[ctx].bindTryCount++; + if (isAttached(el)) { + doBind.call(el[ctx], args); + } else { + setTimeout(tryBind, 50); + } + }; + + tryBind(); + }); + }; + if (el[ctx].vm._isMounted) { + cb(); + return; + } + el[ctx].vm.$on('hook:mounted', cb); + }, + + unbind: function unbind(el) { + if (el[ctx] && el[ctx].scrollEventTarget) { + el[ctx].scrollEventTarget.removeEventListener('scroll', el[ctx].scrollListener); + } + } +}; + + +/***/ }, +/* 65 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__directive__ = __webpack_require__(64); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_vue__); + + + + +var install = function(Vue) { + Vue.directive('InfiniteScroll', __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */]); +}; + +if (!__WEBPACK_IMPORTED_MODULE_2_vue___default.a.prototype.$isServer && window.Vue) { + window.infiniteScroll = __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */]; + __WEBPACK_IMPORTED_MODULE_2_vue___default.a.use(install); // eslint-disable-line +} + +__WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */].install = install; +/* harmony default export */ exports["a"] = __WEBPACK_IMPORTED_MODULE_0__directive__["a" /* default */]; + + +/***/ }, +/* 66 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_lazyload_js__ = __webpack_require__(67); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__src_lazyload_js__["a"]; }); + + + + +/***/ }, +/* 67 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_lazyload__ = __webpack_require__(201); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue_lazyload___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue_lazyload__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_style_empty_css__); + + + +/* harmony default export */ exports["a"] = __WEBPACK_IMPORTED_MODULE_0_vue_lazyload___default.a; + + +/***/ }, +/* 68 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue__ = __webpack_require__(140); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_loadmore_vue___default.a; }); + + + +/***/ }, +/* 69 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_message_box_js__ = __webpack_require__(70); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_message_box_js__["a"]; }); + + + +/***/ }, +/* 70 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__message_box_vue__ = __webpack_require__(141); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__message_box_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__message_box_vue__); +/* unused harmony export MessageBox */ +var CONFIRM_TEXT = '确定'; +var CANCEL_TEXT = '取消'; + +var defaults = { + title: '提示', + message: '', + type: '', + showInput: false, + showClose: true, + modalFade: false, + lockScroll: false, + closeOnClickModal: true, + inputValue: null, + inputPlaceholder: '', + inputPattern: null, + inputValidator: null, + inputErrorMessage: '', + showConfirmButton: true, + showCancelButton: false, + confirmButtonPosition: 'right', + confirmButtonHighlight: false, + cancelButtonHighlight: false, + confirmButtonText: CONFIRM_TEXT, + cancelButtonText: CANCEL_TEXT, + confirmButtonClass: '', + cancelButtonClass: '' +}; + + + + +var merge = function(target) { + var arguments$1 = arguments; + + for (var i = 1, j = arguments.length; i < j; i++) { + var source = arguments$1[i]; + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + var value = source[prop]; + if (value !== undefined) { + target[prop] = value; + } + } + } + } + + return target; +}; + +var MessageBoxConstructor = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__WEBPACK_IMPORTED_MODULE_1__message_box_vue___default.a); + +var currentMsg, instance; +var msgQueue = []; + +var defaultCallback = function (action) { + if (currentMsg) { + var callback = currentMsg.callback; + if (typeof callback === 'function') { + if (instance.showInput) { + callback(instance.inputValue, action); + } else { + callback(action); + } + } + if (currentMsg.resolve) { + var $type = currentMsg.options.$type; + if ($type === 'confirm' || $type === 'prompt') { + if (action === 'confirm') { + if (instance.showInput) { + currentMsg.resolve({ value: instance.inputValue, action: action }); + } else { + currentMsg.resolve(action); + } + } else if (action === 'cancel' && currentMsg.reject) { + currentMsg.reject(action); + } + } else { + currentMsg.resolve(action); + } + } + } +}; + +var initInstance = function() { + instance = new MessageBoxConstructor({ + el: document.createElement('div') + }); + + instance.callback = defaultCallback; +}; + +var showNextMsg = function() { + if (!instance) { + initInstance(); + } + + if (!instance.value || instance.closeTimer) { + if (msgQueue.length > 0) { + currentMsg = msgQueue.shift(); + + var options = currentMsg.options; + for (var prop in options) { + if (options.hasOwnProperty(prop)) { + instance[prop] = options[prop]; + } + } + if (options.callback === undefined) { + instance.callback = defaultCallback; + } + ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(function (prop) { + if (instance[prop] === undefined) { + instance[prop] = true; + } + }); + document.body.appendChild(instance.$el); + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + instance.value = true; + }); + } + } +}; + +var MessageBox = function(options, callback) { + if (typeof options === 'string') { + options = { + title: options + }; + if (arguments[1]) { + options.message = arguments[1]; + } + if (arguments[2]) { + options.type = arguments[2]; + } + } else if (options.callback && !callback) { + callback = options.callback; + } + + if (typeof Promise !== 'undefined') { + return new Promise(function(resolve, reject) { // eslint-disable-line + msgQueue.push({ + options: merge({}, defaults, MessageBox.defaults || {}, options), + callback: callback, + resolve: resolve, + reject: reject + }); + + showNextMsg(); + }); + } else { + msgQueue.push({ + options: merge({}, defaults, MessageBox.defaults || {}, options), + callback: callback + }); + + showNextMsg(); + } +}; + +MessageBox.setDefaults = function(defaults) { + MessageBox.defaults = defaults; +}; + +MessageBox.alert = function(message, title, options) { + if (typeof title === 'object') { + options = title; + title = ''; + } + return MessageBox(merge({ + title: title, + message: message, + $type: 'alert', + closeOnPressEscape: false, + closeOnClickModal: false + }, options)); +}; + +MessageBox.confirm = function(message, title, options) { + if (typeof title === 'object') { + options = title; + title = ''; + } + return MessageBox(merge({ + title: title, + message: message, + $type: 'confirm', + showCancelButton: true + }, options)); +}; + +MessageBox.prompt = function(message, title, options) { + if (typeof title === 'object') { + options = title; + title = ''; + } + return MessageBox(merge({ + title: title, + message: message, + showCancelButton: true, + showInput: true, + $type: 'prompt' + }, options)); +}; + +MessageBox.close = function() { + if (!instance) return; + instance.value = false; + msgQueue = []; + currentMsg = null; +}; + +/* harmony default export */ exports["a"] = MessageBox; + + + +/***/ }, +/* 71 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue__ = __webpack_require__(142); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_navbar_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue___default.a; }); + + + +/***/ }, +/* 72 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue__ = __webpack_require__(143); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue___default.a; }); + + + +/***/ }, +/* 73 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +var isDragging = false; + + +var supportTouch = !__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && 'ontouchstart' in window; + +/* harmony default export */ exports["a"] = function(element, options) { + var moveFn = function(event) { + if (options.drag) { + options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + var endFn = function(event) { + if (!supportTouch) { + document.removeEventListener('mousemove', moveFn); + document.removeEventListener('mouseup', endFn); + } + document.onselectstart = null; + document.ondragstart = null; + + isDragging = false; + + if (options.end) { + options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) { + if (isDragging) return; + document.onselectstart = function() { return false; }; + document.ondragstart = function() { return false; }; + + if (!supportTouch) { + document.addEventListener('mousemove', moveFn); + document.addEventListener('mouseup', endFn); + } + isDragging = true; + + if (options.start) { + event.preventDefault(); + options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }); + + if (supportTouch) { + element.addEventListener('touchmove', moveFn); + element.addEventListener('touchend', endFn); + element.addEventListener('touchcancel', endFn); + } +};; + + +/***/ }, +/* 74 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +var exportObj = {}; + +if (!__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) { + var docStyle = document.documentElement.style; + var engine; + var translate3d = false; + + if (window.opera && Object.prototype.toString.call(opera) === '[object Opera]') { + engine = 'presto'; + } else if ('MozAppearance' in docStyle) { + engine = 'gecko'; + } else if ('WebkitAppearance' in docStyle) { + engine = 'webkit'; + } else if (typeof navigator.cpuClass === 'string') { + engine = 'trident'; + } + + var cssPrefix = {trident: '-ms-', gecko: '-moz-', webkit: '-webkit-', presto: '-o-'}[engine]; + + var vendorPrefix = {trident: 'ms', gecko: 'Moz', webkit: 'Webkit', presto: 'O'}[engine]; + + var helperElem = document.createElement('div'); + var perspectiveProperty = vendorPrefix + 'Perspective'; + var transformProperty = vendorPrefix + 'Transform'; + var transformStyleName = cssPrefix + 'transform'; + var transitionProperty = vendorPrefix + 'Transition'; + var transitionStyleName = cssPrefix + 'transition'; + var transitionEndProperty = vendorPrefix.toLowerCase() + 'TransitionEnd'; + + if (helperElem.style[perspectiveProperty] !== undefined) { + translate3d = true; + } + + var getTranslate = function(element) { + var result = {left: 0, top: 0}; + if (element === null || element.style === null) return result; + + var transform = element.style[transformProperty]; + var matches = /translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/ig.exec(transform); + if (matches) { + result.left = +matches[1]; + result.top = +matches[3]; + } + + return result; + }; + + var translateElement = function(element, x, y) { + if (x === null && y === null) return; + + if (element === null || element === undefined || element.style === null) return; + + if (!element.style[transformProperty] && x === 0 && y === 0) return; + + if (x === null || y === null) { + var translate = getTranslate(element); + if (x === null) { + x = translate.left; + } + if (y === null) { + y = translate.top; + } + } + + cancelTranslateElement(element); + + if (translate3d) { + element.style[transformProperty] += ' translate(' + (x ? (x + 'px') : '0px') + ',' + (y ? (y + 'px') : '0px') + ') translateZ(0px)'; + } else { + element.style[transformProperty] += ' translate(' + (x ? (x + 'px') : '0px') + ',' + (y ? (y + 'px') : '0px') + ')'; + } + }; + + var cancelTranslateElement = function(element) { + if (element === null || element.style === null) return; + var transformValue = element.style[transformProperty]; + if (transformValue) { + transformValue = transformValue.replace(/translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/g, ''); + element.style[transformProperty] = transformValue; + } + }; + exportObj = { + transformProperty: transformProperty, + transformStyleName: transformStyleName, + transitionProperty: transitionProperty, + transitionStyleName: transitionStyleName, + transitionEndProperty: transitionEndProperty, + getElementTranslate: getTranslate, + translateElement: translateElement, + cancelTranslateElement: cancelTranslateElement + }; +}; + +/* harmony default export */ exports["a"] = exportObj; + + +/***/ }, +/* 75 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_progress_vue__ = __webpack_require__(147); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_progress_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_progress_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_progress_vue___default.a; }); + + + +/***/ }, +/* 76 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_radio_vue__ = __webpack_require__(148); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_radio_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_radio_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_radio_vue___default.a; }); + + + +/***/ }, +/* 77 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_vue__ = __webpack_require__(149); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_vue___default.a; }); + + + +/***/ }, +/* 78 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +var isDragging = false; + +var supportTouch = !__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && 'ontouchstart' in window; + +/* harmony default export */ exports["a"] = function(element, options) { + var moveFn = function(event) { + if (options.drag) { + options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + var endFn = function(event) { + if (!supportTouch) { + document.removeEventListener('mousemove', moveFn); + document.removeEventListener('mouseup', endFn); + } + document.onselectstart = null; + document.ondragstart = null; + + isDragging = false; + + if (options.end) { + options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) { + if (isDragging) return; + event.preventDefault(); + document.onselectstart = function() { return false; }; + document.ondragstart = function() { return false; }; + + if (!supportTouch) { + document.addEventListener('mousemove', moveFn); + document.addEventListener('mouseup', endFn); + } + isDragging = true; + + if (options.start) { + options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }); + + if (supportTouch) { + element.addEventListener('touchmove', moveFn); + element.addEventListener('touchend', endFn); + element.addEventListener('touchcancel', endFn); + } +};; + + +/***/ }, +/* 79 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_search_vue__ = __webpack_require__(150); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_search_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_search_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_search_vue___default.a; }); + + + +/***/ }, +/* 80 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(4); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue__ = __webpack_require__(155); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue___default.a; }); + + + + +/***/ }, +/* 81 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue__ = __webpack_require__(156); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_swipe_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue___default.a; }); + + + +/***/ }, +/* 82 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_switch_vue__ = __webpack_require__(157); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_switch_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_switch_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_switch_vue___default.a; }); + + + +/***/ }, +/* 83 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue__ = __webpack_require__(158); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue___default.a; }); + + + +/***/ }, +/* 84 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue__ = __webpack_require__(159); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue___default.a; }); + + + +/***/ }, +/* 85 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue__ = __webpack_require__(160); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue___default.a; }); + + + +/***/ }, +/* 86 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue__ = __webpack_require__(161); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue___default.a; }); + + + +/***/ }, +/* 87 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_toast_js__ = __webpack_require__(88); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__src_toast_js__["a"]; }); + + + +/***/ }, +/* 88 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); + + +var ToastConstructor = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__webpack_require__(162)); +var toastPool = []; + +var getAnInstance = function () { + if (toastPool.length > 0) { + var instance = toastPool[0]; + toastPool.splice(0, 1); + return instance; + } + return new ToastConstructor({ + el: document.createElement('div') + }); +}; + +var returnAnInstance = function (instance) { + if (instance) { + toastPool.push(instance); + } +}; + +var removeDom = function (event) { + if (event.target.parentNode) { + event.target.parentNode.removeChild(event.target); + } +}; + +ToastConstructor.prototype.close = function() { + this.visible = false; + this.$el.addEventListener('transitionend', removeDom); + this.closed = true; + returnAnInstance(this); +}; + +var Toast = function (options) { + if ( options === void 0 ) options = {}; + + var duration = options.duration || 3000; + + var instance = getAnInstance(); + instance.closed = false; + clearTimeout(instance.timer); + instance.message = typeof options === 'string' ? options : options.message; + instance.position = options.position || 'middle'; + instance.className = options.className || ''; + instance.iconClass = options.iconClass || ''; + + document.body.appendChild(instance.$el); + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function() { + instance.visible = true; + instance.$el.removeEventListener('transitionend', removeDom); + ~duration && (instance.timer = setTimeout(function() { + if (instance.closed) return; + instance.close(); + }, duration)); + }); + return instance; +}; + +/* harmony default export */ exports["a"] = Toast; + + +/***/ }, +/* 89 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +function broadcast(componentName, eventName, params) { + this.$children.forEach(function (child) { + var name = child.$options.componentName; + + if (name === componentName) { + child.$emit.apply(child, [eventName].concat(params)); + } else { + broadcast.apply(child, [componentName, eventName].concat(params)); + } + }); +} +/* harmony default export */ exports["a"] = { + methods: { + dispatch: function dispatch(componentName, eventName, params) { + var parent = this.$parent; + var name = parent.$options.componentName; + + while (parent && (!name || name !== componentName)) { + parent = parent.$parent; + + if (parent) { + name = parent.$options.componentName; + } + } + if (parent) { + parent.$emit.apply(parent, [eventName].concat(params)); + } + }, + broadcast: function broadcast$1(componentName, eventName, params) { + broadcast.call(this, componentName, eventName, params); + } + } +}; + + +/***/ }, +/* 90 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__ = __webpack_require__(3); + + + +var hasModal = false; + +var getModal = function() { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + var modalDom = PopupManager.modalDom; + if (modalDom) { + hasModal = true; + } else { + hasModal = false; + modalDom = document.createElement('div'); + PopupManager.modalDom = modalDom; + + modalDom.addEventListener('touchmove', function(event) { + event.preventDefault(); + event.stopPropagation(); + }); + + modalDom.addEventListener('click', function() { + PopupManager.doOnModalClick && PopupManager.doOnModalClick(); + }); + } + + return modalDom; +}; + +var instances = {}; + +var PopupManager = { + zIndex: 2000, + + modalFade: true, + + getInstance: function(id) { + return instances[id]; + }, + + register: function(id, instance) { + if (id && instance) { + instances[id] = instance; + } + }, + + deregister: function(id) { + if (id) { + instances[id] = null; + delete instances[id]; + } + }, + + nextZIndex: function() { + return PopupManager.zIndex++; + }, + + modalStack: [], + + doOnModalClick: function() { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + + var instance = PopupManager.getInstance(topItem.id); + if (instance && instance.closeOnClickModal) { + instance.close(); + } + }, + + openModal: function(id, zIndex, dom, modalClass, modalFade) { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (!id || zIndex === undefined) return; + this.modalFade = modalFade; + + var modalStack = this.modalStack; + + for (var i = 0, j = modalStack.length; i < j; i++) { + var item = modalStack[i]; + if (item.id === id) { + return; + } + } + + var modalDom = getModal(); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal'); + if (this.modalFade && !hasModal) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-enter'); + } + if (modalClass) { + var classArr = modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, item); }); + } + setTimeout(function () { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-enter'); + }, 200); + + if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) { + dom.parentNode.appendChild(modalDom); + } else { + document.body.appendChild(modalDom); + } + + if (zIndex) { + modalDom.style.zIndex = zIndex; + } + modalDom.style.display = ''; + + this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass }); + }, + + closeModal: function(id) { + var modalStack = this.modalStack; + var modalDom = getModal(); + + if (modalStack.length > 0) { + var topItem = modalStack[modalStack.length - 1]; + if (topItem.id === id) { + if (topItem.modalClass) { + var classArr = topItem.modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, item); }); + } + + modalStack.pop(); + if (modalStack.length > 0) { + modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex; + } + } else { + for (var i = modalStack.length - 1; i >= 0; i--) { + if (modalStack[i].id === id) { + modalStack.splice(i, 1); + break; + } + } + } + } + + if (modalStack.length === 0) { + if (this.modalFade) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-leave'); + } + setTimeout(function () { + if (modalStack.length === 0) { + if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom); + modalDom.style.display = 'none'; + PopupManager.modalDom = undefined; + } + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-leave'); + }, 200); + } + } +}; +!__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && window.addEventListener('keydown', function(event) { + if (event.keyCode === 27) { // ESC + if (PopupManager.modalStack.length > 0) { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + var instance = PopupManager.getInstance(topItem.id); + if (instance.closeOnPressEscape) { + instance.close(); + } + } + } +}); + +/* harmony default export */ exports["a"] = PopupManager; + + +/***/ }, +/* 91 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 92 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 93 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 94 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 95 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 96 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 97 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 98 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 99 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 100 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 101 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 102 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 103 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 104 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 105 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 106 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 107 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 108 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 109 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 110 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 111 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 112 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 113 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 114 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 115 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 116 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 117 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 118 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 119 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 120 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 121 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 122 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 123 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 124 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 125 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 126 */ +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, +/* 127 */ +/***/ function(module, exports) { + +module.exports = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiIgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiBmaWxsPSJ3aGl0ZSI+CiAgPHBhdGggb3BhY2l0eT0iLjI1IiBkPSJNMTYgMCBBMTYgMTYgMCAwIDAgMTYgMzIgQTE2IDE2IDAgMCAwIDE2IDAgTTE2IDQgQTEyIDEyIDAgMCAxIDE2IDI4IEExMiAxMiAwIDAgMSAxNiA0Ii8+CiAgPHBhdGggZD0iTTE2IDAgQTE2IDE2IDAgMCAxIDMyIDE2IEwyOCAxNiBBMTIgMTIgMCAwIDAgMTYgNHoiPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgMTYgMTYiIHRvPSIzNjAgMTYgMTYiIGR1cj0iMC44cyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgPC9wYXRoPgo8L3N2Zz4K" + +/***/ }, +/* 128 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(100) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(15), + /* template */ + __webpack_require__(171), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 129 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(102) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(16), + /* template */ + __webpack_require__(173), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 130 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(106) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(17), + /* template */ + __webpack_require__(177), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 131 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(98) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(18), + /* template */ + __webpack_require__(169), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 132 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(113) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(19), + /* template */ + __webpack_require__(185), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 133 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(124) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(20), + /* template */ + __webpack_require__(196), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 134 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(109) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(21), + /* template */ + __webpack_require__(181), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 135 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(116) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(22), + /* template */ + __webpack_require__(187), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 136 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(108) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(23), + /* template */ + __webpack_require__(179), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 137 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(93) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(24), + /* template */ + __webpack_require__(164), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 138 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(94) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(25), + /* template */ + __webpack_require__(165), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 139 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(119) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(26), + /* template */ + __webpack_require__(191), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 140 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(121) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(27), + /* template */ + __webpack_require__(193), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 141 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(114) + __webpack_require__(115) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(28), + /* template */ + __webpack_require__(186), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 142 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(123) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(29), + /* template */ + __webpack_require__(195), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 143 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(112) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(30), + /* template */ + __webpack_require__(184), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 144 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(92) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(31), + /* template */ + __webpack_require__(163), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 145 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(126) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(32), + /* template */ + __webpack_require__(198), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 146 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(120) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(33), + /* template */ + __webpack_require__(192), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 147 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(96) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(34), + /* template */ + __webpack_require__(167), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 148 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(118) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(35), + /* template */ + __webpack_require__(190), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 149 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(122) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(36), + /* template */ + __webpack_require__(194), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 150 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(125) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(37), + /* template */ + __webpack_require__(197), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 151 */ +/***/ function(module, exports, __webpack_require__) { + +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(38), + /* template */ + __webpack_require__(189), + /* styles */ + null, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 152 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(111) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(40), + /* template */ + __webpack_require__(183), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 153 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(103) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(42), + /* template */ + __webpack_require__(174), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 154 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(99) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(43), + /* template */ + __webpack_require__(170), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 155 */ +/***/ function(module, exports, __webpack_require__) { + +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(44), + /* template */ + __webpack_require__(180), + /* styles */ + null, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 156 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(95) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(45), + /* template */ + __webpack_require__(166), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 157 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(107) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(46), + /* template */ + __webpack_require__(178), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 158 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(117) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(47), + /* template */ + __webpack_require__(188), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 159 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(101) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(48), + /* template */ + __webpack_require__(172), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 160 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(105) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(49), + /* template */ + __webpack_require__(176), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 161 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(110) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(50), + /* template */ + __webpack_require__(182), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 162 */ +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(97) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(51), + /* template */ + __webpack_require__(168), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, +/* 163 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "picker-slot", + class: _vm.classNames, + style: (_vm.flexStyle) + }, [(!_vm.divider) ? _c('div', { + ref: "wrapper", + staticClass: "picker-slot-wrapper", + class: { + dragging: _vm.dragging + }, + style: ({ + height: _vm.contentHeight + 'px' + }) + }, _vm._l((_vm.mutatingValues), function(itemValue) { + return _c('div', { + staticClass: "picker-item", + class: { + 'picker-selected': itemValue === _vm.currentValue + }, + style: ({ + height: _vm.itemHeight + 'px', + lineHeight: _vm.itemHeight + 'px' + }) + }, [_vm._v("\n " + _vm._s(typeof itemValue === 'object' && itemValue[_vm.valueKey] ? itemValue[_vm.valueKey] : itemValue) + "\n ")]) + })) : _vm._e(), _vm._v(" "), (_vm.divider) ? _c('div', [_vm._v(_vm._s(_vm.content))]) : _vm._e()]) +},staticRenderFns: []} + +/***/ }, +/* 164 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-indexlist" + }, [_c('ul', { + ref: "content", + staticClass: "mint-indexlist-content", + style: ({ + 'height': _vm.currentHeight + 'px', + 'margin-right': _vm.navWidth + 'px' + }) + }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { + ref: "nav", + staticClass: "mint-indexlist-nav", + on: { + "touchstart": _vm.handleTouchStart + } + }, [_c('ul', { + staticClass: "mint-indexlist-navlist" + }, _vm._l((_vm.sections), function(section) { + return _c('li', { + staticClass: "mint-indexlist-navitem" + }, [_vm._v(_vm._s(section.index))]) + }))]), _vm._v(" "), (_vm.showIndicator) ? _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.moving), + expression: "moving" + }], + staticClass: "mint-indexlist-indicator" + }, [_vm._v(_vm._s(_vm.currentIndicator))]) : _vm._e()]) +},staticRenderFns: []} + +/***/ }, +/* 165 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('li', { + staticClass: "mint-indexsection" + }, [_c('p', { + staticClass: "mint-indexsection-index" + }, [_vm._v(_vm._s(_vm.index))]), _vm._v(" "), _c('ul', [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 166 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-swipe" + }, [_c('div', { + ref: "wrap", + staticClass: "mint-swipe-items-wrap" + }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showIndicators), + expression: "showIndicators" + }], + staticClass: "mint-swipe-indicators" + }, _vm._l((_vm.pages), function(page, $index) { + return _c('div', { + staticClass: "mint-swipe-indicator", + class: { + 'is-active': $index === _vm.index + } + }) + }))]) +},staticRenderFns: []} + +/***/ }, +/* 167 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mt-progress" + }, [_vm._t("start"), _vm._v(" "), _c('div', { + staticClass: "mt-progress-content" + }, [_c('div', { + staticClass: "mt-progress-runway", + style: ({ + height: _vm.barHeight + 'px' + }) + }), _vm._v(" "), _c('div', { + staticClass: "mt-progress-progress", + style: ({ + width: _vm.value + '%', + height: _vm.barHeight + 'px' + }) + })]), _vm._v(" "), _vm._t("end")], 2) +},staticRenderFns: []} + +/***/ }, +/* 168 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": "mint-toast-pop" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.visible), + expression: "visible" + }], + staticClass: "mint-toast", + class: _vm.customClass, + style: ({ + 'padding': _vm.iconClass === '' ? '10px' : '20px' + }) + }, [(_vm.iconClass !== '') ? _c('i', { + staticClass: "mint-toast-icon", + class: _vm.iconClass + }) : _vm._e(), _vm._v(" "), _c('span', { + staticClass: "mint-toast-text", + style: ({ + 'padding-top': _vm.iconClass === '' ? '0' : '10px' + }) + }, [_vm._v(_vm._s(_vm.message))])])]) +},staticRenderFns: []} + +/***/ }, +/* 169 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('x-cell', { + directives: [{ + name: "clickoutside", + rawName: "v-clickoutside:touchstart", + value: (_vm.swipeMove), + expression: "swipeMove", + arg: "touchstart" + }], + ref: "cell", + staticClass: "mint-cell-swipe", + attrs: { + "title": _vm.title, + "icon": _vm.icon, + "label": _vm.label, + "to": _vm.to, + "is-link": _vm.isLink, + "value": _vm.value + }, + nativeOn: { + "click": function($event) { + _vm.swipeMove() + }, + "touchstart": function($event) { + _vm.startDrag($event) + }, + "touchmove": function($event) { + _vm.onDrag($event) + }, + "touchend": function($event) { + _vm.endDrag($event) + } + } + }, [_c('div', { + ref: "right", + staticClass: "mint-cell-swipe-buttongroup", + slot: "right" + }, _vm._l((_vm.right), function(btn) { + return _c('a', { + staticClass: "mint-cell-swipe-button", + style: (btn.style), + domProps: { + "innerHTML": _vm._s(btn.content) + }, + on: { + "click": function($event) { + $event.preventDefault(); + $event.stopPropagation(); + btn.handler && btn.handler(), _vm.swipeMove() + } + } + }) + })), _vm._v(" "), _c('div', { + ref: "left", + staticClass: "mint-cell-swipe-buttongroup", + slot: "left" + }, _vm._l((_vm.left), function(btn) { + return _c('a', { + staticClass: "mint-cell-swipe-button", + style: (btn.style), + domProps: { + "innerHTML": _vm._s(btn.content) + }, + on: { + "click": function($event) { + $event.preventDefault(); + $event.stopPropagation(); + btn.handler && btn.handler(), _vm.swipeMove() + } + } + }) + })), _vm._v(" "), _vm._t("default"), _vm._v(" "), (_vm.$slots.title) ? _c('span', { + slot: "title" + }, [_vm._t("title")], 2) : _vm._e(), _vm._v(" "), (_vm.$slots.icon) ? _c('span', { + slot: "icon" + }, [_vm._t("icon")], 2) : _vm._e()], 2) +},staticRenderFns: []} + +/***/ }, +/* 170 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-spinner-triple-bounce" + }, [_c('div', { + staticClass: "mint-spinner-triple-bounce-bounce1", + style: (_vm.bounceStyle) + }), _vm._v(" "), _c('div', { + staticClass: "mint-spinner-triple-bounce-bounce2", + style: (_vm.bounceStyle) + }), _vm._v(" "), _c('div', { + staticClass: "mint-spinner-triple-bounce-bounce3", + style: (_vm.bounceStyle) + })]) +},staticRenderFns: []} + +/***/ }, +/* 171 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": "actionsheet-float" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-actionsheet" + }, [_c('ul', { + staticClass: "mint-actionsheet-list", + style: ({ + 'margin-bottom': _vm.cancelText ? '5px' : '0' + }) + }, _vm._l((_vm.actions), function(item, index) { + return _c('li', { + staticClass: "mint-actionsheet-listitem", + on: { + "click": function($event) { + $event.stopPropagation(); + _vm.itemClick(item, index) + } + } + }, [_vm._v(_vm._s(item.name))]) + })), _vm._v(" "), (_vm.cancelText) ? _c('a', { + staticClass: "mint-actionsheet-button", + on: { + "click": function($event) { + $event.stopPropagation(); + _vm.currentValue = false + } + } + }, [_vm._v(_vm._s(_vm.cancelText))]) : _vm._e()])]) +},staticRenderFns: []} + +/***/ }, +/* 172 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-tab-container", + on: { + "touchstart": _vm.startDrag, + "mousedown": _vm.startDrag, + "touchmove": _vm.onDrag, + "mousemove": _vm.onDrag, + "mouseup": _vm.endDrag, + "touchend": _vm.endDrag + } + }, [_c('div', { + ref: "wrap", + staticClass: "mint-tab-container-wrap" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 173 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('span', { + staticClass: "mint-badge", + class: ['is-' + _vm.type, 'is-size-' + _vm.size], + style: ({ + backgroundColor: _vm.color + }) + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, +/* 174 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-spinner-snake", + style: ({ + 'border-top-color': _vm.spinnerColor, + 'border-left-color': _vm.spinnerColor, + 'border-bottom-color': _vm.spinnerColor, + 'height': _vm.spinnerSize, + 'width': _vm.spinnerSize + }) + }) +},staticRenderFns: []} + +/***/ }, +/* 175 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + class: ['mint-spinner-fading-circle circle-color-' + _vm._uid], + style: ({ + width: _vm.spinnerSize, + height: _vm.spinnerSize + }) + }, _vm._l((12), function(n) { + return _c('div', { + staticClass: "mint-spinner-fading-circle-circle", + class: ['is-circle' + (n + 1)] + }) + })) +},staticRenderFns: []} + +/***/ }, +/* 176 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('a', { + staticClass: "mint-tab-item", + class: { + 'is-selected': _vm.$parent.value === _vm.id + }, + on: { + "click": function($event) { + _vm.$parent.$emit('input', _vm.id) + } + } + }, [_c('div', { + staticClass: "mint-tab-item-icon" + }, [_vm._t("icon")], 2), _vm._v(" "), _c('div', { + staticClass: "mint-tab-item-label" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 177 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('button', { + staticClass: "mint-button", + class: ['mint-button--' + _vm.type, 'mint-button--' + _vm.size, { + 'is-disabled': _vm.disabled, + 'is-plain': _vm.plain + }], + attrs: { + "type": _vm.nativeType, + "disabled": _vm.disabled + }, + on: { + "click": _vm.handleClick + } + }, [(_vm.icon || _vm.$slots.icon) ? _c('span', { + staticClass: "mint-button-icon" + }, [_vm._t("icon", [(_vm.icon) ? _c('i', { + staticClass: "mintui", + class: 'mintui-' + _vm.icon + }) : _vm._e()])], 2) : _vm._e(), _vm._v(" "), _c('label', { + staticClass: "mint-button-text" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 178 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('label', { + staticClass: "mint-switch" + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-switch-input", + attrs: { + "disabled": _vm.disabled, + "type": "checkbox" + }, + domProps: { + "checked": Array.isArray(_vm.currentValue) ? _vm._i(_vm.currentValue, null) > -1 : (_vm.currentValue) + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + }, + "__c": function($event) { + var $$a = _vm.currentValue, + $$el = $event.target, + $$c = $$el.checked ? (true) : (false); + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v); + if ($$c) { + $$i < 0 && (_vm.currentValue = $$a.concat($$v)) + } else { + $$i > -1 && (_vm.currentValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1))) + } + } else { + _vm.currentValue = $$c + } + } + } + }), _vm._v(" "), _c('span', { + staticClass: "mint-switch-core" + }), _vm._v(" "), _c('div', { + staticClass: "mint-switch-label" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 179 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('header', { + staticClass: "mint-header", + class: { + 'is-fixed': _vm.fixed + } + }, [_c('div', { + staticClass: "mint-header-button is-left" + }, [_vm._t("left")], 2), _vm._v(" "), _c('h1', { + staticClass: "mint-header-title", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), _c('div', { + staticClass: "mint-header-button is-right" + }, [_vm._t("right")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 180 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-swipe-item" + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, +/* 181 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('mt-popup', { + staticClass: "mint-datetime", + attrs: { + "closeOnClickModal": _vm.closeOnClickModal, + "position": "bottom" + }, + model: { + value: (_vm.visible), + callback: function($$v) { + _vm.visible = $$v + }, + expression: "visible" + } + }, [_c('mt-picker', { + ref: "picker", + staticClass: "mint-datetime-picker", + attrs: { + "slots": _vm.dateSlots, + "visible-item-count": _vm.visibleItemCount, + "show-toolbar": "" + }, + on: { + "change": _vm.onChange + } + }, [_c('span', { + staticClass: "mint-datetime-action mint-datetime-cancel", + on: { + "click": function($event) { + _vm.visible = false; + _vm.$emit('cancel') + } + } + }, [_vm._v(_vm._s(_vm.cancelText))]), _vm._v(" "), _c('span', { + staticClass: "mint-datetime-action mint-datetime-confirm", + on: { + "click": _vm.confirm + } + }, [_vm._v(_vm._s(_vm.confirmText))])])], 1) +},staticRenderFns: []} + +/***/ }, +/* 182 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-tabbar", + class: { + 'is-fixed': _vm.fixed + } + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, +/* 183 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-spinner-double-bounce", + style: ({ + width: _vm.spinnerSize, + height: _vm.spinnerSize + }) + }, [_c('div', { + staticClass: "mint-spinner-double-bounce-bounce1", + style: ({ + backgroundColor: _vm.spinnerColor + }) + }), _vm._v(" "), _c('div', { + staticClass: "mint-spinner-double-bounce-bounce2", + style: ({ + backgroundColor: _vm.spinnerColor + }) + })]) +},staticRenderFns: []} + +/***/ }, +/* 184 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-palette-button", + class: { + expand: _vm.expanded, 'mint-palette-button-active': _vm.transforming + }, + on: { + "animationend": _vm.onMainAnimationEnd, + "webkitAnimationEnd": _vm.onMainAnimationEnd, + "mozAnimationEnd": _vm.onMainAnimationEnd + } + }, [_c('div', { + staticClass: "mint-sub-button-container" + }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { + staticClass: "mint-main-button", + style: (_vm.mainButtonStyle), + on: { + "touchstart": _vm.toggle + } + }, [_vm._v("\n " + _vm._s(_vm.content) + "\n ")])]) +},staticRenderFns: []} + +/***/ }, +/* 185 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('a', { + staticClass: "mint-cell", + attrs: { + "href": _vm.href + } + }, [(_vm.isLink) ? _c('span', { + staticClass: "mint-cell-mask" + }) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "mint-cell-left" + }, [_vm._t("left")], 2), _vm._v(" "), _c('div', { + staticClass: "mint-cell-wrapper" + }, [_c('div', { + staticClass: "mint-cell-title" + }, [_vm._t("icon", [(_vm.icon) ? _c('i', { + staticClass: "mintui", + class: 'mintui-' + _vm.icon + }) : _vm._e()]), _vm._v(" "), _vm._t("title", [_c('span', { + staticClass: "mint-cell-text", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), (_vm.label) ? _c('span', { + staticClass: "mint-cell-label", + domProps: { + "textContent": _vm._s(_vm.label) + } + }) : _vm._e()])], 2), _vm._v(" "), _c('div', { + staticClass: "mint-cell-value", + class: { + 'is-link': _vm.isLink + } + }, [_vm._t("default", [_c('span', { + domProps: { + "textContent": _vm._s(_vm.value) + } + })])], 2), _vm._v(" "), (_vm.isLink) ? _c('i', { + staticClass: "mint-cell-allow-right" + }) : _vm._e()]), _vm._v(" "), _c('div', { + staticClass: "mint-cell-right" + }, [_vm._t("right")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 186 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-msgbox-wrapper" + }, [_c('transition', { + attrs: { + "name": "msgbox-bounce" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.value), + expression: "value" + }], + staticClass: "mint-msgbox" + }, [(_vm.title !== '') ? _c('div', { + staticClass: "mint-msgbox-header" + }, [_c('div', { + staticClass: "mint-msgbox-title" + }, [_vm._v(_vm._s(_vm.title))])]) : _vm._e(), _vm._v(" "), (_vm.message !== '') ? _c('div', { + staticClass: "mint-msgbox-content" + }, [_c('div', { + staticClass: "mint-msgbox-message", + domProps: { + "innerHTML": _vm._s(_vm.message) + } + }), _vm._v(" "), _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showInput), + expression: "showInput" + }], + staticClass: "mint-msgbox-input" + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.inputValue), + expression: "inputValue" + }], + ref: "input", + attrs: { + "placeholder": _vm.inputPlaceholder + }, + domProps: { + "value": (_vm.inputValue) + }, + on: { + "input": function($event) { + if ($event.target.composing) { return; } + _vm.inputValue = $event.target.value + } + } + }), _vm._v(" "), _c('div', { + staticClass: "mint-msgbox-errormsg", + style: ({ + visibility: !!_vm.editorErrorMessage ? 'visible' : 'hidden' + }) + }, [_vm._v(_vm._s(_vm.editorErrorMessage))])])]) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "mint-msgbox-btns" + }, [_c('button', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showCancelButton), + expression: "showCancelButton" + }], + class: [_vm.cancelButtonClasses], + on: { + "click": function($event) { + _vm.handleAction('cancel') + } + } + }, [_vm._v(_vm._s(_vm.cancelButtonText))]), _vm._v(" "), _c('button', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showConfirmButton), + expression: "showConfirmButton" + }], + class: [_vm.confirmButtonClasses], + on: { + "click": function($event) { + _vm.handleAction('confirm') + } + } + }, [_vm._v(_vm._s(_vm.confirmButtonText))])])])])], 1) +},staticRenderFns: []} + +/***/ }, +/* 187 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('x-cell', { + directives: [{ + name: "clickoutside", + rawName: "v-clickoutside", + value: (_vm.doCloseActive), + expression: "doCloseActive" + }], + staticClass: "mint-field", + class: [{ + 'is-textarea': _vm.type === 'textarea', + 'is-nolabel': !_vm.label + }], + attrs: { + "title": _vm.label + } + }, [(_vm.type === 'textarea') ? _c('textarea', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + ref: "textarea", + staticClass: "mint-field-core", + attrs: { + "placeholder": _vm.placeholder, + "rows": _vm.rows, + "disabled": _vm.disabled, + "readonly": _vm.readonly + }, + domProps: { + "value": (_vm.currentValue) + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + }, + "input": function($event) { + if ($event.target.composing) { return; } + _vm.currentValue = $event.target.value + } + } + }) : _c('input', { + ref: "input", + staticClass: "mint-field-core", + attrs: { + "placeholder": _vm.placeholder, + "number": _vm.type === 'number', + "type": _vm.type, + "disabled": _vm.disabled, + "readonly": _vm.readonly + }, + domProps: { + "value": _vm.currentValue + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + }, + "focus": function($event) { + _vm.active = true + }, + "input": _vm.handleInput + } + }), _vm._v(" "), (!_vm.disableClear) ? _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.currentValue && _vm.type !== 'textarea' && _vm.active), + expression: "currentValue && type !== 'textarea' && active" + }], + staticClass: "mint-field-clear", + on: { + "click": _vm.handleClear + } + }, [_c('i', { + staticClass: "mintui mintui-field-error" + })]) : _vm._e(), _vm._v(" "), (_vm.state) ? _c('span', { + staticClass: "mint-field-state", + class: ['is-' + _vm.state] + }, [_c('i', { + staticClass: "mintui", + class: ['mintui-field-' + _vm.state] + })]) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "mint-field-other" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 188 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.$parent.swiping || _vm.id === _vm.$parent.currentActive), + expression: "$parent.swiping || id === $parent.currentActive" + }], + staticClass: "mint-tab-container-item" + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, +/* 189 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('span', [_c(_vm.spinner, { + tag: "component" + })], 1) +},staticRenderFns: []} + +/***/ }, +/* 190 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-radiolist", + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + } + } + }, [_c('label', { + staticClass: "mint-radiolist-title", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), _vm._l((_vm.options), function(option) { + return _c('x-cell', [_c('label', { + staticClass: "mint-radiolist-label", + slot: "title" + }, [_c('span', { + staticClass: "mint-radio", + class: { + 'is-right': _vm.align === 'right' + } + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-radio-input", + attrs: { + "type": "radio", + "disabled": option.disabled + }, + domProps: { + "value": option.value || option, + "checked": _vm._q(_vm.currentValue, option.value || option) + }, + on: { + "__c": function($event) { + _vm.currentValue = option.value || option + } + } + }), _vm._v(" "), _c('span', { + staticClass: "mint-radio-core" + })]), _vm._v(" "), _c('span', { + staticClass: "mint-radio-label", + domProps: { + "textContent": _vm._s(option.label || option) + } + })])]) + })], 2) +},staticRenderFns: []} + +/***/ }, +/* 191 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": "mint-indicator" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.visible), + expression: "visible" + }], + staticClass: "mint-indicator" + }, [_c('div', { + staticClass: "mint-indicator-wrapper", + style: ({ + 'padding': _vm.text ? '20px' : '15px' + }) + }, [_c('spinner', { + staticClass: "mint-indicator-spin", + attrs: { + "type": _vm.convertedSpinnerType, + "size": 32 + } + }), _vm._v(" "), _c('span', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.text), + expression: "text" + }], + staticClass: "mint-indicator-text" + }, [_vm._v(_vm._s(_vm.text))])], 1), _vm._v(" "), _c('div', { + staticClass: "mint-indicator-mask", + on: { + "touchmove": function($event) { + $event.stopPropagation(); + $event.preventDefault(); + } + } + })])]) +},staticRenderFns: []} + +/***/ }, +/* 192 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": _vm.currentTransition + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-popup", + class: [_vm.position ? 'mint-popup-' + _vm.position : ''] + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 193 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-loadmore" + }, [_c('div', { + staticClass: "mint-loadmore-content", + class: { + 'is-dropped': _vm.topDropped || _vm.bottomDropped + }, + style: ({ + 'transform': _vm.transform + }) + }, [_vm._t("top", [(_vm.topMethod) ? _c('div', { + staticClass: "mint-loadmore-top" + }, [(_vm.topStatus === 'loading') ? _c('spinner', { + staticClass: "mint-loadmore-spinner", + attrs: { + "size": 20, + "type": "fading-circle" + } + }) : _vm._e(), _vm._v(" "), _c('span', { + staticClass: "mint-loadmore-text" + }, [_vm._v(_vm._s(_vm.topText))])], 1) : _vm._e()]), _vm._v(" "), _vm._t("default"), _vm._v(" "), _vm._t("bottom", [(_vm.bottomMethod) ? _c('div', { + staticClass: "mint-loadmore-bottom" + }, [(_vm.bottomStatus === 'loading') ? _c('spinner', { + staticClass: "mint-loadmore-spinner", + attrs: { + "size": 20, + "type": "fading-circle" + } + }) : _vm._e(), _vm._v(" "), _c('span', { + staticClass: "mint-loadmore-text" + }, [_vm._v(_vm._s(_vm.bottomText))])], 1) : _vm._e()])], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 194 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mt-range", + class: { + 'mt-range--disabled': _vm.disabled + } + }, [_vm._t("start"), _vm._v(" "), _c('div', { + ref: "content", + staticClass: "mt-range-content" + }, [_c('div', { + staticClass: "mt-range-runway", + style: ({ + 'border-top-width': _vm.barHeight + 'px' + }) + }), _vm._v(" "), _c('div', { + staticClass: "mt-range-progress", + style: ({ + width: _vm.progress + '%', + height: _vm.barHeight + 'px' + }) + }), _vm._v(" "), _c('div', { + ref: "thumb", + staticClass: "mt-range-thumb", + style: ({ + left: _vm.progress + '%' + }) + })]), _vm._v(" "), _vm._t("end")], 2) +},staticRenderFns: []} + +/***/ }, +/* 195 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-navbar", + class: { + 'is-fixed': _vm.fixed + } + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, +/* 196 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-checklist", + class: { + 'is-limit': _vm.max <= _vm.currentValue.length + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + } + } + }, [_c('label', { + staticClass: "mint-checklist-title", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), _vm._l((_vm.options), function(option) { + return _c('x-cell', [_c('label', { + staticClass: "mint-checklist-label", + slot: "title" + }, [_c('span', { + staticClass: "mint-checkbox", + class: { + 'is-right': _vm.align === 'right' + } + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-checkbox-input", + attrs: { + "type": "checkbox", + "disabled": option.disabled + }, + domProps: { + "value": option.value || option, + "checked": Array.isArray(_vm.currentValue) ? _vm._i(_vm.currentValue, option.value || option) > -1 : (_vm.currentValue) + }, + on: { + "__c": function($event) { + var $$a = _vm.currentValue, + $$el = $event.target, + $$c = $$el.checked ? (true) : (false); + if (Array.isArray($$a)) { + var $$v = option.value || option, + $$i = _vm._i($$a, $$v); + if ($$c) { + $$i < 0 && (_vm.currentValue = $$a.concat($$v)) + } else { + $$i > -1 && (_vm.currentValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1))) + } + } else { + _vm.currentValue = $$c + } + } + } + }), _vm._v(" "), _c('span', { + staticClass: "mint-checkbox-core" + })]), _vm._v(" "), _c('span', { + staticClass: "mint-checkbox-label", + domProps: { + "textContent": _vm._s(option.label || option) + } + })])]) + })], 2) +},staticRenderFns: []} + +/***/ }, +/* 197 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-search" + }, [_c('div', { + staticClass: "mint-searchbar" + }, [_c('div', { + staticClass: "mint-searchbar-inner" + }, [_c('i', { + staticClass: "mintui mintui-search" + }), _vm._v(" "), _c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + ref: "input", + staticClass: "mint-searchbar-core", + attrs: { + "type": "search", + "placeholder": _vm.placeholder + }, + domProps: { + "value": (_vm.currentValue) + }, + on: { + "click": function($event) { + _vm.visible = true + }, + "input": function($event) { + if ($event.target.composing) { return; } + _vm.currentValue = $event.target.value + } + } + })]), _vm._v(" "), _c('a', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.visible), + expression: "visible" + }], + staticClass: "mint-searchbar-cancel", + domProps: { + "textContent": _vm._s(_vm.cancelText) + }, + on: { + "click": function($event) { + _vm.visible = false, _vm.currentValue = '' + } + } + })]), _vm._v(" "), _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.show || _vm.currentValue), + expression: "show || currentValue" + }], + staticClass: "mint-search-list" + }, [_c('div', { + staticClass: "mint-search-list-warp" + }, [_vm._t("default", _vm._l((_vm.result), function(item, index) { + return _c('x-cell', { + key: index, + attrs: { + "title": item + } + }) + }))], 2)])]) +},staticRenderFns: []} + +/***/ }, +/* 198 */ +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "picker", + class: { + 'picker-3d': _vm.rotateEffect + } + }, [(_vm.showToolbar) ? _c('div', { + staticClass: "picker-toolbar" + }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "picker-items" + }, [_vm._l((_vm.slots), function(slot) { + return _c('picker-slot', { + attrs: { + "valueKey": _vm.valueKey, + "values": slot.values || [], + "text-align": slot.textAlign || 'center', + "visible-item-count": _vm.visibleItemCount, + "class-name": slot.className, + "flex": slot.flex, + "rotate-effect": _vm.rotateEffect, + "divider": slot.divider, + "content": slot.content, + "itemHeight": _vm.itemHeight, + "default-index": slot.defaultIndex + }, + model: { + value: (_vm.values[slot.valueIndex]), + callback: function($$v) { + var $$exp = _vm.values, + $$idx = slot.valueIndex; + if (!Array.isArray($$exp)) { + _vm.values[slot.valueIndex] = $$v + } else { + $$exp.splice($$idx, 1, $$v) + } + }, + expression: "values[slot.valueIndex]" + } + }) + }), _vm._v(" "), _c('div', { + staticClass: "picker-center-highlight", + style: ({ + height: _vm.itemHeight + 'px', + marginTop: -_vm.itemHeight / 2 + 'px' + }) + })], 2)]) +},staticRenderFns: []} + +/***/ }, +/* 199 */ +/***/ function(module, exports) { + +module.exports = require("array-find-index"); + +/***/ }, +/* 200 */ +/***/ function(module, exports) { + +module.exports = require("raf.js"); + +/***/ }, +/* 201 */ +/***/ function(module, exports) { + +module.exports = require("vue-lazyload"); + +/***/ }, +/* 202 */ +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(14); + + +/***/ } +/******/ ]); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/navbar/index.js b/src/main/web/static/mint-ui/navbar/index.js new file mode 100644 index 0000000000000000000000000000000000000000..b820b8abc2e538832ad96d3ccd9341fc42ef053a --- /dev/null +++ b/src/main/web/static/mint-ui/navbar/index.js @@ -0,0 +1,282 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 226); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 126: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 144: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(126) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(66), + /* template */ + __webpack_require__(196), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 196: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-navbar", + class: { + 'is-fixed': _vm.fixed + } + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 226: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(34); + + +/***/ }, + +/***/ 34: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue__ = __webpack_require__(144); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_navbar_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_navbar_vue___default.a; }); + + + +/***/ }, + +/***/ 66: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// + +/** + * mt-navbar + * @module components/navbar + * @desc 顶部 tab,依赖 tab-item + * + * @param {boolean} [fixed=false] - 固定底部 + * @param {*} selected - 返回 item component 传入的 value + * + * @example + * + * + * 订单 + * + * + * + * + * + * 订单 + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-navbar', + + props: { + fixed: Boolean, + value: {} + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/navbar/style.css b/src/main/web/static/mint-ui/navbar/style.css new file mode 100644 index 0000000000000000000000000000000000000000..ed534758e2d947a91b4a5a77c3232de9a4be845c --- /dev/null +++ b/src/main/web/static/mint-ui/navbar/style.css @@ -0,0 +1,35 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-navbar { + background-color: #fff; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + text-align: center; +} +.mint-navbar .mint-tab-item { + padding: 17px 0; + font-size: 15px +} +.mint-navbar .mint-tab-item:last-child { + border-right: 0; +} +.mint-navbar .mint-tab-item.is-selected { + border-bottom: 3px solid #26a2ff; + color: #26a2ff; + margin-bottom: -3px; +} +.mint-navbar.is-fixed { + top: 0; + right: 0; + left: 0; + position: fixed; + z-index: 1; +} diff --git a/src/main/web/static/mint-ui/palette-button/index.js b/src/main/web/static/mint-ui/palette-button/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4a5dc9abacae851d005b161597fbaddf7d86e78a --- /dev/null +++ b/src/main/web/static/mint-ui/palette-button/index.js @@ -0,0 +1,370 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 227); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 115: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 145: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(115) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(67), + /* template */ + __webpack_require__(185), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 185: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-palette-button", + class: { + expand: _vm.expanded, 'mint-palette-button-active': _vm.transforming + }, + on: { + "animationend": _vm.onMainAnimationEnd, + "webkitAnimationEnd": _vm.onMainAnimationEnd, + "mozAnimationEnd": _vm.onMainAnimationEnd + } + }, [_c('div', { + staticClass: "mint-sub-button-container" + }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { + staticClass: "mint-main-button", + style: (_vm.mainButtonStyle), + on: { + "touchstart": _vm.toggle + } + }, [_vm._v("\n " + _vm._s(_vm.content) + "\n ")])]) +},staticRenderFns: []} + +/***/ }, + +/***/ 227: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(35); + + +/***/ }, + +/***/ 35: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue__ = __webpack_require__(145); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_palette_button_vue___default.a; }); + + + +/***/ }, + +/***/ 67: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-palette-button', + + data: function() { + return { + transforming: false, // 是否正在执行动画 + expanded: false // 是否已经展开子按钮 + }; + }, + + props: { + content: { + type: String, + default: '' + }, + + offset: { + type: Number, // 扇面偏移角,默认是四分之π,配合默认方向lt + default: Math.PI / 4 + }, + + direction: { + type: String, + default: 'lt' // lt t rt this.radius rb b lb l 取值有8个方向,左上、上、右上、右、右下、下、左下、左,默认为左上 + }, + + radius: { + type: Number, + default: 90 + }, + + mainButtonStyle: { + type: String, // 应用到 mint-main-button 上的 class + default: '' + } + }, + methods: { + toggle: function toggle(event) { + if (!this.transforming) { + if (this.expanded) { + this.collapse(event); + } else { + this.expand(event); + } + } + }, + + onMainAnimationEnd: function onMainAnimationEnd(event) { + this.transforming = false; + this.$emit('expanded'); + }, + + expand: function expand(event) { + this.expanded = true; + this.transforming = true; + this.$emit('expand', event); + }, + + collapse: function collapse(event) { + this.expanded = false; + this.$emit('collapse', event); + } + }, + mounted: function mounted() { + var this$1 = this; + + this.slotChildren = []; + for (var i = 0; i < this.$slots.default.length; i++) { + if (this$1.$slots.default[i].elm.nodeType !== 3) { + this$1.slotChildren.push(this$1.$slots.default[i]); + } + } + + var css = ''; + var direction_arc = Math.PI * (3 + Math.max(['lt', 't', 'rt', 'r', 'rb', 'b', 'lb', 'l'].indexOf(this.direction), 0)) / 4; + for (var i$1 = 0; i$1 < this.slotChildren.length; i$1++) { + var arc = (Math.PI - this$1.offset * 2) / (this$1.slotChildren.length - 1) * i$1 + this$1.offset + direction_arc; + var x = (Math.cos(arc) * this$1.radius).toFixed(2); + var y = (Math.sin(arc) * this$1.radius).toFixed(2); + var item_css = '.expand .palette-button-' + this$1._uid + '-sub-' + i$1 + '{transform:translate(' + x + 'px,' + y + 'px) rotate(720deg);transition-delay:' + 0.03 * i$1 + 's}'; + css += item_css; + + this$1.slotChildren[i$1].elm.className += (' palette-button-' + this$1._uid + '-sub-' + i$1); + } + + this.styleNode = document.createElement('style'); + this.styleNode.type = 'text/css'; + this.styleNode.rel = 'stylesheet'; + this.styleNode.title = 'palette button style'; + this.styleNode.appendChild(document.createTextNode(css)); + document.getElementsByTagName('head')[0].appendChild(this.styleNode); + }, + + destroyed: function destroyed() { + if (this.styleNode) { + this.styleNode.parentNode.removeChild(this.styleNode); + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/palette-button/style.css b/src/main/web/static/mint-ui/palette-button/style.css new file mode 100644 index 0000000000000000000000000000000000000000..8bef97b6bad3f9b41a52d87c623fa33637d4b4ef --- /dev/null +++ b/src/main/web/static/mint-ui/palette-button/style.css @@ -0,0 +1,71 @@ + +.mint-palette-button{ + display:inline-block; + position:relative; + border-radius:50%; + width: 56px; + height:56px; + line-height:56px; + text-align:center; + -webkit-transition:-webkit-transform .1s ease-in-out; + transition:-webkit-transform .1s ease-in-out; + transition:transform .1s ease-in-out; + transition:transform .1s ease-in-out, -webkit-transform .1s ease-in-out; +} +.mint-main-button{ + position:absolute; + top:0; + left:0; + width:100%; + height:100%; + border-radius:50%; + background-color:blue; + font-size:2em; +} +.mint-palette-button-active{ + -webkit-animation: mint-zoom 0.5s ease-in-out; + animation: mint-zoom 0.5s ease-in-out; +} +.mint-sub-button-container>*{ + position:absolute; + top:15px; + left:15px; + width:25px; + height:25px; + -webkit-transition:-webkit-transform .3s ease-in-out; + transition:-webkit-transform .3s ease-in-out; + transition:transform .3s ease-in-out; + transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out; +} +@-webkit-keyframes mint-zoom{ +0% {-webkit-transform:scale(1);transform:scale(1) +} +10% {-webkit-transform:scale(1.1);transform:scale(1.1) +} +30% {-webkit-transform:scale(0.9);transform:scale(0.9) +} +50% {-webkit-transform:scale(1.05);transform:scale(1.05) +} +70% {-webkit-transform:scale(0.95);transform:scale(0.95) +} +90% {-webkit-transform:scale(1.01);transform:scale(1.01) +} +100% {-webkit-transform:scale(1);transform:scale(1) +} +} +@keyframes mint-zoom{ +0% {-webkit-transform:scale(1);transform:scale(1) +} +10% {-webkit-transform:scale(1.1);transform:scale(1.1) +} +30% {-webkit-transform:scale(0.9);transform:scale(0.9) +} +50% {-webkit-transform:scale(1.05);transform:scale(1.05) +} +70% {-webkit-transform:scale(0.95);transform:scale(0.95) +} +90% {-webkit-transform:scale(1.01);transform:scale(1.01) +} +100% {-webkit-transform:scale(1);transform:scale(1) +} +} diff --git a/src/main/web/static/mint-ui/picker/index.js b/src/main/web/static/mint-ui/picker/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e62c7d70d586f4391521d17ab429c73c02196055 --- /dev/null +++ b/src/main/web/static/mint-ui/picker/index.js @@ -0,0 +1,1447 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 228); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 129: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 146: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(96) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(68), + /* template */ + __webpack_require__(165), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 147: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(129) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(69), + /* template */ + __webpack_require__(199), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 165: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "picker-slot", + class: _vm.classNames, + style: (_vm.flexStyle) + }, [(!_vm.divider) ? _c('div', { + ref: "wrapper", + staticClass: "picker-slot-wrapper", + class: { + dragging: _vm.dragging + }, + style: ({ + height: _vm.contentHeight + 'px' + }) + }, _vm._l((_vm.mutatingValues), function(itemValue) { + return _c('div', { + staticClass: "picker-item", + class: { + 'picker-selected': itemValue === _vm.currentValue + }, + style: ({ + height: _vm.itemHeight + 'px', + lineHeight: _vm.itemHeight + 'px' + }) + }, [_vm._v("\n " + _vm._s(typeof itemValue === 'object' && itemValue[_vm.valueKey] ? itemValue[_vm.valueKey] : itemValue) + "\n ")]) + })) : _vm._e(), _vm._v(" "), (_vm.divider) ? _c('div', [_vm._v(_vm._s(_vm.content))]) : _vm._e()]) +},staticRenderFns: []} + +/***/ }, + +/***/ 199: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "picker", + class: { + 'picker-3d': _vm.rotateEffect + } + }, [(_vm.showToolbar) ? _c('div', { + staticClass: "picker-toolbar" + }, [_vm._t("default")], 2) : _vm._e(), _vm._v(" "), _c('div', { + staticClass: "picker-items" + }, [_vm._l((_vm.slots), function(slot) { + return _c('picker-slot', { + attrs: { + "valueKey": _vm.valueKey, + "values": slot.values || [], + "text-align": slot.textAlign || 'center', + "visible-item-count": _vm.visibleItemCount, + "class-name": slot.className, + "flex": slot.flex, + "rotate-effect": _vm.rotateEffect, + "divider": slot.divider, + "content": slot.content, + "itemHeight": _vm.itemHeight, + "default-index": slot.defaultIndex + }, + model: { + value: (_vm.values[slot.valueIndex]), + callback: function($$v) { + var $$exp = _vm.values, + $$idx = slot.valueIndex; + if (!Array.isArray($$exp)) { + _vm.values[slot.valueIndex] = $$v + } else { + $$exp.splice($$idx, 1, $$v) + } + }, + expression: "values[slot.valueIndex]" + } + }) + }), _vm._v(" "), _c('div', { + staticClass: "picker-center-highlight", + style: ({ + height: _vm.itemHeight + 'px', + marginTop: -_vm.itemHeight / 2 + 'px' + }) + })], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 2: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, + +/***/ 207: +/***/ function(module, exports) { + +module.exports = require("raf.js"); + +/***/ }, + +/***/ 228: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(36); + + +/***/ }, + +/***/ 36: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_picker_vue__ = __webpack_require__(147); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_picker_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_picker_vue___default.a; }); + + + +/***/ }, + +/***/ 68: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__draggable__ = __webpack_require__(91); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__translate__ = __webpack_require__(92); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_mint_ui_src_mixins_emitter__ = __webpack_require__(95); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_vue__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + + + +if (!__WEBPACK_IMPORTED_MODULE_4_vue___default.a.prototype.$isServer) { + __webpack_require__(207); +} + +var rotateElement = function(element, angle) { + if (!element) return; + var transformProperty = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].transformProperty; + + element.style[transformProperty] = element.style[transformProperty].replace(/rotateX\(.+?deg\)/gi, '') + " rotateX(" + angle + "deg)"; +}; + +var ITEM_HEIGHT = 36; +var VISIBLE_ITEMS_ANGLE_MAP = { + 3: -45, + 5: -20, + 7: -15 +}; + +/* harmony default export */ exports["default"] = { + name: 'picker-slot', + + props: { + values: { + type: Array, + default: function default$1() { + return []; + } + }, + value: {}, + visibleItemCount: { + type: Number, + default: 5 + }, + valueKey: String, + rotateEffect: { + type: Boolean, + default: false + }, + divider: { + type: Boolean, + default: false + }, + textAlign: { + type: String, + default: 'center' + }, + flex: {}, + className: {}, + content: {}, + itemHeight: { + type: Number, + default: ITEM_HEIGHT + }, + defaultIndex: { + type: Number, + default: 0, + require: false + } + }, + + data: function data() { + return { + currentValue: this.value, + mutatingValues: this.values, + dragging: false, + animationFrameId: null + }; + }, + + mixins: [__WEBPACK_IMPORTED_MODULE_3_mint_ui_src_mixins_emitter__["a" /* default */]], + + computed: { + flexStyle: function flexStyle() { + return { + 'flex': this.flex, + '-webkit-box-flex': this.flex, + '-moz-box-flex': this.flex, + '-ms-flex': this.flex + }; + }, + classNames: function classNames() { + var PREFIX = 'picker-slot-'; + var resultArray = []; + + if (this.rotateEffect) { + resultArray.push(PREFIX + 'absolute'); + } + + var textAlign = this.textAlign || 'center'; + resultArray.push(PREFIX + textAlign); + + if (this.divider) { + resultArray.push(PREFIX + 'divider'); + } + + if (this.className) { + resultArray.push(this.className); + } + + return resultArray.join(' '); + }, + contentHeight: function contentHeight() { + return this.itemHeight * this.visibleItemCount; + }, + valueIndex: function valueIndex() { + var this$1 = this; + + var valueKey = this.valueKey; + if (this.currentValue instanceof Object) { + for (var i = 0, len = this.mutatingValues.length; i < len ; i++) { + if (this$1.currentValue[valueKey] === this$1.mutatingValues[i][valueKey]) { + return i; + } + } + return -1; + } else { + return this.mutatingValues.indexOf(this.currentValue); + } + }, + dragRange: function dragRange() { + var values = this.mutatingValues; + var visibleItemCount = this.visibleItemCount; + var itemHeight = this.itemHeight; + + return [ -itemHeight * (values.length - Math.ceil(visibleItemCount / 2)), itemHeight * Math.floor(visibleItemCount / 2) ]; + }, + minTranslateY: function minTranslateY() { + return this.itemHeight * (Math.ceil(this.visibleItemCount / 2) - this.mutatingValues.length); + }, + maxTranslateY: function maxTranslateY() { + return this.itemHeight * Math.floor(this.visibleItemCount / 2); + } + }, + + methods: { + value2Translate: function value2Translate(value) { + var values = this.mutatingValues; + var valueIndex = values.indexOf(value); + var offset = Math.floor(this.visibleItemCount / 2); + var itemHeight = this.itemHeight; + + if (valueIndex !== -1) { + return (valueIndex - offset) * -itemHeight; + } + }, + + translate2Value: function translate2Value(translate) { + var itemHeight = this.itemHeight; + translate = Math.round(translate / itemHeight) * itemHeight; + var index = -(translate - Math.floor(this.visibleItemCount / 2) * itemHeight) / itemHeight; + + return this.mutatingValues[index]; + }, + + updateRotate: function(currentTranslate, pickerItems) { + var this$1 = this; + + if (this.divider) return; + var dragRange = this.dragRange; + var wrapper = this.$refs.wrapper; + + if (!pickerItems) { + pickerItems = wrapper.querySelectorAll('.picker-item'); + } + + if (currentTranslate === undefined) { + currentTranslate = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(wrapper).top; + } + + var itemsFit = Math.ceil(this.visibleItemCount / 2); + var angleUnit = VISIBLE_ITEMS_ANGLE_MAP[this.visibleItemCount] || -20; + + [].forEach.call(pickerItems, function (item, index) { + var itemOffsetTop = index * this$1.itemHeight; + var translateOffset = dragRange[1] - currentTranslate; + var itemOffset = itemOffsetTop - translateOffset; + var percentage = itemOffset / this$1.itemHeight; + + var angle = angleUnit * percentage; + if (angle > 180) angle = 180; + if (angle < -180) angle = -180; + + rotateElement(item, angle); + + if (Math.abs(percentage) > itemsFit) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["a" /* addClass */])(item, 'picker-item-far'); + } else { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["b" /* removeClass */])(item, 'picker-item-far'); + } + }); + }, + + planUpdateRotate: function() { + var this$1 = this; + + var el = this.$refs.wrapper; + cancelAnimationFrame(this.animationFrameId); + + this.animationFrameId = requestAnimationFrame(function () { + this$1.updateRotate(); + }); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_dom__["c" /* once */])(el, __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].transitionEndProperty, function () { + cancelAnimationFrame(this$1.animationFrameId); + this$1.animationFrameId = null; + }); + }, + + initEvents: function initEvents() { + var this$1 = this; + + var el = this.$refs.wrapper; + var dragState = {}; + + var velocityTranslate, prevTranslate, pickerItems; + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__draggable__["a" /* default */])(el, { + start: function (event) { + cancelAnimationFrame(this$1.animationFrameId); + this$1.animationFrameId = null; + dragState = { + range: this$1.dragRange, + start: new Date(), + startLeft: event.pageX, + startTop: event.pageY, + startTranslateTop: __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(el).top + }; + pickerItems = el.querySelectorAll('.picker-item'); + }, + + drag: function (event) { + this$1.dragging = true; + + dragState.left = event.pageX; + dragState.top = event.pageY; + + var deltaY = dragState.top - dragState.startTop; + var translate = dragState.startTranslateTop + deltaY; + + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(el, null, translate); + + velocityTranslate = translate - prevTranslate || translate; + + prevTranslate = translate; + + if (this$1.rotateEffect) { + this$1.updateRotate(prevTranslate, pickerItems); + } + }, + + end: function (event) { + this$1.dragging = false; + + var momentumRatio = 7; + var currentTranslate = __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].getElementTranslate(el).top; + var duration = new Date() - dragState.start; + var distance = Math.abs(dragState.startTranslateTop - currentTranslate); + var itemHeight = this$1.itemHeight; + var visibleItemCount = this$1.visibleItemCount; + + var rect, offset; + if (distance < 6) { + rect = this$1.$el.getBoundingClientRect(); + offset = Math.floor((event.clientY - (rect.top + (visibleItemCount - 1) * itemHeight / 2)) / itemHeight) * itemHeight; + + if (offset > this$1.maxTranslateY) { + offset = this$1.maxTranslateY; + } + + velocityTranslate = 0; + currentTranslate -= offset; + } + + var momentumTranslate; + if (duration < 300) { + momentumTranslate = currentTranslate + velocityTranslate * momentumRatio; + } + + var dragRange = dragState.range; + + this$1.$nextTick(function () { + var translate; + if (momentumTranslate) { + translate = Math.round(momentumTranslate / itemHeight) * itemHeight; + } else { + translate = Math.round(currentTranslate / itemHeight) * itemHeight; + } + + translate = Math.max(Math.min(translate, dragRange[1]), dragRange[0]); + + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(el, null, translate); + + this$1.currentValue = this$1.translate2Value(translate); + + if (this$1.rotateEffect) { + this$1.planUpdateRotate(); + } + }); + + dragState = {}; + } + }); + }, + + doOnValueChange: function doOnValueChange() { + var value = this.currentValue; + var wrapper = this.$refs.wrapper; + + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(wrapper, null, this.value2Translate(value)); + }, + + doOnValuesChange: function doOnValuesChange() { + var this$1 = this; + + var el = this.$el; + var items = el.querySelectorAll('.picker-item'); + [].forEach.call(items, function (item, index) { + __WEBPACK_IMPORTED_MODULE_1__translate__["a" /* default */].translateElement(item, null, this$1.itemHeight * index); + }); + if (this.rotateEffect) { + this.planUpdateRotate(); + } + } + }, + + mounted: function mounted() { + this.ready = true; + + if (!this.divider) { + this.initEvents(); + this.doOnValueChange(); + } + + if (this.rotateEffect) { + this.doOnValuesChange(); + } + }, + + watch: { + values: function values(val) { + this.mutatingValues = val; + }, + + mutatingValues: function mutatingValues(val) { + var this$1 = this; + + if (this.valueIndex === -1) { + this.currentValue = (val || [])[0]; + } + if (this.rotateEffect) { + this.$nextTick(function () { + this$1.doOnValuesChange(); + }); + } + }, + currentValue: function currentValue(val) { + this.doOnValueChange(); + if (this.rotateEffect) { + this.planUpdateRotate(); + } + this.$emit('input', val); + this.dispatch('picker', 'slotValueChange', this); + }, + defaultIndex: function defaultIndex(val) { + if ((this.mutatingValues[val] !== undefined) && (this.mutatingValues.length >= val + 1)) { + this.currentValue = this.mutatingValues[val]; + } + } + } +}; + + +/***/ }, + +/***/ 69: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-picker', + + componentName: 'picker', + + props: { + slots: { + type: Array + }, + showToolbar: { + type: Boolean, + default: false + }, + visibleItemCount: { + type: Number, + default: 5 + }, + valueKey: String, + rotateEffect: { + type: Boolean, + default: false + }, + itemHeight: { + type: Number, + default: 36 + } + }, + + created: function created() { + this.$on('slotValueChange', this.slotValueChange); + this.slotValueChange(); + }, + + methods: { + slotValueChange: function slotValueChange() { + this.$emit('change', this, this.values); + }, + + getSlot: function getSlot(slotIndex) { + var slots = this.slots || []; + var count = 0; + var target; + var children = this.$children.filter(function (child) { return child.$options.name === 'picker-slot'; }); + + slots.forEach(function(slot, index) { + if (!slot.divider) { + if (slotIndex === count) { + target = children[index]; + } + count++; + } + }); + + return target; + }, + getSlotValue: function getSlotValue(index) { + var slot = this.getSlot(index); + if (slot) { + return slot.currentValue; + } + return null; + }, + setSlotValue: function setSlotValue(index, value) { + var slot = this.getSlot(index); + if (slot) { + slot.currentValue = value; + } + }, + getSlotValues: function getSlotValues(index) { + var slot = this.getSlot(index); + if (slot) { + return slot.mutatingValues; + } + return null; + }, + setSlotValues: function setSlotValues(index, values) { + var slot = this.getSlot(index); + if (slot) { + slot.mutatingValues = values; + } + }, + getValues: function getValues() { + return this.values; + }, + setValues: function setValues(values) { + var this$1 = this; + + var slotCount = this.slotCount; + values = values || []; + if (slotCount !== values.length) { + throw new Error('values length is not equal slot count.'); + } + values.forEach(function (value, index) { + this$1.setSlotValue(index, value); + }); + } + }, + + computed: { + values: { + get: function get() { + var slots = this.slots || []; + var values = []; + var valueIndexCount = 0; + slots.forEach(function (slot) { + if (!slot.divider) { + slot.valueIndex = valueIndexCount++; + values[slot.valueIndex] = (slot.values || [])[slot.defaultIndex || 0]; + } + }); + return values; + } + }, + slotCount: function slotCount() { + var slots = this.slots || []; + var result = 0; + slots.forEach(function(slot) { + if (!slot.divider) result++; + }); + return result; + } + }, + + components: { + PickerSlot: __webpack_require__(146) + } +}; + + +/***/ }, + +/***/ 91: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +var isDragging = false; + + +var supportTouch = !__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && 'ontouchstart' in window; + +/* harmony default export */ exports["a"] = function(element, options) { + var moveFn = function(event) { + if (options.drag) { + options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + var endFn = function(event) { + if (!supportTouch) { + document.removeEventListener('mousemove', moveFn); + document.removeEventListener('mouseup', endFn); + } + document.onselectstart = null; + document.ondragstart = null; + + isDragging = false; + + if (options.end) { + options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) { + if (isDragging) return; + document.onselectstart = function() { return false; }; + document.ondragstart = function() { return false; }; + + if (!supportTouch) { + document.addEventListener('mousemove', moveFn); + document.addEventListener('mouseup', endFn); + } + isDragging = true; + + if (options.start) { + event.preventDefault(); + options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }); + + if (supportTouch) { + element.addEventListener('touchmove', moveFn); + element.addEventListener('touchend', endFn); + element.addEventListener('touchcancel', endFn); + } +};; + + +/***/ }, + +/***/ 92: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +var exportObj = {}; + +if (!__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) { + var docStyle = document.documentElement.style; + var engine; + var translate3d = false; + + if (window.opera && Object.prototype.toString.call(opera) === '[object Opera]') { + engine = 'presto'; + } else if ('MozAppearance' in docStyle) { + engine = 'gecko'; + } else if ('WebkitAppearance' in docStyle) { + engine = 'webkit'; + } else if (typeof navigator.cpuClass === 'string') { + engine = 'trident'; + } + + var cssPrefix = {trident: '-ms-', gecko: '-moz-', webkit: '-webkit-', presto: '-o-'}[engine]; + + var vendorPrefix = {trident: 'ms', gecko: 'Moz', webkit: 'Webkit', presto: 'O'}[engine]; + + var helperElem = document.createElement('div'); + var perspectiveProperty = vendorPrefix + 'Perspective'; + var transformProperty = vendorPrefix + 'Transform'; + var transformStyleName = cssPrefix + 'transform'; + var transitionProperty = vendorPrefix + 'Transition'; + var transitionStyleName = cssPrefix + 'transition'; + var transitionEndProperty = vendorPrefix.toLowerCase() + 'TransitionEnd'; + + if (helperElem.style[perspectiveProperty] !== undefined) { + translate3d = true; + } + + var getTranslate = function(element) { + var result = {left: 0, top: 0}; + if (element === null || element.style === null) return result; + + var transform = element.style[transformProperty]; + var matches = /translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/ig.exec(transform); + if (matches) { + result.left = +matches[1]; + result.top = +matches[3]; + } + + return result; + }; + + var translateElement = function(element, x, y) { + if (x === null && y === null) return; + + if (element === null || element === undefined || element.style === null) return; + + if (!element.style[transformProperty] && x === 0 && y === 0) return; + + if (x === null || y === null) { + var translate = getTranslate(element); + if (x === null) { + x = translate.left; + } + if (y === null) { + y = translate.top; + } + } + + cancelTranslateElement(element); + + if (translate3d) { + element.style[transformProperty] += ' translate(' + (x ? (x + 'px') : '0px') + ',' + (y ? (y + 'px') : '0px') + ') translateZ(0px)'; + } else { + element.style[transformProperty] += ' translate(' + (x ? (x + 'px') : '0px') + ',' + (y ? (y + 'px') : '0px') + ')'; + } + }; + + var cancelTranslateElement = function(element) { + if (element === null || element.style === null) return; + var transformValue = element.style[transformProperty]; + if (transformValue) { + transformValue = transformValue.replace(/translate\(\s*(-?\d+(\.?\d+?)?)px,\s*(-?\d+(\.\d+)?)px\)\s*translateZ\(0px\)/g, ''); + element.style[transformProperty] = transformValue; + } + }; + exportObj = { + transformProperty: transformProperty, + transformStyleName: transformStyleName, + transitionProperty: transitionProperty, + transitionStyleName: transitionStyleName, + transitionEndProperty: transitionEndProperty, + getElementTranslate: getTranslate, + translateElement: translateElement, + cancelTranslateElement: cancelTranslateElement + }; +}; + +/* harmony default export */ exports["a"] = exportObj; + + +/***/ }, + +/***/ 95: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +function broadcast(componentName, eventName, params) { + this.$children.forEach(function (child) { + var name = child.$options.componentName; + + if (name === componentName) { + child.$emit.apply(child, [eventName].concat(params)); + } else { + broadcast.apply(child, [componentName, eventName].concat(params)); + } + }); +} +/* harmony default export */ exports["a"] = { + methods: { + dispatch: function dispatch(componentName, eventName, params) { + var parent = this.$parent; + var name = parent.$options.componentName; + + while (parent && (!name || name !== componentName)) { + parent = parent.$parent; + + if (parent) { + name = parent.$options.componentName; + } + } + if (parent) { + parent.$emit.apply(parent, [eventName].concat(params)); + } + }, + broadcast: function broadcast$1(componentName, eventName, params) { + broadcast.call(this, componentName, eventName, params); + } + } +}; + + +/***/ }, + +/***/ 96: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/picker/style.css b/src/main/web/static/mint-ui/picker/style.css new file mode 100644 index 0000000000000000000000000000000000000000..6d756a065d154aeff1d40cb9d5504ca90002e445 --- /dev/null +++ b/src/main/web/static/mint-ui/picker/style.css @@ -0,0 +1,137 @@ + +.picker { + overflow: hidden; +} +.picker-toolbar { + height: 40px; +} +.picker-items { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + padding: 0; + text-align: right; + font-size: 24px; + position: relative; +} +.picker-center-highlight { + box-sizing: border-box; + position: absolute; + left: 0; + width: 100%; + top: 50%; + margin-top: -18px; + pointer-events: none +} +.picker-center-highlight:before, .picker-center-highlight:after { + content: ''; + position: absolute; + height: 1px; + width: 100%; + background-color: #eaeaea; + display: block; + z-index: 15; + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); +} +.picker-center-highlight:before { + left: 0; + top: 0; + bottom: auto; + right: auto; +} +.picker-center-highlight:after { + left: 0; + bottom: 0; + right: auto; + top: auto; +} + +.picker-slot { + font-size: 18px; + overflow: hidden; + position: relative; + max-height: 100% +} +.picker-slot.picker-slot-left { + text-align: left; +} +.picker-slot.picker-slot-center { + text-align: center; +} +.picker-slot.picker-slot-right { + text-align: right; +} +.picker-slot.picker-slot-divider { + color: #000; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center +} +.picker-slot-wrapper { + -webkit-transition-duration: 0.3s; + transition-duration: 0.3s; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +.picker-slot-wrapper.dragging, .picker-slot-wrapper.dragging .picker-item { + -webkit-transition-duration: 0s; + transition-duration: 0s; +} +.picker-item { + height: 36px; + line-height: 36px; + padding: 0 10px; + white-space: nowrap; + position: relative; + overflow: hidden; + text-overflow: ellipsis; + color: #707274; + left: 0; + top: 0; + width: 100%; + box-sizing: border-box; + -webkit-transition-duration: .3s; + transition-duration: .3s; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +.picker-slot-absolute .picker-item { + position: absolute; +} +.picker-item.picker-item-far { + pointer-events: none +} +.picker-item.picker-selected { + color: #000; + -webkit-transform: translate3d(0, 0, 0) rotateX(0); + transform: translate3d(0, 0, 0) rotateX(0); +} +.picker-3d .picker-items { + overflow: hidden; + -webkit-perspective: 700px; + perspective: 700px; +} +.picker-3d .picker-item, .picker-3d .picker-slot, .picker-3d .picker-slot-wrapper { + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d +} +.picker-3d .picker-slot { + overflow: visible +} +.picker-3d .picker-item { + -webkit-transform-origin: center center; + transform-origin: center center; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out +} diff --git a/src/main/web/static/mint-ui/popup/index.js b/src/main/web/static/mint-ui/popup/index.js new file mode 100644 index 0000000000000000000000000000000000000000..19f1670629799161f448608df74a5597afb98a11 --- /dev/null +++ b/src/main/web/static/mint-ui/popup/index.js @@ -0,0 +1,1135 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 229); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 123: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 13: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 148: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(123) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(70), + /* template */ + __webpack_require__(193), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 193: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": _vm.currentTransition + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-popup", + class: [_vm.position ? 'mint-popup-' + _vm.position : ''] + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 2: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, + +/***/ 229: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(37); + + +/***/ }, + +/***/ 37: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_popup_vue__ = __webpack_require__(148); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_popup_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_popup_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_popup_vue___default.a; }); + + + +/***/ }, + +/***/ 7: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony default export */ exports["a"] = function(target) { + var arguments$1 = arguments; + + for (var i = 1, j = arguments.length; i < j; i++) { + var source = arguments$1[i] || {}; + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + var value = source[prop]; + if (value !== undefined) { + target[prop] = value; + } + } + } + } + + return target; +};; + + +/***/ }, + +/***/ 70: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__ = __webpack_require__(8); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_vue__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +if (!__WEBPACK_IMPORTED_MODULE_1_vue___default.a.prototype.$isServer) { + __webpack_require__(13); +} + +/* harmony default export */ exports["default"] = { + name: 'mt-popup', + + mixins: [__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_popup__["a" /* default */]], + + props: { + modal: { + default: true + }, + + modalFade: { + default: false + }, + + lockScroll: { + default: false + }, + + closeOnClickModal: { + default: true + }, + + popupTransition: { + type: String, + default: 'popup-slide' + }, + + position: { + type: String, + default: '' + } + }, + + data: function data() { + return { + currentValue: false, + currentTransition: this.popupTransition + }; + }, + + watch: { + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + value: function value(val) { + this.currentValue = val; + } + }, + + beforeMount: function beforeMount() { + if (this.popupTransition !== 'popup-fade') { + this.currentTransition = "popup-slide-" + (this.position); + } + }, + + mounted: function mounted() { + if (this.value) { + this.rendered = true; + this.currentValue = true; + this.open(); + } + } +}; + + +/***/ }, + +/***/ 8: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__ = __webpack_require__(7); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__ = __webpack_require__(9); +/* unused harmony reexport PopupManager */ + + + + +var idSeed = 1; +var transitions = []; + +var hookTransition = function (transition) { + if (transitions.indexOf(transition) !== -1) return; + + var getVueInstance = function (element) { + var instance = element.__vue__; + if (!instance) { + var textNode = element.previousSibling; + if (textNode.__vue__) { + instance = textNode.__vue__; + } + } + return instance; + }; + + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.transition(transition, { + afterEnter: function afterEnter(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterOpen && instance.doAfterOpen(); + } + }, + afterLeave: function afterLeave(el) { + var instance = getVueInstance(el); + + if (instance) { + instance.doAfterClose && instance.doAfterClose(); + } + } + }); +}; + +var scrollBarWidth; +var getScrollBarWidth = function () { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (scrollBarWidth !== undefined) return scrollBarWidth; + + var outer = document.createElement('div'); + outer.style.visibility = 'hidden'; + outer.style.width = '100px'; + outer.style.position = 'absolute'; + outer.style.top = '-9999px'; + document.body.appendChild(outer); + + var widthNoScroll = outer.offsetWidth; + outer.style.overflow = 'scroll'; + + var inner = document.createElement('div'); + inner.style.width = '100%'; + outer.appendChild(inner); + + var widthWithScroll = inner.offsetWidth; + outer.parentNode.removeChild(outer); + + return widthNoScroll - widthWithScroll; +}; + +var getDOM = function(dom) { + if (dom.nodeType === 3) { + dom = dom.nextElementSibling || dom.nextSibling; + getDOM(dom); + } + return dom; +}; + +/* harmony default export */ exports["a"] = { + props: { + value: { + type: Boolean, + default: false + }, + transition: { + type: String, + default: '' + }, + openDelay: {}, + closeDelay: {}, + zIndex: {}, + modal: { + type: Boolean, + default: false + }, + modalFade: { + type: Boolean, + default: true + }, + modalClass: { + }, + lockScroll: { + type: Boolean, + default: true + }, + closeOnPressEscape: { + type: Boolean, + default: false + }, + closeOnClickModal: { + type: Boolean, + default: false + } + }, + + created: function created() { + if (this.transition) { + hookTransition(this.transition); + } + }, + + beforeMount: function beforeMount() { + this._popupId = 'popup-' + idSeed++; + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].register(this._popupId, this); + }, + + beforeDestroy: function beforeDestroy() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].deregister(this._popupId); + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + if (this.modal && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') { + document.body.style.overflow = this.bodyOverflow; + document.body.style.paddingRight = this.bodyPaddingRight; + } + this.bodyOverflow = null; + this.bodyPaddingRight = null; + }, + + data: function data() { + return { + opened: false, + bodyOverflow: null, + bodyPaddingRight: null, + rendered: false + }; + }, + + watch: { + value: function value(val) { + var this$1 = this; + + if (val) { + if (this._opening) return; + if (!this.rendered) { + this.rendered = true; + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function () { + this$1.open(); + }); + } else { + this.open(); + } + } else { + this.close(); + } + } + }, + + methods: { + open: function open(options) { + var this$1 = this; + + if (!this.rendered) { + this.rendered = true; + this.$emit('input', true); + } + + var props = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_merge__["a" /* default */])({}, this, options, this.$props); + + if (this._closeTimer) { + clearTimeout(this._closeTimer); + this._closeTimer = null; + } + clearTimeout(this._openTimer); + + var openDelay = Number(props.openDelay); + if (openDelay > 0) { + this._openTimer = setTimeout(function () { + this$1._openTimer = null; + this$1.doOpen(props); + }, openDelay); + } else { + this.doOpen(props); + } + }, + + doOpen: function doOpen(props) { + if (this.$isServer) return; + if (this.willOpen && !this.willOpen()) return; + if (this.opened) return; + + this._opening = true; + + // 使用 vue-popup 的组件,如果需要和父组件通信显示的状态,应该使用 value,它是一个 prop, + // 这样在父组件中用 v-model 即可;否则可以使用 visible,它是一个 data + this.visible = true; + this.$emit('input', true); + + var dom = getDOM(this.$el); + + var modal = props.modal; + + var zIndex = props.zIndex; + if (zIndex) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].zIndex = zIndex; + } + + if (modal) { + if (this._closing) { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].openModal(this._popupId, __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(), dom, props.modalClass, props.modalFade); + if (props.lockScroll) { + if (!this.bodyOverflow) { + this.bodyPaddingRight = document.body.style.paddingRight; + this.bodyOverflow = document.body.style.overflow; + } + scrollBarWidth = getScrollBarWidth(); + var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight; + if (scrollBarWidth > 0 && bodyHasOverflow) { + document.body.style.paddingRight = scrollBarWidth + 'px'; + } + document.body.style.overflow = 'hidden'; + } + } + + if (getComputedStyle(dom).position === 'static') { + dom.style.position = 'absolute'; + } + + dom.style.zIndex = __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].nextZIndex(); + this.opened = true; + + this.onOpen && this.onOpen(); + + if (!this.transition) { + this.doAfterOpen(); + } + }, + + doAfterOpen: function doAfterOpen() { + this._opening = false; + }, + + close: function close() { + var this$1 = this; + + if (this.willClose && !this.willClose()) return; + + if (this._openTimer !== null) { + clearTimeout(this._openTimer); + this._openTimer = null; + } + clearTimeout(this._closeTimer); + + var closeDelay = Number(this.closeDelay); + + if (closeDelay > 0) { + this._closeTimer = setTimeout(function () { + this$1._closeTimer = null; + this$1.doClose(); + }, closeDelay); + } else { + this.doClose(); + } + }, + + doClose: function doClose() { + var this$1 = this; + + this.visible = false; + this.$emit('input', false); + this._closing = true; + + this.onClose && this.onClose(); + + if (this.lockScroll) { + setTimeout(function () { + if (this$1.modal && this$1.bodyOverflow !== 'hidden') { + document.body.style.overflow = this$1.bodyOverflow; + document.body.style.paddingRight = this$1.bodyPaddingRight; + } + this$1.bodyOverflow = null; + this$1.bodyPaddingRight = null; + }, 200); + } + + this.opened = false; + + if (!this.transition) { + this.doAfterClose(); + } + }, + + doAfterClose: function doAfterClose() { + __WEBPACK_IMPORTED_MODULE_2_mint_ui_src_utils_popup_popup_manager__["a" /* default */].closeModal(this._popupId); + this._closing = false; + } + } +}; + + + + +/***/ }, + +/***/ 9: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__ = __webpack_require__(2); + + + +var hasModal = false; + +var getModal = function() { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + var modalDom = PopupManager.modalDom; + if (modalDom) { + hasModal = true; + } else { + hasModal = false; + modalDom = document.createElement('div'); + PopupManager.modalDom = modalDom; + + modalDom.addEventListener('touchmove', function(event) { + event.preventDefault(); + event.stopPropagation(); + }); + + modalDom.addEventListener('click', function() { + PopupManager.doOnModalClick && PopupManager.doOnModalClick(); + }); + } + + return modalDom; +}; + +var instances = {}; + +var PopupManager = { + zIndex: 2000, + + modalFade: true, + + getInstance: function(id) { + return instances[id]; + }, + + register: function(id, instance) { + if (id && instance) { + instances[id] = instance; + } + }, + + deregister: function(id) { + if (id) { + instances[id] = null; + delete instances[id]; + } + }, + + nextZIndex: function() { + return PopupManager.zIndex++; + }, + + modalStack: [], + + doOnModalClick: function() { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + + var instance = PopupManager.getInstance(topItem.id); + if (instance && instance.closeOnClickModal) { + instance.close(); + } + }, + + openModal: function(id, zIndex, dom, modalClass, modalFade) { + if (__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer) return; + if (!id || zIndex === undefined) return; + this.modalFade = modalFade; + + var modalStack = this.modalStack; + + for (var i = 0, j = modalStack.length; i < j; i++) { + var item = modalStack[i]; + if (item.id === id) { + return; + } + } + + var modalDom = getModal(); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal'); + if (this.modalFade && !hasModal) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-enter'); + } + if (modalClass) { + var classArr = modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, item); }); + } + setTimeout(function () { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-enter'); + }, 200); + + if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) { + dom.parentNode.appendChild(modalDom); + } else { + document.body.appendChild(modalDom); + } + + if (zIndex) { + modalDom.style.zIndex = zIndex; + } + modalDom.style.display = ''; + + this.modalStack.push({ id: id, zIndex: zIndex, modalClass: modalClass }); + }, + + closeModal: function(id) { + var modalStack = this.modalStack; + var modalDom = getModal(); + + if (modalStack.length > 0) { + var topItem = modalStack[modalStack.length - 1]; + if (topItem.id === id) { + if (topItem.modalClass) { + var classArr = topItem.modalClass.trim().split(/\s+/); + classArr.forEach(function (item) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, item); }); + } + + modalStack.pop(); + if (modalStack.length > 0) { + modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex; + } + } else { + for (var i = modalStack.length - 1; i >= 0; i--) { + if (modalStack[i].id === id) { + modalStack.splice(i, 1); + break; + } + } + } + } + + if (modalStack.length === 0) { + if (this.modalFade) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["a" /* addClass */])(modalDom, 'v-modal-leave'); + } + setTimeout(function () { + if (modalStack.length === 0) { + if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom); + modalDom.style.display = 'none'; + PopupManager.modalDom = undefined; + } + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_mint_ui_src_utils_dom__["b" /* removeClass */])(modalDom, 'v-modal-leave'); + }, 200); + } + } +}; +!__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && window.addEventListener('keydown', function(event) { + if (event.keyCode === 27) { // ESC + if (PopupManager.modalStack.length > 0) { + var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1]; + if (!topItem) return; + var instance = PopupManager.getInstance(topItem.id); + if (instance.closeOnPressEscape) { + instance.close(); + } + } + } +}); + +/* harmony default export */ exports["a"] = PopupManager; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/popup/style.css b/src/main/web/static/mint-ui/popup/style.css new file mode 100644 index 0000000000000000000000000000000000000000..b3faf61d1c2ec580a57c0b889f600985073aaf15 --- /dev/null +++ b/src/main/web/static/mint-ui/popup/style.css @@ -0,0 +1,115 @@ +.v-modal-enter { + -webkit-animation: v-modal-in .2s ease; + animation: v-modal-in .2s ease; +} + +.v-modal-leave { + -webkit-animation: v-modal-out .2s ease forwards; + animation: v-modal-out .2s ease forwards; +} + +@-webkit-keyframes v-modal-in { + 0% { + opacity: 0; + } + 100% { + } +} + +@keyframes v-modal-in { + 0% { + opacity: 0; + } + 100% { + } +} + +@-webkit-keyframes v-modal-out { + 0% { + } + 100% { + opacity: 0; + } +} + +@keyframes v-modal-out { + 0% { + } + 100% { + opacity: 0; + } +} + +.v-modal { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0.5; + background: #000; +} + +.mint-popup { + position: fixed; + background: #fff; + top: 50%; + left: 50%; + -webkit-transform: translate3d(-50%, -50%, 0); + transform: translate3d(-50%, -50%, 0); + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition: .2s ease-out; + transition: .2s ease-out; +} +.mint-popup-top { + top: 0; + right: auto; + bottom: auto; + left: 50%; + -webkit-transform: translate3d(-50%, 0, 0); + transform: translate3d(-50%, 0, 0); +} +.mint-popup-right { + top: 50%; + right: 0; + bottom: auto; + left: auto; + -webkit-transform: translate3d(0, -50%, 0); + transform: translate3d(0, -50%, 0); +} +.mint-popup-bottom { + top: auto; + right: auto; + bottom: 0; + left: 50%; + -webkit-transform: translate3d(-50%, 0, 0); + transform: translate3d(-50%, 0, 0); +} +.mint-popup-left { + top: 50%; + right: auto; + bottom: auto; + left: 0; + -webkit-transform: translate3d(0, -50%, 0); + transform: translate3d(0, -50%, 0); +} +.popup-slide-top-enter, .popup-slide-top-leave-active { + -webkit-transform: translate3d(-50%, -100%, 0); + transform: translate3d(-50%, -100%, 0); +} +.popup-slide-right-enter, .popup-slide-right-leave-active { + -webkit-transform: translate3d(100%, -50%, 0); + transform: translate3d(100%, -50%, 0); +} +.popup-slide-bottom-enter, .popup-slide-bottom-leave-active { + -webkit-transform: translate3d(-50%, 100%, 0); + transform: translate3d(-50%, 100%, 0); +} +.popup-slide-left-enter, .popup-slide-left-leave-active { + -webkit-transform: translate3d(-100%, -50%, 0); + transform: translate3d(-100%, -50%, 0); +} +.popup-fade-enter, .popup-fade-leave-active { + opacity: 0; +} diff --git a/src/main/web/static/mint-ui/progress/index.js b/src/main/web/static/mint-ui/progress/index.js new file mode 100644 index 0000000000000000000000000000000000000000..4d04015e98bc33153f1fb4c307f186b43a52fa06 --- /dev/null +++ b/src/main/web/static/mint-ui/progress/index.js @@ -0,0 +1,326 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 230); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 100: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 149: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(100) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(71), + /* template */ + __webpack_require__(169), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 169: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mt-progress" + }, [_vm._t("start"), _vm._v(" "), _c('div', { + staticClass: "mt-progress-content" + }, [_c('div', { + staticClass: "mt-progress-runway", + style: ({ + height: _vm.barHeight + 'px' + }) + }), _vm._v(" "), _c('div', { + staticClass: "mt-progress-progress", + style: ({ + width: _vm.value + '%', + height: _vm.barHeight + 'px' + }) + })]), _vm._v(" "), _vm._t("end")], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 230: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(38); + + +/***/ }, + +/***/ 38: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_progress_vue__ = __webpack_require__(149); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_progress_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_progress_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_progress_vue___default.a; }); + + + +/***/ }, + +/***/ 71: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-progress', + + props: { + value: Number, + barHeight: { + type: Number, + default: 3 + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/progress/style.css b/src/main/web/static/mint-ui/progress/style.css new file mode 100644 index 0000000000000000000000000000000000000000..ee0d5ef10f4684118b2a0699dde267cfd939b763 --- /dev/null +++ b/src/main/web/static/mint-ui/progress/style.css @@ -0,0 +1,45 @@ + +.mt-progress { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + height: 30px; + line-height: 30px +} +.mt-progress > * { + display: -ms-flexbox; + display: flex; + display: -webkit-box +} +.mt-progress *[slot="start"] { + margin-right: 5px +} +.mt-progress *[slot="end"] { + margin-left: 5px +} +.mt-progress-content { + position: relative; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1 +} +.mt-progress-runway { + position: absolute; + -webkit-transform: translate(0, -50%); + transform: translate(0, -50%); + top: 50%; + left: 0; + right: 0; + background-color: #ebebeb; + height: 3px +} +.mt-progress-progress { + position: absolute; + display: block; + background-color: #26a2ff; + top: 50%; + -webkit-transform: translate(0, -50%); + transform: translate(0, -50%); + width: 0 +} diff --git a/src/main/web/static/mint-ui/radio/index.js b/src/main/web/static/mint-ui/radio/index.js new file mode 100644 index 0000000000000000000000000000000000000000..194e14cab031303dd97f4742f38d85930fb81f19 --- /dev/null +++ b/src/main/web/static/mint-ui/radio/index.js @@ -0,0 +1,379 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 231); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 121: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 150: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(121) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(72), + /* template */ + __webpack_require__(191), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 191: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-radiolist", + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + } + } + }, [_c('label', { + staticClass: "mint-radiolist-title", + domProps: { + "textContent": _vm._s(_vm.title) + } + }), _vm._v(" "), _vm._l((_vm.options), function(option) { + return _c('x-cell', [_c('label', { + staticClass: "mint-radiolist-label", + slot: "title" + }, [_c('span', { + staticClass: "mint-radio", + class: { + 'is-right': _vm.align === 'right' + } + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-radio-input", + attrs: { + "type": "radio", + "disabled": option.disabled + }, + domProps: { + "value": option.value || option, + "checked": _vm._q(_vm.currentValue, option.value || option) + }, + on: { + "__c": function($event) { + _vm.currentValue = option.value || option + } + } + }), _vm._v(" "), _c('span', { + staticClass: "mint-radio-core" + })]), _vm._v(" "), _c('span', { + staticClass: "mint-radio-label", + domProps: { + "textContent": _vm._s(option.label || option) + } + })])]) + })], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 231: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(39); + + +/***/ }, + +/***/ 3: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell"); + +/***/ }, + +/***/ 39: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_radio_vue__ = __webpack_require__(150); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_radio_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_radio_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_radio_vue___default.a; }); + + + +/***/ }, + +/***/ 4: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell/style.css"); + +/***/ }, + +/***/ 72: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (true) { + __webpack_require__(4); +} +/** + * mt-radio + * @module components/radio + * @desc 单选框列表,依赖 cell 组件 + * + * @param {string[], object[]} options - 选项数组,可以传入 [{label: 'label', value: 'value', disabled: true}] 或者 ['ab', 'cd', 'ef'] + * @param {string} value - 选中值 + * @param {string} title - 标题 + * @param {string} [align=left] - checkbox 对齐位置,`left`, `right` + * + * @example + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-radio', + + props: { + title: String, + align: String, + options: { + type: Array, + required: true + }, + value: String + }, + + data: function data() { + return { + currentValue: this.value + }; + }, + + watch: { + value: function value(val) { + this.currentValue = val; + }, + + currentValue: function currentValue(val) { + this.$emit('input', val); + } + }, + + components: { + XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default.a + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/radio/style.css b/src/main/web/static/mint-ui/radio/style.css new file mode 100644 index 0000000000000000000000000000000000000000..3e213e8d67545f01314d293e9cfea3342818d56d --- /dev/null +++ b/src/main/web/static/mint-ui/radio/style.css @@ -0,0 +1,72 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-radiolist .mint-cell { + padding: 0; +} +.mint-radiolist-label { + display: block; + padding: 0 10px; +} +.mint-radiolist-title { + font-size: 12px; + margin: 8px; + display: block; + color: #888; +} +.mint-radio {} +.mint-radio.is-right { + float: right; +} +.mint-radio-label { + vertical-align: middle; + margin-left: 6px; +} +.mint-radio-input { + display: none; +} +.mint-radio-input:checked + .mint-radio-core { + background-color: #26a2ff; + border-color: #26a2ff; +} +.mint-radio-input:checked + .mint-radio-core::after { + background-color: #fff; + -webkit-transform: scale(1); + transform: scale(1); +} +.mint-radio-input[disabled] + .mint-radio-core { + background-color: #d9d9d9; + border-color: #ccc; +} +.mint-radio-core { + box-sizing: border-box; + display: inline-block; + background-color: #fff; + border-radius: 100%; + border: 1px solid #ccc; + position: relative; + width: 20px; + height: 20px; + vertical-align: middle; +} +.mint-radio-core::after { + content: " "; + border-radius: 100%; + top: 5px; + left: 5px; + position: absolute; + width: 8px; + height: 8px; + -webkit-transition: -webkit-transform .2s; + transition: -webkit-transform .2s; + transition: transform .2s; + transition: transform .2s, -webkit-transform .2s; + -webkit-transform: scale(0); + transform: scale(0); +} diff --git a/src/main/web/static/mint-ui/range/index.js b/src/main/web/static/mint-ui/range/index.js new file mode 100644 index 0000000000000000000000000000000000000000..2d0718a1aced3d8eaab82e816e087c0d472bdd22 --- /dev/null +++ b/src/main/web/static/mint-ui/range/index.js @@ -0,0 +1,502 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 232); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 125: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 151: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(125) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(73), + /* template */ + __webpack_require__(195), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 195: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mt-range", + class: { + 'mt-range--disabled': _vm.disabled + } + }, [_vm._t("start"), _vm._v(" "), _c('div', { + ref: "content", + staticClass: "mt-range-content" + }, [_c('div', { + staticClass: "mt-range-runway", + style: ({ + 'border-top-width': _vm.barHeight + 'px' + }) + }), _vm._v(" "), _c('div', { + staticClass: "mt-range-progress", + style: ({ + width: _vm.progress + '%', + height: _vm.barHeight + 'px' + }) + }), _vm._v(" "), _c('div', { + ref: "thumb", + staticClass: "mt-range-thumb", + style: ({ + left: _vm.progress + '%' + }) + })]), _vm._v(" "), _vm._t("end")], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 232: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(40); + + +/***/ }, + +/***/ 40: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_vue__ = __webpack_require__(151); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_index_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_index_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_index_vue___default.a; }); + + + +/***/ }, + +/***/ 73: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__draggable__ = __webpack_require__(93); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'mt-range', + + props: { + min: { + type: Number, + default: 0 + }, + max: { + type: Number, + default: 100 + }, + step: { + type: Number, + default: 1 + }, + disabled: { + type: Boolean, + default: false + }, + value: { + type: Number + }, + barHeight: { + type: Number, + default: 1 + } + }, + + computed: { + progress: function progress() { + var value = this.value; + if (typeof value === 'undefined' || value === null) return 0; + return Math.floor((value - this.min) / (this.max - this.min) * 100); + } + }, + + mounted: function mounted() { + var this$1 = this; + + var thumb = this.$refs.thumb; + var content = this.$refs.content; + + var getThumbPosition = function () { + var contentBox = content.getBoundingClientRect(); + var thumbBox = thumb.getBoundingClientRect(); + return { + left: thumbBox.left - contentBox.left, + top: thumbBox.top - contentBox.top, + thumbBoxLeft: thumbBox.left + }; + }; + + var dragState = {}; + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__draggable__["a" /* default */])(thumb, { + start: function (event) { + if (this$1.disabled) return; + var position = getThumbPosition(); + var thumbClickDetalX = event.clientX - position.thumbBoxLeft; + dragState = { + thumbStartLeft: position.left, + thumbStartTop: position.top, + thumbClickDetalX: thumbClickDetalX + }; + }, + drag: function (event) { + if (this$1.disabled) return; + var contentBox = content.getBoundingClientRect(); + var deltaX = event.pageX - contentBox.left - dragState.thumbStartLeft - dragState.thumbClickDetalX; + var stepCount = Math.ceil((this$1.max - this$1.min) / this$1.step); + var newPosition = (dragState.thumbStartLeft + deltaX) - (dragState.thumbStartLeft + deltaX) % (contentBox.width / stepCount); + + var newProgress = newPosition / contentBox.width; + + if (newProgress < 0) { + newProgress = 0; + } else if (newProgress > 1) { + newProgress = 1; + } + + this$1.$emit('input', Math.round(this$1.min + newProgress * (this$1.max - this$1.min))); + }, + end: function () { + if (this$1.disabled) return; + this$1.$emit('change', this$1.value); + dragState = {}; + } + }); + } +}; + + +/***/ }, + +/***/ 93: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +var isDragging = false; + +var supportTouch = !__WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer && 'ontouchstart' in window; + +/* harmony default export */ exports["a"] = function(element, options) { + var moveFn = function(event) { + if (options.drag) { + options.drag(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + var endFn = function(event) { + if (!supportTouch) { + document.removeEventListener('mousemove', moveFn); + document.removeEventListener('mouseup', endFn); + } + document.onselectstart = null; + document.ondragstart = null; + + isDragging = false; + + if (options.end) { + options.end(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }; + + element.addEventListener(supportTouch ? 'touchstart' : 'mousedown', function(event) { + if (isDragging) return; + event.preventDefault(); + document.onselectstart = function() { return false; }; + document.ondragstart = function() { return false; }; + + if (!supportTouch) { + document.addEventListener('mousemove', moveFn); + document.addEventListener('mouseup', endFn); + } + isDragging = true; + + if (options.start) { + options.start(supportTouch ? event.changedTouches[0] || event.touches[0] : event); + } + }); + + if (supportTouch) { + element.addEventListener('touchmove', moveFn); + element.addEventListener('touchend', endFn); + element.addEventListener('touchcancel', endFn); + } +};; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/range/style.css b/src/main/web/static/mint-ui/range/style.css new file mode 100644 index 0000000000000000000000000000000000000000..f0cb2ecf056323af32e4719f2b2e88a3d0cefb7e --- /dev/null +++ b/src/main/web/static/mint-ui/range/style.css @@ -0,0 +1,60 @@ + +.mt-range { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + height: 30px; + line-height: 30px +} +.mt-range > * { + display: -ms-flexbox; + display: flex; + display: -webkit-box +} +.mt-range *[slot=start] { + margin-right: 5px +} +.mt-range *[slot=end] { + margin-left: 5px +} +.mt-range-content { + position: relative; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + margin-right: 30px +} +.mt-range-runway { + position: absolute; + top: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + left: 0; + right: -30px; + border-top-color: #a9acb1; + border-top-style: solid +} +.mt-range-thumb { + background-color: #fff; + position: absolute; + left: 0; + top: 0; + width: 30px; + height: 30px; + border-radius: 100%; + cursor: move; + box-shadow: 0 1px 3px rgba(0,0,0,.4) +} +.mt-range-progress { + position: absolute; + display: block; + background-color: #26a2ff; + top: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + width: 0 +} +.mt-range--disabled { + opacity: 0.5 +} diff --git a/src/main/web/static/mint-ui/search/index.js b/src/main/web/static/mint-ui/search/index.js new file mode 100644 index 0000000000000000000000000000000000000000..dc152dba41c3aca949d755e7a5b4f3653ad53991 --- /dev/null +++ b/src/main/web/static/mint-ui/search/index.js @@ -0,0 +1,415 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 233); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 128: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 152: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(128) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(74), + /* template */ + __webpack_require__(198), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 198: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-search" + }, [_c('div', { + staticClass: "mint-searchbar" + }, [_c('div', { + staticClass: "mint-searchbar-inner" + }, [_c('i', { + staticClass: "mintui mintui-search" + }), _vm._v(" "), _c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + ref: "input", + staticClass: "mint-searchbar-core", + attrs: { + "type": "search", + "placeholder": _vm.placeholder + }, + domProps: { + "value": (_vm.currentValue) + }, + on: { + "click": function($event) { + _vm.visible = true + }, + "input": function($event) { + if ($event.target.composing) { return; } + _vm.currentValue = $event.target.value + } + } + })]), _vm._v(" "), _c('a', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.visible), + expression: "visible" + }], + staticClass: "mint-searchbar-cancel", + domProps: { + "textContent": _vm._s(_vm.cancelText) + }, + on: { + "click": function($event) { + _vm.visible = false, _vm.currentValue = '' + } + } + })]), _vm._v(" "), _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.show || _vm.currentValue), + expression: "show || currentValue" + }], + staticClass: "mint-search-list" + }, [_c('div', { + staticClass: "mint-search-list-warp" + }, [_vm._t("default", _vm._l((_vm.result), function(item, index) { + return _c('x-cell', { + key: index, + attrs: { + "title": item + } + }) + }))], 2)])]) +},staticRenderFns: []} + +/***/ }, + +/***/ 233: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(41); + + +/***/ }, + +/***/ 3: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell"); + +/***/ }, + +/***/ 4: +/***/ function(module, exports) { + +module.exports = require("mint-ui/lib/cell/style.css"); + +/***/ }, + +/***/ 41: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_search_vue__ = __webpack_require__(152); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_search_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_search_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_search_vue___default.a; }); + + + +/***/ }, + +/***/ 74: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__ = __webpack_require__(3); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + +if (true) { + __webpack_require__(4); +} + +/** + * mt-search + * @module components/search + * @desc 搜索框 + * @param {string} value - 绑定值 + * @param {string} [cancel-text=取消] - 取消按钮文字 + * @param {string} [placeholder=取消] - 搜索框占位内容 + * @param {boolean} [autofocus=false] - 自动 focus + * @param {boolean} [show=false] - 始终显示列表 + * @param {string[]} [result] - 结果列表 + * @param {slot} 结果列表 + * + * @example + * + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-search', + + data: function data() { + return { + visible: false, + currentValue: this.value + }; + }, + + components: { XCell: __WEBPACK_IMPORTED_MODULE_0_mint_ui_packages_cell_index_js___default.a }, + + watch: { + currentValue: function currentValue(val) { + this.$emit('input', val); + }, + + value: function value(val) { + this.currentValue = val; + } + }, + + props: { + value: String, + autofocus: Boolean, + show: Boolean, + cancelText: { + default: '取消' + }, + placeholder: { + default: '搜索' + }, + result: Array + }, + + mounted: function mounted() { + this.autofocus && this.$refs.input.focus(); + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/search/style.css b/src/main/web/static/mint-ui/search/style.css new file mode 100644 index 0000000000000000000000000000000000000000..190ce1f62ae8c6a20e3435e1052a1254353a0a9f --- /dev/null +++ b/src/main/web/static/mint-ui/search/style.css @@ -0,0 +1,70 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-search { + height: 100%; + height: 100vh; + overflow: hidden; +} +.mint-searchbar { + position: relative; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + background-color: #d9d9d9; + box-sizing: border-box; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + padding: 8px 10px; + z-index: 1; +} +.mint-searchbar-inner { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + background-color: #fff; + border-radius: 2px; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + height: 28px; + padding: 4px 6px; +} +.mint-searchbar-inner .mintui-search { + font-size: 12px; + color: #d9d9d9; +} +.mint-searchbar-core { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border: 0; + box-sizing: border-box; + width: 100%; + height: 100%; + outline: 0; +} +.mint-searchbar-cancel { + color: #26a2ff; + margin-left: 10px; + text-decoration: none; +} +.mint-search-list { + overflow: auto; + padding-top: 44px; + top: 0; + right: 0; + bottom: 0; + left: 0; + position: absolute; +} diff --git a/src/main/web/static/mint-ui/spinner/index.js b/src/main/web/static/mint-ui/spinner/index.js new file mode 100644 index 0000000000000000000000000000000000000000..782ba763d4e6063801e0d26129fcdab990c801cd --- /dev/null +++ b/src/main/web/static/mint-ui/spinner/index.js @@ -0,0 +1,706 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 234); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 10: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); + +/* harmony default export */ exports["default"] = { + computed: { + spinnerColor: function spinnerColor() { + return this.color || this.$parent.color || '#ccc'; + }, + + spinnerSize: function spinnerSize() { + return (this.size || this.$parent.size || 28) + 'px'; + } + }, + + props: { + size: Number, + color: String + } +}; + + +/***/ }, + +/***/ 103: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 107: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 11: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'fading-circle', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a], + + created: function created() { + if (this.$isServer) return; + this.styleNode = document.createElement('style'); + var css = ".circle-color-" + (this._uid) + " > div::before { background-color: " + (this.spinnerColor) + "; }"; + + this.styleNode.type = 'text/css'; + this.styleNode.rel = 'stylesheet'; + this.styleNode.title = 'fading circle style'; + document.getElementsByTagName('head')[0].appendChild(this.styleNode); + this.styleNode.appendChild(document.createTextNode(css)); + }, + + destroyed: function destroyed() { + if (this.styleNode) { + this.styleNode.parentNode.removeChild(this.styleNode); + } + } +}; + + +/***/ }, + +/***/ 114: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 14: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 15: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(14) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(11), + /* template */ + __webpack_require__(16), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 153: +/***/ function(module, exports, __webpack_require__) { + +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(75), + /* template */ + __webpack_require__(190), + /* styles */ + null, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 154: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(114) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(76), + /* template */ + __webpack_require__(184), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 155: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(107) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(77), + /* template */ + __webpack_require__(176), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 156: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(103) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(78), + /* template */ + __webpack_require__(172), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 16: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + class: ['mint-spinner-fading-circle circle-color-' + _vm._uid], + style: ({ + width: _vm.spinnerSize, + height: _vm.spinnerSize + }) + }, _vm._l((12), function(n) { + return _c('div', { + staticClass: "mint-spinner-fading-circle-circle", + class: ['is-circle' + (n + 1)] + }) + })) +},staticRenderFns: []} + +/***/ }, + +/***/ 172: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-spinner-triple-bounce" + }, [_c('div', { + staticClass: "mint-spinner-triple-bounce-bounce1", + style: (_vm.bounceStyle) + }), _vm._v(" "), _c('div', { + staticClass: "mint-spinner-triple-bounce-bounce2", + style: (_vm.bounceStyle) + }), _vm._v(" "), _c('div', { + staticClass: "mint-spinner-triple-bounce-bounce3", + style: (_vm.bounceStyle) + })]) +},staticRenderFns: []} + +/***/ }, + +/***/ 176: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-spinner-snake", + style: ({ + 'border-top-color': _vm.spinnerColor, + 'border-left-color': _vm.spinnerColor, + 'border-bottom-color': _vm.spinnerColor, + 'height': _vm.spinnerSize, + 'width': _vm.spinnerSize + }) + }) +},staticRenderFns: []} + +/***/ }, + +/***/ 184: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-spinner-double-bounce", + style: ({ + width: _vm.spinnerSize, + height: _vm.spinnerSize + }) + }, [_c('div', { + staticClass: "mint-spinner-double-bounce-bounce1", + style: ({ + backgroundColor: _vm.spinnerColor + }) + }), _vm._v(" "), _c('div', { + staticClass: "mint-spinner-double-bounce-bounce2", + style: ({ + backgroundColor: _vm.spinnerColor + }) + })]) +},staticRenderFns: []} + +/***/ }, + +/***/ 190: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('span', [_c(_vm.spinner, { + tag: "component" + })], 1) +},staticRenderFns: []} + +/***/ }, + +/***/ 234: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(42); + + +/***/ }, + +/***/ 42: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner__ = __webpack_require__(153); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_spinner__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_spinner___default.a; }); + + + +/***/ }, + +/***/ 6: +/***/ function(module, exports, __webpack_require__) { + +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(10), + /* template */ + null, + /* styles */ + null, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 75: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// + +var SPINNERS = [ + 'snake', + 'double-bounce', + 'triple-bounce', + 'fading-circle' +]; +var parseSpinner = function(index) { + if ({}.toString.call(index) === '[object Number]') { + if (SPINNERS.length <= index) { + console.warn(("'" + index + "' spinner not found, use the default spinner.")); + index = 0; + } + return SPINNERS[index]; + } + + if (SPINNERS.indexOf(index) === -1) { + console.warn(("'" + index + "' spinner not found, use the default spinner.")); + index = SPINNERS[0]; + } + return index; +}; + +/** + * mt-spinner + * @module components/spinner + * @desc 加载动画 + * @param {(string|number)} [type=snake] - 显示类型,传入类型名或者类型 id,可选 `snake`, `dobule-bounce`, `triple-bounce`, `fading-circle` + * @param {number} size - 尺寸 + * @param {string} color - 颜色 + * + * @example + * + * + * + * + * + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-spinner', + + computed: { + spinner: function spinner() { + return ("spinner-" + (parseSpinner(this.type))); + } + }, + + components: { + SpinnerSnake: __webpack_require__(155), + SpinnerDoubleBounce: __webpack_require__(154), + SpinnerTripleBounce: __webpack_require__(156), + SpinnerFadingCircle: __webpack_require__(15) + }, + + props: { + type: { + default: 0 + }, + size: { + type: Number, + default: 28 + }, + color: { + type: String, + default: '#ccc' + } + } +}; + + +/***/ }, + +/***/ 76: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'double-bounce', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a] +}; + + +/***/ }, + +/***/ 77: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'snake', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a] +}; + + +/***/ }, + +/***/ 78: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(6); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__); +// +// +// +// +// +// +// +// + + + +/* harmony default export */ exports["default"] = { + name: 'triple-bounce', + + mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a], + + computed: { + spinnerSize: function spinnerSize() { + return ((this.size || this.$parent.size || 28) / 3) + 'px'; + }, + + bounceStyle: function bounceStyle() { + return { + width: this.spinnerSize, + height: this.spinnerSize, + backgroundColor: this.spinnerColor + }; + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/spinner/style.css b/src/main/web/static/mint-ui/spinner/style.css new file mode 100644 index 0000000000000000000000000000000000000000..7ecf476db8312d231fb5f58c22a1bc67743c2495 --- /dev/null +++ b/src/main/web/static/mint-ui/spinner/style.css @@ -0,0 +1,227 @@ + +.mint-spinner-snake { + -webkit-animation: mint-spinner-rotate 0.8s infinite linear; + animation: mint-spinner-rotate 0.8s infinite linear; + border: 4px solid transparent; + border-radius: 50%; +} +@-webkit-keyframes mint-spinner-rotate { +0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); +} +100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); +} +} +@keyframes mint-spinner-rotate { +0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); +} +100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); +} +} + +.mint-spinner-double-bounce { +position: relative; +} +.mint-spinner-double-bounce-bounce1, .mint-spinner-double-bounce-bounce2 { +width: 100%; +height: 100%; +border-radius: 50%; +opacity: 0.6; +position: absolute; +top: 0; +left: 0; +-webkit-animation: mint-spinner-double-bounce 2.0s infinite ease-in-out; + animation: mint-spinner-double-bounce 2.0s infinite ease-in-out; +} +.mint-spinner-double-bounce-bounce2 { +-webkit-animation-delay: -1.0s; + animation-delay: -1.0s; +} +@-webkit-keyframes mint-spinner-double-bounce { +0%, 100% { + -webkit-transform: scale(0.0); + transform: scale(0.0); +} +50% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} +@keyframes mint-spinner-double-bounce { +0%, 100% { + -webkit-transform: scale(0.0); + transform: scale(0.0); +} +50% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} + +.mint-spinner-triple-bounce {} +.mint-spinner-triple-bounce-bounce1, .mint-spinner-triple-bounce-bounce2, .mint-spinner-triple-bounce-bounce3 { +border-radius: 100%; +display: inline-block; +-webkit-animation: mint-spinner-triple-bounce 1.4s infinite ease-in-out both; + animation: mint-spinner-triple-bounce 1.4s infinite ease-in-out both; +} +.mint-spinner-triple-bounce-bounce1 { +-webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} +.mint-spinner-triple-bounce-bounce2 { +-webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} +@-webkit-keyframes mint-spinner-triple-bounce { +0%, 80%, 100% { + -webkit-transform: scale(0); + transform: scale(0); +} +40% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} +@keyframes mint-spinner-triple-bounce { +0%, 80%, 100% { + -webkit-transform: scale(0); + transform: scale(0); +} +40% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} + +.mint-spinner-fading-circle { + position: relative +} +.mint-spinner-fading-circle-circle { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute +} +.mint-spinner-fading-circle-circle::before { + content: " "; + display: block; + margin: 0 auto; + width: 15%; + height: 15%; + border-radius: 100%; + -webkit-animation: mint-fading-circle 1.2s infinite ease-in-out both; + animation: mint-fading-circle 1.2s infinite ease-in-out both +} +.mint-spinner-fading-circle-circle.is-circle2 { + -webkit-transform: rotate(30deg); + transform: rotate(30deg) +} +.mint-spinner-fading-circle-circle.is-circle2::before { + -webkit-animation-delay: -1.1s; + animation-delay: -1.1s +} +.mint-spinner-fading-circle-circle.is-circle3 { + -webkit-transform: rotate(60deg); + transform: rotate(60deg) +} +.mint-spinner-fading-circle-circle.is-circle3::before { + -webkit-animation-delay: -1s; + animation-delay: -1s +} +.mint-spinner-fading-circle-circle.is-circle4 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg) +} +.mint-spinner-fading-circle-circle.is-circle4::before { + -webkit-animation-delay: -0.9s; + animation-delay: -0.9s +} +.mint-spinner-fading-circle-circle.is-circle5 { + -webkit-transform: rotate(120deg); + transform: rotate(120deg) +} +.mint-spinner-fading-circle-circle.is-circle5::before { + -webkit-animation-delay: -0.8s; + animation-delay: -0.8s +} +.mint-spinner-fading-circle-circle.is-circle6 { + -webkit-transform: rotate(150deg); + transform: rotate(150deg) +} +.mint-spinner-fading-circle-circle.is-circle6::before { + -webkit-animation-delay: -0.7s; + animation-delay: -0.7s +} +.mint-spinner-fading-circle-circle.is-circle7 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg) +} +.mint-spinner-fading-circle-circle.is-circle7::before { + -webkit-animation-delay: -0.6s; + animation-delay: -0.6s +} +.mint-spinner-fading-circle-circle.is-circle8 { + -webkit-transform: rotate(210deg); + transform: rotate(210deg) +} +.mint-spinner-fading-circle-circle.is-circle8::before { + -webkit-animation-delay: -0.5s; + animation-delay: -0.5s +} +.mint-spinner-fading-circle-circle.is-circle9 { + -webkit-transform: rotate(240deg); + transform: rotate(240deg) +} +.mint-spinner-fading-circle-circle.is-circle9::before { + -webkit-animation-delay: -0.4s; + animation-delay: -0.4s +} +.mint-spinner-fading-circle-circle.is-circle10 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg) +} +.mint-spinner-fading-circle-circle.is-circle10::before { + -webkit-animation-delay: -0.3s; + animation-delay: -0.3s +} +.mint-spinner-fading-circle-circle.is-circle11 { + -webkit-transform: rotate(300deg); + transform: rotate(300deg) +} +.mint-spinner-fading-circle-circle.is-circle11::before { + -webkit-animation-delay: -0.2s; + animation-delay: -0.2s +} +.mint-spinner-fading-circle-circle.is-circle12 { + -webkit-transform: rotate(330deg); + transform: rotate(330deg) +} +.mint-spinner-fading-circle-circle.is-circle12::before { + -webkit-animation-delay: -0.1s; + animation-delay: -0.1s +} +@-webkit-keyframes mint-fading-circle { + 0%, 39%, 100% { + opacity: 0 + } + 40% { + opacity: 1 + } +} +@keyframes mint-fading-circle { + 0%, 39%, 100% { + opacity: 0 + } + 40% { + opacity: 1 + } +} diff --git a/src/main/web/static/mint-ui/style.css b/src/main/web/static/mint-ui/style.css new file mode 100644 index 0000000000000000000000000000000000000000..78beb007d041eef693c822e472f197773ebd92e0 --- /dev/null +++ b/src/main/web/static/mint-ui/style.css @@ -0,0 +1,2008 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-header { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + background-color: #26a2ff; + box-sizing: border-box; + color: #fff; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + font-size: 14px; + height: 40px; + line-height: 1; + padding: 0 10px; + position: relative; + text-align: center; + white-space: nowrap; +} +.mint-header .mint-button { + background-color: transparent; + border: 0; + box-shadow: none; + color: inherit; + display: inline-block; + padding: 0; + font-size: inherit +} +.mint-header .mint-button::after { + content: none; +} +.mint-header.is-fixed { + top: 0; + right: 0; + left: 0; + position: fixed; + z-index: 1; +} +.mint-header-button { + -webkit-box-flex: .5; + -ms-flex: .5; + flex: .5; +} +.mint-header-button > a { + color: inherit; +} +.mint-header-button.is-right { + text-align: right; +} +.mint-header-button.is-left { + text-align: left; +} +.mint-header-title { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + font-size: inherit; + font-weight: 400; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-button { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border-radius: 4px; + border: 0; + box-sizing: border-box; + color: inherit; + display: block; + font-size: 18px; + height: 41px; + outline: 0; + overflow: hidden; + position: relative; + text-align: center +} +.mint-button::after { + background-color: #000; + content: " "; + opacity: 0; + top: 0; + right: 0; + bottom: 0; + left: 0; + position: absolute +} +.mint-button:not(.is-disabled):active::after { + opacity: .4 +} +.mint-button.is-disabled { + opacity: .6 +} +.mint-button-icon { + vertical-align: middle; + display: inline-block +} +.mint-button--default { + color: #656b79; + background-color: #f6f8fa; + box-shadow: 0 0 1px #b8bbbf +} +.mint-button--default.is-plain { + border: 1px solid #5a5a5a; + background-color: transparent; + box-shadow: none; + color: #5a5a5a +} +.mint-button--primary { + color: #fff; + background-color: #26a2ff +} +.mint-button--primary.is-plain { + border: 1px solid #26a2ff; + background-color: transparent; + color: #26a2ff +} +.mint-button--danger { + color: #fff; + background-color: #ef4f4f +} +.mint-button--danger.is-plain { + border: 1px solid #ef4f4f; + background-color: transparent; + color: #ef4f4f +} +.mint-button--large { + display: block; + width: 100% +} +.mint-button--normal { + display: inline-block; + padding: 0 12px +} +.mint-button--small { + display: inline-block; + font-size: 14px; + padding: 0 12px; + height: 33px +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-cell { + background-color:#fff; + box-sizing:border-box; + color:inherit; + min-height:48px; + display:block; + overflow:hidden; + position:relative; + text-decoration:none; +} +.mint-cell img { + vertical-align:middle; +} +.mint-cell:first-child .mint-cell-wrapper { + background-origin:border-box; +} +.mint-cell:last-child { + background-image:-webkit-linear-gradient(bottom, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-image:linear-gradient(0deg, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-size:100% 1px; + background-repeat:no-repeat; + background-position:bottom; +} +.mint-cell-wrapper { + background-image:-webkit-linear-gradient(top, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-image:linear-gradient(180deg, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-size: 120% 1px; + background-repeat: no-repeat; + background-position: top left; + background-origin: content-box; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + box-sizing: border-box; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + font-size: 16px; + line-height: 1; + min-height: inherit; + overflow: hidden; + padding: 0 10px; + width: 100%; +} +.mint-cell-mask {} +.mint-cell-mask::after { + background-color:#000; + content:" "; + opacity:0; + top:0; + right:0; + bottom:0; + left:0; + position:absolute; +} +.mint-cell-mask:active::after { + opacity:.1; +} +.mint-cell-text { + vertical-align: middle; +} +.mint-cell-label { + color: #888; + display: block; + font-size: 12px; + margin-top: 6px; +} +.mint-cell-title { + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; +} +.mint-cell-value { + color: #888; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; +} +.mint-cell-value.is-link { + margin-right:24px; +} +.mint-cell-left { + position: absolute; + height: 100%; + left: 0; + -webkit-transform: translate3d(-100%, 0, 0); + transform: translate3d(-100%, 0, 0); +} +.mint-cell-right { + position: absolute; + height: 100%; + right: 0; + top: 0; + -webkit-transform: translate3d(100%, 0, 0); + transform: translate3d(100%, 0, 0); +} +.mint-cell-allow-right::after { + border: solid 2px #c8c8cd; + border-bottom-width: 0; + border-left-width: 0; + content: " "; + top:50%; + right:20px; + position: absolute; + width:5px; + height:5px; + -webkit-transform: translateY(-50%) rotate(45deg); + transform: translateY(-50%) rotate(45deg); +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-cell-swipe .mint-cell-wrapper { + position: relative; +} +.mint-cell-swipe .mint-cell-wrapper, .mint-cell-swipe .mint-cell-left, .mint-cell-swipe .mint-cell-right { + -webkit-transition: -webkit-transform 150ms ease-in-out; + transition: -webkit-transform 150ms ease-in-out; + transition: transform 150ms ease-in-out; + transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out; +} +.mint-cell-swipe-buttongroup { + height: 100%; +} +.mint-cell-swipe-button { + height: 100%; + display: inline-block; + padding: 0 10px; + line-height: 48px; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-field { + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} +.mint-field .mint-cell-title { + width: 105px; + -webkit-box-flex: 0; + -ms-flex: none; + flex: none; +} +.mint-field .mint-cell-value { + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + color: inherit; + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} +.mint-field.is-nolabel .mint-cell-title { + display: none; +} +.mint-field.is-textarea { + -webkit-box-align: inherit; + -ms-flex-align: inherit; + align-items: inherit; +} +.mint-field.is-textarea .mint-cell-title { + padding: 10px 0; +} +.mint-field.is-textarea .mint-cell-value { + padding: 5px 0; +} +.mint-field-core { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border-radius: 0; + border: 0; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + outline: 0; + line-height: 1.6; + font-size: inherit; + width: 100%; +} +.mint-field-clear { + opacity: .2; +} +.mint-field-state { + color: inherit; + margin-left: 20px; +} +.mint-field-state .mintui { + font-size: 20px; +} +.mint-field-state.is-default { + margin-left: 0; +} +.mint-field-state.is-success { + color: #4caf50; +} +.mint-field-state.is-warning { + color: #ffc107; +} +.mint-field-state.is-error { + color: #f44336; +} +.mint-field-other { + top: 0; + right: 0; + position: relative; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-badge { + color: #fff; + text-align: center; + display: inline-block +} +.mint-badge.is-size-large { + border-radius: 14px; + font-size: 18px; + padding: 2px 10px +} +.mint-badge.is-size-small { + border-radius: 8px; + font-size: 12px; + padding: 2px 6px +} +.mint-badge.is-size-normal { + border-radius: 12px; + font-size: 15px; + padding: 2px 8px +} +.mint-badge.is-warning { + background-color: #ffc107 +} +.mint-badge.is-error { + background-color: #f44336 +} +.mint-badge.is-primary { + background-color: #26a2ff +} +.mint-badge.is-success { + background-color: #4caf50 +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-switch { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + position: relative; +} +.mint-switch * { + pointer-events: none; +} +.mint-switch-label { + margin-left: 10px; + display: inline-block; +} +.mint-switch-label:empty { + margin-left: 0; +} +.mint-switch-core { + display: inline-block; + position: relative; + width: 52px; + height: 32px; + border: 1px solid #d9d9d9; + border-radius: 16px; + box-sizing: border-box; + background: #d9d9d9; +} +.mint-switch-core::after, .mint-switch-core::before { + content: " "; + top: 0; + left: 0; + position: absolute; + -webkit-transition: -webkit-transform .3s; + transition: -webkit-transform .3s; + transition: transform .3s; + transition: transform .3s, -webkit-transform .3s; + border-radius: 15px; +} +.mint-switch-core::after { + width: 30px; + height: 30px; + background-color: #fff; + box-shadow: 0 1px 3px rgba(0, 0, 0, .4); +} +.mint-switch-core::before { + width: 50px; + height: 30px; + background-color: #fdfdfd; +} +.mint-switch-input { + display: none; +} +.mint-switch-input:checked + .mint-switch-core { + border-color: #26a2ff; + background-color: #26a2ff; +} +.mint-switch-input:checked + .mint-switch-core::before { + -webkit-transform: scale(0); + transform: scale(0); +} +.mint-switch-input:checked + .mint-switch-core::after { + -webkit-transform: translateX(20px); + transform: translateX(20px); +} + +.mint-spinner-snake { + -webkit-animation: mint-spinner-rotate 0.8s infinite linear; + animation: mint-spinner-rotate 0.8s infinite linear; + border: 4px solid transparent; + border-radius: 50%; +} +@-webkit-keyframes mint-spinner-rotate { +0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); +} +100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); +} +} +@keyframes mint-spinner-rotate { +0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); +} +100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); +} +} + +.mint-spinner-double-bounce { +position: relative; +} +.mint-spinner-double-bounce-bounce1, .mint-spinner-double-bounce-bounce2 { +width: 100%; +height: 100%; +border-radius: 50%; +opacity: 0.6; +position: absolute; +top: 0; +left: 0; +-webkit-animation: mint-spinner-double-bounce 2.0s infinite ease-in-out; + animation: mint-spinner-double-bounce 2.0s infinite ease-in-out; +} +.mint-spinner-double-bounce-bounce2 { +-webkit-animation-delay: -1.0s; + animation-delay: -1.0s; +} +@-webkit-keyframes mint-spinner-double-bounce { +0%, 100% { + -webkit-transform: scale(0.0); + transform: scale(0.0); +} +50% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} +@keyframes mint-spinner-double-bounce { +0%, 100% { + -webkit-transform: scale(0.0); + transform: scale(0.0); +} +50% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} + +.mint-spinner-triple-bounce {} +.mint-spinner-triple-bounce-bounce1, .mint-spinner-triple-bounce-bounce2, .mint-spinner-triple-bounce-bounce3 { +border-radius: 100%; +display: inline-block; +-webkit-animation: mint-spinner-triple-bounce 1.4s infinite ease-in-out both; + animation: mint-spinner-triple-bounce 1.4s infinite ease-in-out both; +} +.mint-spinner-triple-bounce-bounce1 { +-webkit-animation-delay: -0.32s; + animation-delay: -0.32s; +} +.mint-spinner-triple-bounce-bounce2 { +-webkit-animation-delay: -0.16s; + animation-delay: -0.16s; +} +@-webkit-keyframes mint-spinner-triple-bounce { +0%, 80%, 100% { + -webkit-transform: scale(0); + transform: scale(0); +} +40% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} +@keyframes mint-spinner-triple-bounce { +0%, 80%, 100% { + -webkit-transform: scale(0); + transform: scale(0); +} +40% { + -webkit-transform: scale(1.0); + transform: scale(1.0); +} +} + +.mint-spinner-fading-circle { + position: relative +} +.mint-spinner-fading-circle-circle { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute +} +.mint-spinner-fading-circle-circle::before { + content: " "; + display: block; + margin: 0 auto; + width: 15%; + height: 15%; + border-radius: 100%; + -webkit-animation: mint-fading-circle 1.2s infinite ease-in-out both; + animation: mint-fading-circle 1.2s infinite ease-in-out both +} +.mint-spinner-fading-circle-circle.is-circle2 { + -webkit-transform: rotate(30deg); + transform: rotate(30deg) +} +.mint-spinner-fading-circle-circle.is-circle2::before { + -webkit-animation-delay: -1.1s; + animation-delay: -1.1s +} +.mint-spinner-fading-circle-circle.is-circle3 { + -webkit-transform: rotate(60deg); + transform: rotate(60deg) +} +.mint-spinner-fading-circle-circle.is-circle3::before { + -webkit-animation-delay: -1s; + animation-delay: -1s +} +.mint-spinner-fading-circle-circle.is-circle4 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg) +} +.mint-spinner-fading-circle-circle.is-circle4::before { + -webkit-animation-delay: -0.9s; + animation-delay: -0.9s +} +.mint-spinner-fading-circle-circle.is-circle5 { + -webkit-transform: rotate(120deg); + transform: rotate(120deg) +} +.mint-spinner-fading-circle-circle.is-circle5::before { + -webkit-animation-delay: -0.8s; + animation-delay: -0.8s +} +.mint-spinner-fading-circle-circle.is-circle6 { + -webkit-transform: rotate(150deg); + transform: rotate(150deg) +} +.mint-spinner-fading-circle-circle.is-circle6::before { + -webkit-animation-delay: -0.7s; + animation-delay: -0.7s +} +.mint-spinner-fading-circle-circle.is-circle7 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg) +} +.mint-spinner-fading-circle-circle.is-circle7::before { + -webkit-animation-delay: -0.6s; + animation-delay: -0.6s +} +.mint-spinner-fading-circle-circle.is-circle8 { + -webkit-transform: rotate(210deg); + transform: rotate(210deg) +} +.mint-spinner-fading-circle-circle.is-circle8::before { + -webkit-animation-delay: -0.5s; + animation-delay: -0.5s +} +.mint-spinner-fading-circle-circle.is-circle9 { + -webkit-transform: rotate(240deg); + transform: rotate(240deg) +} +.mint-spinner-fading-circle-circle.is-circle9::before { + -webkit-animation-delay: -0.4s; + animation-delay: -0.4s +} +.mint-spinner-fading-circle-circle.is-circle10 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg) +} +.mint-spinner-fading-circle-circle.is-circle10::before { + -webkit-animation-delay: -0.3s; + animation-delay: -0.3s +} +.mint-spinner-fading-circle-circle.is-circle11 { + -webkit-transform: rotate(300deg); + transform: rotate(300deg) +} +.mint-spinner-fading-circle-circle.is-circle11::before { + -webkit-animation-delay: -0.2s; + animation-delay: -0.2s +} +.mint-spinner-fading-circle-circle.is-circle12 { + -webkit-transform: rotate(330deg); + transform: rotate(330deg) +} +.mint-spinner-fading-circle-circle.is-circle12::before { + -webkit-animation-delay: -0.1s; + animation-delay: -0.1s +} +@-webkit-keyframes mint-fading-circle { + 0%, 39%, 100% { + opacity: 0 + } + 40% { + opacity: 1 + } +} +@keyframes mint-fading-circle { + 0%, 39%, 100% { + opacity: 0 + } + 40% { + opacity: 1 + } +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-tab-item { + display: block; + padding: 7px 0; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + text-decoration: none +} +.mint-tab-item-icon { + width: 24px; + height: 24px; + margin: 0 auto 5px +} +.mint-tab-item-icon:empty { + display: none +} +.mint-tab-item-icon > * { + display: block; + width: 100%; + height: 100% +} +.mint-tab-item-label { + color: inherit; + font-size: 12px; + line-height: 1 +} + +.mint-tab-container-item { + -ms-flex-negative: 0; + flex-shrink: 0; + width: 100% +} + +.mint-tab-container { + overflow: hidden; + position: relative; +} +.mint-tab-container .swipe-transition { + -webkit-transition: -webkit-transform 150ms ease-in-out; + transition: -webkit-transform 150ms ease-in-out; + transition: transform 150ms ease-in-out; + transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out; +} +.mint-tab-container-wrap { + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-navbar { + background-color: #fff; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + text-align: center; +} +.mint-navbar .mint-tab-item { + padding: 17px 0; + font-size: 15px +} +.mint-navbar .mint-tab-item:last-child { + border-right: 0; +} +.mint-navbar .mint-tab-item.is-selected { + border-bottom: 3px solid #26a2ff; + color: #26a2ff; + margin-bottom: -3px; +} +.mint-navbar.is-fixed { + top: 0; + right: 0; + left: 0; + position: fixed; + z-index: 1; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-tabbar { + background-image: -webkit-linear-gradient(top, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-image: linear-gradient(180deg, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-size: 100% 1px; + background-repeat: no-repeat; + background-position: top left; + position: relative; + background-color: #fafafa; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + right: 0; + bottom: 0; + left: 0; + position: absolute; + text-align: center; +} +.mint-tabbar > .mint-tab-item.is-selected { + background-color: #eaeaea; + color: #26a2ff; +} +.mint-tabbar.is-fixed { + right: 0; + bottom: 0; + left: 0; + position: fixed; + z-index: 1; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-search { + height: 100%; + height: 100vh; + overflow: hidden; +} +.mint-searchbar { + position: relative; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + background-color: #d9d9d9; + box-sizing: border-box; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + padding: 8px 10px; + z-index: 1; +} +.mint-searchbar-inner { + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + background-color: #fff; + border-radius: 2px; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + height: 28px; + padding: 4px 6px; +} +.mint-searchbar-inner .mintui-search { + font-size: 12px; + color: #d9d9d9; +} +.mint-searchbar-core { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + border: 0; + box-sizing: border-box; + width: 100%; + height: 100%; + outline: 0; +} +.mint-searchbar-cancel { + color: #26a2ff; + margin-left: 10px; + text-decoration: none; +} +.mint-search-list { + overflow: auto; + padding-top: 44px; + top: 0; + right: 0; + bottom: 0; + left: 0; + position: absolute; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-checklist .mint-cell { + padding: 0; +} +.mint-checklist.is-limit .mint-checkbox-core:not(:checked) { + background-color: #d9d9d9; + border-color: #d9d9d9; +} +.mint-checklist-label { + display: block; + padding: 0 10px; +} +.mint-checklist-title { + color: #888; + display: block; + font-size: 12px; + margin: 8px; +} +.mint-checkbox {} +.mint-checkbox.is-right { + float: right; +} +.mint-checkbox-label { + vertical-align: middle; + margin-left: 6px; +} +.mint-checkbox-input { + display: none; +} +.mint-checkbox-input:checked + .mint-checkbox-core { + background-color: #26a2ff; + border-color: #26a2ff; +} +.mint-checkbox-input:checked + .mint-checkbox-core::after { + border-color: #fff; + -webkit-transform: rotate(45deg) scale(1); + transform: rotate(45deg) scale(1); +} +.mint-checkbox-input[disabled] + .mint-checkbox-core { + background-color: #d9d9d9; + border-color: #ccc; +} +.mint-checkbox-core { + display: inline-block; + background-color: #fff; + border-radius: 100%; + border: 1px solid #ccc; + position: relative; + width: 20px; + height: 20px; + vertical-align: middle; +} +.mint-checkbox-core::after { + border: 2px solid transparent; + border-left: 0; + border-top: 0; + content: " "; + top: 3px; + left: 6px; + position: absolute; + width: 4px; + height: 8px; + -webkit-transform: rotate(45deg) scale(0); + transform: rotate(45deg) scale(0); + -webkit-transition: -webkit-transform .2s; + transition: -webkit-transform .2s; + transition: transform .2s; + transition: transform .2s, -webkit-transform .2s; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-radiolist .mint-cell { + padding: 0; +} +.mint-radiolist-label { + display: block; + padding: 0 10px; +} +.mint-radiolist-title { + font-size: 12px; + margin: 8px; + display: block; + color: #888; +} +.mint-radio {} +.mint-radio.is-right { + float: right; +} +.mint-radio-label { + vertical-align: middle; + margin-left: 6px; +} +.mint-radio-input { + display: none; +} +.mint-radio-input:checked + .mint-radio-core { + background-color: #26a2ff; + border-color: #26a2ff; +} +.mint-radio-input:checked + .mint-radio-core::after { + background-color: #fff; + -webkit-transform: scale(1); + transform: scale(1); +} +.mint-radio-input[disabled] + .mint-radio-core { + background-color: #d9d9d9; + border-color: #ccc; +} +.mint-radio-core { + box-sizing: border-box; + display: inline-block; + background-color: #fff; + border-radius: 100%; + border: 1px solid #ccc; + position: relative; + width: 20px; + height: 20px; + vertical-align: middle; +} +.mint-radio-core::after { + content: " "; + border-radius: 100%; + top: 5px; + left: 5px; + position: absolute; + width: 8px; + height: 8px; + -webkit-transition: -webkit-transform .2s; + transition: -webkit-transform .2s; + transition: transform .2s; + transition: transform .2s, -webkit-transform .2s; + -webkit-transform: scale(0); + transform: scale(0); +} + +.mint-loadmore { + overflow: hidden +} +.mint-loadmore-content {} +.mint-loadmore-content.is-dropped { + -webkit-transition: .2s; + transition: .2s +} +.mint-loadmore-top, .mint-loadmore-bottom { + text-align: center; + height: 50px; + line-height: 50px +} +.mint-loadmore-top { + margin-top: -50px +} +.mint-loadmore-bottom { + margin-bottom: -50px +} +.mint-loadmore-spinner { + display: inline-block; + margin-right: 5px; + vertical-align: middle +} +.mint-loadmore-text { + vertical-align: middle +} + +.mint-actionsheet { + position: fixed; + background: #e0e0e0; + width: 100%; + text-align: center; + bottom: 0; + left: 50%; + -webkit-transform: translate3d(-50%, 0, 0); + transform: translate3d(-50%, 0, 0); + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition: -webkit-transform .3s ease-out; + transition: -webkit-transform .3s ease-out; + transition: transform .3s ease-out; + transition: transform .3s ease-out, -webkit-transform .3s ease-out; +} +.mint-actionsheet-list { + list-style: none; + padding: 0; + margin: 0; +} +.mint-actionsheet-listitem { + border-bottom: solid 1px #e0e0e0; +} +.mint-actionsheet-listitem, .mint-actionsheet-button { + display: block; + width: 100%; + height: 45px; + line-height: 45px; + font-size: 18px; + color: #333; + background-color: #fff; +} +.mint-actionsheet-listitem:active, .mint-actionsheet-button:active { + background-color: #f0f0f0; +} +.actionsheet-float-enter, .actionsheet-float-leave-active { + -webkit-transform: translate3d(-50%, 100%, 0); + transform: translate3d(-50%, 100%, 0); +} +.v-modal-enter { + -webkit-animation: v-modal-in .2s ease; + animation: v-modal-in .2s ease; +} + +.v-modal-leave { + -webkit-animation: v-modal-out .2s ease forwards; + animation: v-modal-out .2s ease forwards; +} + +@-webkit-keyframes v-modal-in { + 0% { + opacity: 0; + } + 100% { + } +} + +@keyframes v-modal-in { + 0% { + opacity: 0; + } + 100% { + } +} + +@-webkit-keyframes v-modal-out { + 0% { + } + 100% { + opacity: 0; + } +} + +@keyframes v-modal-out { + 0% { + } + 100% { + opacity: 0; + } +} + +.v-modal { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0.5; + background: #000; +} + +.mint-popup { + position: fixed; + background: #fff; + top: 50%; + left: 50%; + -webkit-transform: translate3d(-50%, -50%, 0); + transform: translate3d(-50%, -50%, 0); + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition: .2s ease-out; + transition: .2s ease-out; +} +.mint-popup-top { + top: 0; + right: auto; + bottom: auto; + left: 50%; + -webkit-transform: translate3d(-50%, 0, 0); + transform: translate3d(-50%, 0, 0); +} +.mint-popup-right { + top: 50%; + right: 0; + bottom: auto; + left: auto; + -webkit-transform: translate3d(0, -50%, 0); + transform: translate3d(0, -50%, 0); +} +.mint-popup-bottom { + top: auto; + right: auto; + bottom: 0; + left: 50%; + -webkit-transform: translate3d(-50%, 0, 0); + transform: translate3d(-50%, 0, 0); +} +.mint-popup-left { + top: 50%; + right: auto; + bottom: auto; + left: 0; + -webkit-transform: translate3d(0, -50%, 0); + transform: translate3d(0, -50%, 0); +} +.popup-slide-top-enter, .popup-slide-top-leave-active { + -webkit-transform: translate3d(-50%, -100%, 0); + transform: translate3d(-50%, -100%, 0); +} +.popup-slide-right-enter, .popup-slide-right-leave-active { + -webkit-transform: translate3d(100%, -50%, 0); + transform: translate3d(100%, -50%, 0); +} +.popup-slide-bottom-enter, .popup-slide-bottom-leave-active { + -webkit-transform: translate3d(-50%, 100%, 0); + transform: translate3d(-50%, 100%, 0); +} +.popup-slide-left-enter, .popup-slide-left-leave-active { + -webkit-transform: translate3d(-100%, -50%, 0); + transform: translate3d(-100%, -50%, 0); +} +.popup-fade-enter, .popup-fade-leave-active { + opacity: 0; +} + +.mint-swipe { + overflow: hidden; + position: relative; + height: 100%; +} +.mint-swipe-items-wrap { + position: relative; + overflow: hidden; + height: 100%; +} +.mint-swipe-items-wrap > div { + position: absolute; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + width: 100%; + height: 100%; + display: none +} +.mint-swipe-items-wrap > div.is-active { + display: block; + -webkit-transform: none; + transform: none; +} +.mint-swipe-indicators { + position: absolute; + bottom: 10px; + left: 50%; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); +} +.mint-swipe-indicator { + width: 8px; + height: 8px; + display: inline-block; + border-radius: 100%; + background: #000; + opacity: 0.2; + margin: 0 3px; +} +.mint-swipe-indicator.is-active { + background: #fff; +} + + +.mt-range { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + height: 30px; + line-height: 30px +} +.mt-range > * { + display: -ms-flexbox; + display: flex; + display: -webkit-box +} +.mt-range *[slot=start] { + margin-right: 5px +} +.mt-range *[slot=end] { + margin-left: 5px +} +.mt-range-content { + position: relative; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + margin-right: 30px +} +.mt-range-runway { + position: absolute; + top: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + left: 0; + right: -30px; + border-top-color: #a9acb1; + border-top-style: solid +} +.mt-range-thumb { + background-color: #fff; + position: absolute; + left: 0; + top: 0; + width: 30px; + height: 30px; + border-radius: 100%; + cursor: move; + box-shadow: 0 1px 3px rgba(0,0,0,.4) +} +.mt-range-progress { + position: absolute; + display: block; + background-color: #26a2ff; + top: 50%; + -webkit-transform: translateY(-50%); + transform: translateY(-50%); + width: 0 +} +.mt-range--disabled { + opacity: 0.5 +} + +.picker { + overflow: hidden; +} +.picker-toolbar { + height: 40px; +} +.picker-items { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + padding: 0; + text-align: right; + font-size: 24px; + position: relative; +} +.picker-center-highlight { + box-sizing: border-box; + position: absolute; + left: 0; + width: 100%; + top: 50%; + margin-top: -18px; + pointer-events: none +} +.picker-center-highlight:before, .picker-center-highlight:after { + content: ''; + position: absolute; + height: 1px; + width: 100%; + background-color: #eaeaea; + display: block; + z-index: 15; + -webkit-transform: scaleY(0.5); + transform: scaleY(0.5); +} +.picker-center-highlight:before { + left: 0; + top: 0; + bottom: auto; + right: auto; +} +.picker-center-highlight:after { + left: 0; + bottom: 0; + right: auto; + top: auto; +} + +.picker-slot { + font-size: 18px; + overflow: hidden; + position: relative; + max-height: 100% +} +.picker-slot.picker-slot-left { + text-align: left; +} +.picker-slot.picker-slot-center { + text-align: center; +} +.picker-slot.picker-slot-right { + text-align: right; +} +.picker-slot.picker-slot-divider { + color: #000; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center +} +.picker-slot-wrapper { + -webkit-transition-duration: 0.3s; + transition-duration: 0.3s; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +.picker-slot-wrapper.dragging, .picker-slot-wrapper.dragging .picker-item { + -webkit-transition-duration: 0s; + transition-duration: 0s; +} +.picker-item { + height: 36px; + line-height: 36px; + padding: 0 10px; + white-space: nowrap; + position: relative; + overflow: hidden; + text-overflow: ellipsis; + color: #707274; + left: 0; + top: 0; + width: 100%; + box-sizing: border-box; + -webkit-transition-duration: .3s; + transition-duration: .3s; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +.picker-slot-absolute .picker-item { + position: absolute; +} +.picker-item.picker-item-far { + pointer-events: none +} +.picker-item.picker-selected { + color: #000; + -webkit-transform: translate3d(0, 0, 0) rotateX(0); + transform: translate3d(0, 0, 0) rotateX(0); +} +.picker-3d .picker-items { + overflow: hidden; + -webkit-perspective: 700px; + perspective: 700px; +} +.picker-3d .picker-item, .picker-3d .picker-slot, .picker-3d .picker-slot-wrapper { + -webkit-transform-style: preserve-3d; + transform-style: preserve-3d +} +.picker-3d .picker-slot { + overflow: visible +} +.picker-3d .picker-item { + -webkit-transform-origin: center center; + transform-origin: center center; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out +} + +.mt-progress { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + height: 30px; + line-height: 30px +} +.mt-progress > * { + display: -ms-flexbox; + display: flex; + display: -webkit-box +} +.mt-progress *[slot="start"] { + margin-right: 5px +} +.mt-progress *[slot="end"] { + margin-left: 5px +} +.mt-progress-content { + position: relative; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1 +} +.mt-progress-runway { + position: absolute; + -webkit-transform: translate(0, -50%); + transform: translate(0, -50%); + top: 50%; + left: 0; + right: 0; + background-color: #ebebeb; + height: 3px +} +.mt-progress-progress { + position: absolute; + display: block; + background-color: #26a2ff; + top: 50%; + -webkit-transform: translate(0, -50%); + transform: translate(0, -50%); + width: 0 +} + +.mint-toast { + position: fixed; + max-width: 80%; + border-radius: 5px; + background: rgba(0, 0, 0, 0.7); + color: #fff; + box-sizing: border-box; + text-align: center; + z-index: 1000; + -webkit-transition: opacity .3s linear; + transition: opacity .3s linear +} +.mint-toast.is-placebottom { + bottom: 50px; + left: 50%; + -webkit-transform: translate(-50%, 0); + transform: translate(-50%, 0) +} +.mint-toast.is-placemiddle { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%) +} +.mint-toast.is-placetop { + top: 50px; + left: 50%; + -webkit-transform: translate(-50%, 0); + transform: translate(-50%, 0) +} +.mint-toast-icon { + display: block; + text-align: center; + font-size: 56px +} +.mint-toast-text { + font-size: 14px; + display: block; + text-align: center +} +.mint-toast-pop-enter, .mint-toast-pop-leave-active { + opacity: 0 +} + +.mint-indicator { + -webkit-transition: opacity .2s linear; + transition: opacity .2s linear; +} +.mint-indicator-wrapper { + top: 50%; + left: 50%; + position: fixed; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + border-radius: 5px; + background: rgba(0, 0, 0, 0.7); + color: white; + box-sizing: border-box; + text-align: center; +} +.mint-indicator-text { + display: block; + color: #fff; + text-align: center; + margin-top: 10px; + font-size: 16px; +} +.mint-indicator-spin { + display: inline-block; + text-align: center; +} +.mint-indicator-mask { + top: 0; + left: 0; + position: fixed; + width: 100%; + height: 100%; + opacity: 0; + background: transparent; +} +.mint-indicator-enter, .mint-indicator-leave-active { + opacity: 0; +} + +.mint-msgbox { + position: fixed; + top: 50%; + left: 50%; + -webkit-transform: translate3d(-50%, -50%, 0); + transform: translate3d(-50%, -50%, 0); + background-color: #fff; + width: 85%; + border-radius: 3px; + font-size: 16px; + -webkit-user-select: none; + overflow: hidden; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + -webkit-transition: .2s; + transition: .2s; +} +.mint-msgbox-header { + padding: 15px 0 0; +} +.mint-msgbox-content { + padding: 10px 20px 15px; + border-bottom: 1px solid #ddd; + min-height: 36px; + position: relative; +} +.mint-msgbox-input { + padding-top: 15px; +} +.mint-msgbox-input input { + border: 1px solid #dedede; + border-radius: 5px; + padding: 4px 5px; + width: 100%; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + outline: none; +} +.mint-msgbox-input input.invalid { + border-color: #ff4949; +} +.mint-msgbox-input input.invalid:focus { + border-color: #ff4949; +} +.mint-msgbox-errormsg { + color: red; + font-size: 12px; + min-height: 18px; + margin-top: 2px; +} +.mint-msgbox-title { + text-align: center; + padding-left: 0; + margin-bottom: 0; + font-size: 16px; + font-weight: 700; + color: #333; +} +.mint-msgbox-message { + color: #999; + margin: 0; + text-align: center; + line-height: 36px; +} +.mint-msgbox-btns { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + height: 40px; + line-height: 40px; +} +.mint-msgbox-btn { + line-height: 35px; + display: block; + background-color: #fff; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + margin: 0; + border: 0; +} +.mint-msgbox-btn:focus { + outline: none; +} +.mint-msgbox-btn:active { + background-color: #fff; +} +.mint-msgbox-cancel { + width: 50%; + border-right: 1px solid #ddd; +} +.mint-msgbox-cancel:active { + color: #000; +} +.mint-msgbox-confirm { + color: #26a2ff; + width: 50%; +} +.mint-msgbox-confirm:active { + color: #26a2ff; +} +.msgbox-bounce-enter { + opacity: 0; + -webkit-transform: translate3d(-50%, -50%, 0) scale(0.7); + transform: translate3d(-50%, -50%, 0) scale(0.7); +} +.msgbox-bounce-leave-active { + opacity: 0; + -webkit-transform: translate3d(-50%, -50%, 0) scale(0.9); + transform: translate3d(-50%, -50%, 0) scale(0.9); +} + +.v-modal-enter { + -webkit-animation: v-modal-in .2s ease; + animation: v-modal-in .2s ease; +} +.v-modal-leave { + -webkit-animation: v-modal-out .2s ease forwards; + animation: v-modal-out .2s ease forwards; +} +@-webkit-keyframes v-modal-in { +0% { + opacity: 0; +} +100% { +} +} +@keyframes v-modal-in { +0% { + opacity: 0; +} +100% { +} +} +@-webkit-keyframes v-modal-out { +0% { +} +100% { + opacity: 0; +} +} +@keyframes v-modal-out { +0% { +} +100% { + opacity: 0; +} +} +.v-modal { + position: fixed; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0.5; + background: #000; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-datetime { + width: 100%; +} +.mint-datetime .picker-slot-wrapper, .mint-datetime .picker-item { + -webkit-backface-visibility: hidden; + backface-visibility: hidden; +} +.mint-datetime .picker-toolbar { + border-bottom: solid 1px #eaeaea; +} +.mint-datetime-action { + display: inline-block; + width: 50%; + text-align: center; + line-height: 40px; + font-size: 16px; + color: #26a2ff; +} +.mint-datetime-cancel { + float: left; +} +.mint-datetime-confirm { + float: right; +} +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-indexlist { + width: 100%; + position: relative; + overflow: hidden +} +.mint-indexlist-content { + margin: 0; + padding: 0; + overflow: auto +} +.mint-indexlist-nav { + position: absolute; + top: 0; + bottom: 0; + right: 0; + margin: 0; + background-color: #fff; + border-left: solid 1px #ddd; + text-align: center; + max-height: 100%; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center +} +.mint-indexlist-navlist { + padding: 0; + margin: 0; + list-style: none; + max-height: 100%; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column +} +.mint-indexlist-navitem { + padding: 2px 6px; + font-size: 12px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-touch-callout: none +} +.mint-indexlist-indicator { + position: absolute; + width: 50px; + height: 50px; + top: 50%; + left: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + text-align: center; + line-height: 50px; + background-color: rgba(0, 0, 0, .7); + border-radius: 5px; + color: #fff; + font-size: 22px +} + +.mint-indexsection { + padding: 0; + margin: 0 +} +.mint-indexsection-index { + margin: 0; + padding: 10px; + background-color: #fafafa +} +.mint-indexsection-index + ul { + padding: 0 +} + +.mint-palette-button{ + display:inline-block; + position:relative; + border-radius:50%; + width: 56px; + height:56px; + line-height:56px; + text-align:center; + -webkit-transition:-webkit-transform .1s ease-in-out; + transition:-webkit-transform .1s ease-in-out; + transition:transform .1s ease-in-out; + transition:transform .1s ease-in-out, -webkit-transform .1s ease-in-out; +} +.mint-main-button{ + position:absolute; + top:0; + left:0; + width:100%; + height:100%; + border-radius:50%; + background-color:blue; + font-size:2em; +} +.mint-palette-button-active{ + -webkit-animation: mint-zoom 0.5s ease-in-out; + animation: mint-zoom 0.5s ease-in-out; +} +.mint-sub-button-container>*{ + position:absolute; + top:15px; + left:15px; + width:25px; + height:25px; + -webkit-transition:-webkit-transform .3s ease-in-out; + transition:-webkit-transform .3s ease-in-out; + transition:transform .3s ease-in-out; + transition: transform .3s ease-in-out, -webkit-transform .3s ease-in-out; +} +@-webkit-keyframes mint-zoom{ +0% {-webkit-transform:scale(1);transform:scale(1) +} +10% {-webkit-transform:scale(1.1);transform:scale(1.1) +} +30% {-webkit-transform:scale(0.9);transform:scale(0.9) +} +50% {-webkit-transform:scale(1.05);transform:scale(1.05) +} +70% {-webkit-transform:scale(0.95);transform:scale(0.95) +} +90% {-webkit-transform:scale(1.01);transform:scale(1.01) +} +100% {-webkit-transform:scale(1);transform:scale(1) +} +} +@keyframes mint-zoom{ +0% {-webkit-transform:scale(1);transform:scale(1) +} +10% {-webkit-transform:scale(1.1);transform:scale(1.1) +} +30% {-webkit-transform:scale(0.9);transform:scale(0.9) +} +50% {-webkit-transform:scale(1.05);transform:scale(1.05) +} +70% {-webkit-transform:scale(0.95);transform:scale(0.95) +} +90% {-webkit-transform:scale(1.01);transform:scale(1.01) +} +100% {-webkit-transform:scale(1);transform:scale(1) +} +} + +@font-face {font-family: "mintui"; + src: url(data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTXMrDTgAAAD8AAAAHE9TLzJXb1zGAAABGAAAAGBjbWFwsbgH3gAAAXgAAAFaY3Z0IA1j/vQAAA2UAAAAJGZwZ20w956VAAANuAAACZZnYXNwAAAAEAAADYwAAAAIZ2x5Zm8hHaQAAALUAAAHeGhlYWQKwq5kAAAKTAAAADZoaGVhCJMESQAACoQAAAAkaG10eBuiAmQAAAqoAAAAKGxvY2EJUArqAAAK0AAAABhtYXhwAS4KKwAACugAAAAgbmFtZal8DOEAAAsIAAACE3Bvc3QbrFqUAAANHAAAAHBwcmVwpbm+ZgAAF1AAAACVAAAAAQAAAADMPaLPAAAAANN2tTQAAAAA03a1NAAEBBIB9AAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAgAGAwAAAAAAAAAAAAEQAAAAAAAAAAAAAABQZkVkAMAAeOYJA4D/gABcA38AgAAAAAEAAAAAAxgAAAAAACAAAQAAAAMAAAADAAAAHAABAAAAAABUAAMAAQAAABwABAA4AAAACgAIAAIAAgB45gLmBeYJ//8AAAB45gDmBOYI////ixoEGgMaAQABAAAAAAAAAAAAAAAAAQYAAAEAAAAAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACACIAAAEyAqoAAwAHAClAJgAAAAMCAANXAAIBAQJLAAICAU8EAQECAUMAAAcGBQQAAwADEQUPKzMRIREnMxEjIgEQ7szMAqr9ViICZgAAAAUALP/hA7wDGAAWADAAOgBSAF4Bd0uwE1BYQEoCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoGCV4RAQwGBAYMXgALBAtpDwEIAAYMCAZYAAoHBQIECwoEWRIBDg4NUQANDQoOQhtLsBdQWEBLAgEADQ4NAA5mAAMOAQ4DXgABCAgBXBABCQgKCAkKZhEBDAYEBgxeAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0uwGFBYQEwCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0BOAgEADQ4NAA5mAAMOAQ4DAWYAAQgOAQhkEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CWVlZQChTUzs7MjEXF1NeU15bWDtSO1JLQzc1MToyOhcwFzBRETEYESgVQBMWKwEGKwEiDgIdASE1NCY1NC4CKwEVIQUVFBYUDgIjBiYrASchBysBIiciLgI9ARciBhQWMzI2NCYXBgcOAx4BOwYyNicuAScmJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIw4OHw4gLf5JLB0iFBkZIBMIdwwSEgwNEhKMCAYFCwQCBA8OJUNRUEAkFxYJBQkFBQb+pAUPGhW8HykCHwEMGScaTCkQHAQNIBsSYYg0Fzo6JRcJAQGAgAETGyAOpz8RGhERGhF8GhYTJA4QDQgYGg0jERMUAXfkCxgTDB0m4wAAAQDp//UCugMMABEASLYKAQIAAQFAS7AaUFhACwABAQpBAAAACwBCG0uwKlBYQAsAAAABUQABAQoAQhtAEAABAAABTQABAQBRAAABAEVZWbMYFQIQKwkCFhQGIicBJjcmNwE2MhYUArD+iQF3ChQcCv5yCgEBCgGOChwUAtT+rf6sCRwTCgFoCw8OCwFoChMcAAAAAAMAXgElA6EB2gAHAA8AFwAhQB4EAgIAAQEATQQCAgAAAVEFAwIBAAFFExMTExMQBhQrEiIGFBYyNjQkIgYUFjI2NCQiBhQWMjY03ks1NUs1ARNLNTVLNQERSzU1SzUB2jVLNTVLNTVLNTVLNTVLNTVLAAAAAQAA/4AEtgN/ABAAEkAPBwYFAwAFAD0AAABfHQEPKwEEAQcmATcBNiQ+AT8BMh4BBLb/AP6adZT+uW0BJZkBCJ5uGBUFDicDNuP95Le4AUdu/wCa+YVeDg4EIwACAE7/6AO4A1IAGAAgACdAJBEDAgMEAUAAAAAEAwAEWQADAAECAwFZAAICCwJCExMVJRgFEyslJyYnNjU0LgEiDgEUHgEzMjcWHwEWMjY0JCImNDYyFhQDrdQFB0lfpMKkX1+kYYZlAwTUCx8W/nb4sLD4sCrYBgJie2KoYWGoxahhWwYE2QsXH5a0/rOz/gAGAEH/wAO/Az4ADwAbADMAQwBPAFsAVUBSW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEGxoZGBcWFRQTEhEQJAEAAUAAAwADaAACAQJpBAEAAQEATQQBAAABUQUBAQABRT08NTQpKB0cFxAGECsAIg4CFB4CMj4CNC4BAwcnByc3JzcXNxcHEiInLgEnJjQ3PgE3NjIXHgEXFhQHDgEHAiIOAhQeAjI+AjQuAQMnByc3JzcXNxcHFyEXNxc3JzcnBycHFwJataZ3R0d3prWmd0dHd0Qimpoimpoimpoimjm2U1F7IiMjIntRU7ZTUHwiIyMifFBUtaV4RkZ4pbWleEdHeGWamiOamiOamiOamv6IIZqaIZqaIZqaIZoDPkd3praleEZGeKW2pnf97yKamiKamiKamiKa/kAjInxQU7ZTUXsiIyMie1FTtlNQfCIDWkZ4pbWleEdHeKW1pXj9zJqaI5qaI5qaI5qaIZqaIZqaIZqaIZoAAAAABABHAAIDtwLdAA0AHQAwADEAMUAuMQEEBQFAAAAABQQABVkABAADAgQDWQACAQECTQACAgFRAAECAUU2NDU1NRIGFCslASYiBwEGFxYzITI3NiUUBisBIiY9ATQ2OwEyFhUnBiMnIiY1JzU0NjsBMhYdAhQHA7f+dxA+EP53EREQHwMSHxAR/mkKCD4ICwsIPggKBQUIPggKAQsHPwgKBVACdBkZ/YwbGhkZGjEJDQ0JJQoNDQpWBQEIB2mmBgkJBqVrBgQAAAADAED/wwO+A0IAAAAQABYAJkAjFhUUExIRBgEAAUAAAQA+AAABAQBNAAAAAVEAAQABRRcRAhArATIiDgIUHgIyPgI0LgEBJzcXARcB/1u2pndHR3emtqZ3R0d3/sXCI58BIyMDQkd4pbameEdHeKa2pXj9w8MjnwEkIwAAAQAAAAEAACFDvy9fDzz1AAsEAAAAAADTdrU0AAAAANN2tTQAAP+ABLYDfwAAAAgAAgAAAAAAAAABAAADf/+AAFwEvwAAAAAEtgABAAAAAAAAAAAAAAAAAAAACQF2ACIAAAAAAVUAAAPpACwEAADpBAAAXgS/AAAD6ABOBAAAQQBHAEAAAAAoACgAKAFkAa4B6AIWAl4DGgN+A7wAAQAAAAsAXwAGAAAAAAACACYANABsAAAAigmWAAAAAAAAAAwAlgABAAAAAAABAAYAAAABAAAAAAACAAYABgABAAAAAAADACEADAABAAAAAAAEAAYALQABAAAAAAAFAEYAMwABAAAAAAAGAAYAeQADAAEECQABAAwAfwADAAEECQACAAwAiwADAAEECQADAEIAlwADAAEECQAEAAwA2QADAAEECQAFAIwA5QADAAEECQAGAAwBcW1pbnR1aU1lZGl1bUZvbnRGb3JnZSAyLjAgOiBtaW50dWkgOiAzLTYtMjAxNm1pbnR1aVZlcnNpb24gMS4wIDsgdHRmYXV0b2hpbnQgKHYwLjk0KSAtbCA4IC1yIDUwIC1HIDIwMCAteCAxNCAtdyAiRyIgLWYgLXNtaW50dWkAbQBpAG4AdAB1AGkATQBlAGQAaQB1AG0ARgBvAG4AdABGAG8AcgBnAGUAIAAyAC4AMAAgADoAIABtAGkAbgB0AHUAaQAgADoAIAAzAC0ANgAtADIAMAAxADYAbQBpAG4AdAB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwACAAOwAgAHQAdABmAGEAdQB0AG8AaABpAG4AdAAgACgAdgAwAC4AOQA0ACkAIAAtAGwAIAA4ACAALQByACAANQAwACAALQBHACAAMgAwADAAIAAtAHgAIAAxADQAIAAtAHcAIAAiAEcAIgAgAC0AZgAgAC0AcwBtAGkAbgB0AHUAaQAAAgAAAAAAAP+DADIAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQACAFsBAgEDAQQBBQEGAQcBCAd1bmlFNjAwB3VuaUU2MDEHdW5pRTYwMgd1bmlFNjA0B3VuaUU2MDUHdW5pRTYwOAd1bmlFNjA5AAEAAf//AA8AAAAAAAAAAAAAAAAAAAAAADIAMgMY/+EDf/+AAxj/4QN//4CwACywIGBmLbABLCBkILDAULAEJlqwBEVbWCEjIRuKWCCwUFBYIbBAWRsgsDhQWCGwOFlZILAKRWFksChQWCGwCkUgsDBQWCGwMFkbILDAUFggZiCKimEgsApQWGAbILAgUFghsApgGyCwNlBYIbA2YBtgWVlZG7AAK1lZI7AAUFhlWVktsAIsIEUgsAQlYWQgsAVDUFiwBSNCsAYjQhshIVmwAWAtsAMsIyEjISBksQViQiCwBiNCsgoAAiohILAGQyCKIIqwACuxMAUlilFYYFAbYVJZWCNZISCwQFNYsAArGyGwQFkjsABQWGVZLbAELLAII0KwByNCsAAjQrAAQ7AHQ1FYsAhDK7IAAQBDYEKwFmUcWS2wBSywAEMgRSCwAkVjsAFFYmBELbAGLLAAQyBFILAAKyOxBAQlYCBFiiNhIGQgsCBQWCGwABuwMFBYsCAbsEBZWSOwAFBYZVmwAyUjYURELbAHLLEFBUWwAWFELbAILLABYCAgsApDSrAAUFggsAojQlmwC0NKsABSWCCwCyNCWS2wCSwguAQAYiC4BABjiiNhsAxDYCCKYCCwDCNCIy2wCixLVFixBwFEWSSwDWUjeC2wCyxLUVhLU1ixBwFEWRshWSSwE2UjeC2wDCyxAA1DVVixDQ1DsAFhQrAJK1mwAEOwAiVCsgABAENgQrEKAiVCsQsCJUKwARYjILADJVBYsABDsAQlQoqKIIojYbAIKiEjsAFhIIojYbAIKiEbsABDsAIlQrACJWGwCCohWbAKQ0ewC0NHYLCAYiCwAkVjsAFFYmCxAAATI0SwAUOwAD6yAQEBQ2BCLbANLLEABUVUWACwDSNCIGCwAWG1Dg4BAAwAQkKKYLEMBCuwaysbIlktsA4ssQANKy2wDyyxAQ0rLbAQLLECDSstsBEssQMNKy2wEiyxBA0rLbATLLEFDSstsBQssQYNKy2wFSyxBw0rLbAWLLEIDSstsBcssQkNKy2wGCywByuxAAVFVFgAsA0jQiBgsAFhtQ4OAQAMAEJCimCxDAQrsGsrGyJZLbAZLLEAGCstsBossQEYKy2wGyyxAhgrLbAcLLEDGCstsB0ssQQYKy2wHiyxBRgrLbAfLLEGGCstsCAssQcYKy2wISyxCBgrLbAiLLEJGCstsCMsIGCwDmAgQyOwAWBDsAIlsAIlUVgjIDywAWAjsBJlHBshIVktsCQssCMrsCMqLbAlLCAgRyAgsAJFY7ABRWJgI2E4IyCKVVggRyAgsAJFY7ABRWJgI2E4GyFZLbAmLLEABUVUWACwARawJSqwARUwGyJZLbAnLLAHK7EABUVUWACwARawJSqwARUwGyJZLbAoLCA1sAFgLbApLACwA0VjsAFFYrAAK7ACRWOwAUVisAArsAAWtAAAAAAARD4jOLEoARUqLbAqLCA8IEcgsAJFY7ABRWJgsABDYTgtsCssLhc8LbAsLCA8IEcgsAJFY7ABRWJgsABDYbABQ2M4LbAtLLECABYlIC4gR7AAI0KwAiVJiopHI0cjYSBYYhshWbABI0KyLAEBFRQqLbAuLLAAFrAEJbAEJUcjRyNhsAZFK2WKLiMgIDyKOC2wLyywABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyCwCUMgiiNHI0cjYSNGYLAEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmEjICCwBCYjRmE4GyOwCUNGsAIlsAlDRyNHI2FgILAEQ7CAYmAjILAAKyOwBENgsAArsAUlYbAFJbCAYrAEJmEgsAQlYGQjsAMlYGRQWCEbIyFZIyAgsAQmI0ZhOFktsDAssAAWICAgsAUmIC5HI0cjYSM8OC2wMSywABYgsAkjQiAgIEYjR7AAKyNhOC2wMiywABawAyWwAiVHI0cjYbAAVFguIDwjIRuwAiWwAiVHI0cjYSCwBSWwBCVHI0cjYbAGJbAFJUmwAiVhsAFFYyMgWGIbIVljsAFFYmAjLiMgIDyKOCMhWS2wMyywABYgsAlDIC5HI0cjYSBgsCBgZrCAYiMgIDyKOC2wNCwjIC5GsAIlRlJYIDxZLrEkARQrLbA1LCMgLkawAiVGUFggPFkusSQBFCstsDYsIyAuRrACJUZSWCA8WSMgLkawAiVGUFggPFkusSQBFCstsDcssC4rIyAuRrACJUZSWCA8WS6xJAEUKy2wOCywLyuKICA8sAQjQoo4IyAuRrACJUZSWCA8WS6xJAEUK7AEQy6wJCstsDkssAAWsAQlsAQmIC5HI0cjYbAGRSsjIDwgLiM4sSQBFCstsDossQkEJUKwABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyBHsARDsIBiYCCwACsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsIBiYbACJUZhOCMgPCM4GyEgIEYjR7AAKyNhOCFZsSQBFCstsDsssC4rLrEkARQrLbA8LLAvKyEjICA8sAQjQiM4sSQBFCuwBEMusCQrLbA9LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA+LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA/LLEAARQTsCsqLbBALLAtKi2wQSywABZFIyAuIEaKI2E4sSQBFCstsEIssAkjQrBBKy2wQyyyAAA6Ky2wRCyyAAE6Ky2wRSyyAQA6Ky2wRiyyAQE6Ky2wRyyyAAA7Ky2wSCyyAAE7Ky2wSSyyAQA7Ky2wSiyyAQE7Ky2wSyyyAAA3Ky2wTCyyAAE3Ky2wTSyyAQA3Ky2wTiyyAQE3Ky2wTyyyAAA5Ky2wUCyyAAE5Ky2wUSyyAQA5Ky2wUiyyAQE5Ky2wUyyyAAA8Ky2wVCyyAAE8Ky2wVSyyAQA8Ky2wViyyAQE8Ky2wVyyyAAA4Ky2wWCyyAAE4Ky2wWSyyAQA4Ky2wWiyyAQE4Ky2wWyywMCsusSQBFCstsFwssDArsDQrLbBdLLAwK7A1Ky2wXiywABawMCuwNistsF8ssDErLrEkARQrLbBgLLAxK7A0Ky2wYSywMSuwNSstsGIssDErsDYrLbBjLLAyKy6xJAEUKy2wZCywMiuwNCstsGUssDIrsDUrLbBmLLAyK7A2Ky2wZyywMysusSQBFCstsGgssDMrsDQrLbBpLLAzK7A1Ky2waiywMyuwNistsGssK7AIZbADJFB4sAEVMC0AAEu4AMhSWLEBAY5ZuQgACABjILABI0QgsAMjcLAORSAgS7gADlFLsAZTWliwNBuwKFlgZiCKVViwAiVhsAFFYyNisAIjRLMKCQUEK7MKCwUEK7MODwUEK1myBCgJRVJEswoNBgQrsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAAA) +} + +.mintui { + font-family:"mintui" !important; + font-size:16px; + font-style:normal; + -webkit-font-smoothing: antialiased; + -webkit-text-stroke-width: 0.2px; + -moz-osx-font-smoothing: grayscale; +} +.mintui-search:before { content: "\E604"; } +.mintui-more:before { content: "\E601"; } +.mintui-back:before { content: "\E600"; } +.mintui-field-error:before { content: "\E605"; } +.mintui-field-warning:before { content: "\E608"; } +.mintui-success:before { content: "\E602"; } +.mintui-field-success:before { content: "\E609"; } diff --git a/src/main/web/static/mint-ui/style.min.css b/src/main/web/static/mint-ui/style.min.css new file mode 100644 index 0000000000000000000000000000000000000000..086d7c48db4803f4edb1a86ed8be75cc19a18b18 --- /dev/null +++ b/src/main/web/static/mint-ui/style.min.css @@ -0,0 +1 @@ +.mint-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#26a2ff;box-sizing:border-box;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:14px;height:40px;line-height:1;padding:0 10px;position:relative;text-align:center;white-space:nowrap}.mint-header .mint-button{background-color:transparent;border:0;box-shadow:none;color:inherit;display:inline-block;padding:0;font-size:inherit}.mint-header .mint-button:after{content:none}.mint-header.is-fixed{top:0;right:0;left:0;position:fixed;z-index:1}.mint-header-button{-webkit-box-flex:.5;-ms-flex:.5;flex:.5}.mint-header-button>a{color:inherit}.mint-header-button.is-right{text-align:right}.mint-header-button.is-left{text-align:left}.mint-header-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:inherit;font-weight:400;-webkit-box-flex:1;-ms-flex:1;flex:1}.mint-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;border:0;box-sizing:border-box;color:inherit;display:block;font-size:18px;height:41px;outline:0;overflow:hidden;position:relative;text-align:center}.mint-button:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.mint-button:not(.is-disabled):active:after{opacity:.4}.mint-button.is-disabled{opacity:.6}.mint-button-icon{vertical-align:middle;display:inline-block}.mint-button--default{color:#656b79;background-color:#f6f8fa;box-shadow:0 0 1px #b8bbbf}.mint-button--default.is-plain{border:1px solid #5a5a5a;background-color:transparent;box-shadow:none;color:#5a5a5a}.mint-button--primary{color:#fff;background-color:#26a2ff}.mint-button--primary.is-plain{border:1px solid #26a2ff;background-color:transparent;color:#26a2ff}.mint-button--danger{color:#fff;background-color:#ef4f4f}.mint-button--danger.is-plain{border:1px solid #ef4f4f;background-color:transparent;color:#ef4f4f}.mint-button--large{display:block;width:100%}.mint-button--normal,.mint-button--small{display:inline-block;padding:0 12px}.mint-button--small{font-size:14px;height:33px}.mint-cell{background-color:#fff;box-sizing:border-box;color:inherit;min-height:48px;display:block;overflow:hidden;position:relative;text-decoration:none}.mint-cell img{vertical-align:middle}.mint-cell:first-child .mint-cell-wrapper{background-origin:border-box}.mint-cell:last-child{background-image:-webkit-linear-gradient(bottom,#d9d9d9,#d9d9d9 50%,transparent 0);background-image:linear-gradient(0deg,#d9d9d9,#d9d9d9 50%,transparent 0);background-size:100% 1px;background-repeat:no-repeat;background-position:bottom}.mint-cell-wrapper{background-image:-webkit-linear-gradient(top,#d9d9d9,#d9d9d9 50%,transparent 0);background-image:linear-gradient(180deg,#d9d9d9,#d9d9d9 50%,transparent 0);background-size:120% 1px;background-repeat:no-repeat;background-position:0 0;background-origin:content-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:16px;line-height:1;min-height:inherit;overflow:hidden;padding:0 10px;width:100%}.mint-cell-mask:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.mint-cell-mask:active:after{opacity:.1}.mint-cell-text{vertical-align:middle}.mint-cell-label{color:#888;display:block;font-size:12px;margin-top:6px}.mint-cell-title{-webkit-box-flex:1;-ms-flex:1;flex:1}.mint-cell-value{color:#888;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.mint-cell-value.is-link{margin-right:24px}.mint-cell-left{position:absolute;height:100%;left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.mint-cell-right{position:absolute;height:100%;right:0;top:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.mint-cell-allow-right:after{border:2px solid #c8c8cd;border-bottom-width:0;border-left-width:0;content:" ";top:50%;right:20px;position:absolute;width:5px;height:5px;-webkit-transform:translateY(-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}.mint-cell-swipe .mint-cell-wrapper{position:relative}.mint-cell-swipe .mint-cell-left,.mint-cell-swipe .mint-cell-right,.mint-cell-swipe .mint-cell-wrapper{-webkit-transition:-webkit-transform .15s ease-in-out;transition:-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out;transition:transform .15s ease-in-out,-webkit-transform .15s ease-in-out}.mint-cell-swipe-buttongroup{height:100%}.mint-cell-swipe-button{height:100%;display:inline-block;padding:0 10px;line-height:48px}.mint-field{display:-webkit-box;display:-ms-flexbox;display:flex}.mint-field .mint-cell-title{width:105px;-webkit-box-flex:0;-ms-flex:none;flex:none}.mint-field .mint-cell-value{-webkit-box-flex:1;-ms-flex:1;flex:1;color:inherit;display:-webkit-box;display:-ms-flexbox;display:flex}.mint-field.is-nolabel .mint-cell-title{display:none}.mint-field.is-textarea{-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit}.mint-field.is-textarea .mint-cell-title{padding:10px 0}.mint-field.is-textarea .mint-cell-value{padding:5px 0}.mint-field-core{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:0;border:0;-webkit-box-flex:1;-ms-flex:1;flex:1;outline:0;line-height:1.6;font-size:inherit;width:100%}.mint-field-clear{opacity:.2}.mint-field-state{color:inherit;margin-left:20px}.mint-field-state .mintui{font-size:20px}.mint-field-state.is-default{margin-left:0}.mint-field-state.is-success{color:#4caf50}.mint-field-state.is-warning{color:#ffc107}.mint-field-state.is-error{color:#f44336}.mint-field-other{top:0;right:0;position:relative}.mint-badge{color:#fff;text-align:center;display:inline-block}.mint-badge.is-size-large{border-radius:14px;font-size:18px;padding:2px 10px}.mint-badge.is-size-small{border-radius:8px;font-size:12px;padding:2px 6px}.mint-badge.is-size-normal{border-radius:12px;font-size:15px;padding:2px 8px}.mint-badge.is-warning{background-color:#ffc107}.mint-badge.is-error{background-color:#f44336}.mint-badge.is-primary{background-color:#26a2ff}.mint-badge.is-success{background-color:#4caf50}.mint-switch{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.mint-switch *{pointer-events:none}.mint-switch-label{margin-left:10px;display:inline-block}.mint-switch-label:empty{margin-left:0}.mint-switch-core{display:inline-block;position:relative;width:52px;height:32px;border:1px solid #d9d9d9;border-radius:16px;box-sizing:border-box;background:#d9d9d9}.mint-switch-core:after,.mint-switch-core:before{content:" ";top:0;left:0;position:absolute;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;border-radius:15px}.mint-switch-core:after{width:30px;height:30px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}.mint-switch-core:before{width:50px;height:30px;background-color:#fdfdfd}.mint-switch-input{display:none}.mint-switch-input:checked+.mint-switch-core{border-color:#26a2ff;background-color:#26a2ff}.mint-switch-input:checked+.mint-switch-core:before{-webkit-transform:scale(0);transform:scale(0)}.mint-switch-input:checked+.mint-switch-core:after{-webkit-transform:translateX(20px);transform:translateX(20px)}.mint-spinner-snake{-webkit-animation:mint-spinner-rotate .8s infinite linear;animation:mint-spinner-rotate .8s infinite linear;border:4px solid transparent;border-radius:50%}@-webkit-keyframes mint-spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes mint-spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.mint-spinner-double-bounce{position:relative}.mint-spinner-double-bounce-bounce1,.mint-spinner-double-bounce-bounce2{width:100%;height:100%;border-radius:50%;opacity:.6;position:absolute;top:0;left:0;-webkit-animation:mint-spinner-double-bounce 2s infinite ease-in-out;animation:mint-spinner-double-bounce 2s infinite ease-in-out}.mint-spinner-double-bounce-bounce2{-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes mint-spinner-double-bounce{0%,to{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes mint-spinner-double-bounce{0%,to{-webkit-transform:scale(0);transform:scale(0)}50%{-webkit-transform:scale(1);transform:scale(1)}}.mint-spinner-triple-bounce-bounce1,.mint-spinner-triple-bounce-bounce2,.mint-spinner-triple-bounce-bounce3{border-radius:100%;display:inline-block;-webkit-animation:mint-spinner-triple-bounce 1.4s infinite ease-in-out both;animation:mint-spinner-triple-bounce 1.4s infinite ease-in-out both}.mint-spinner-triple-bounce-bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.mint-spinner-triple-bounce-bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes mint-spinner-triple-bounce{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes mint-spinner-triple-bounce{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.mint-spinner-fading-circle{position:relative}.mint-spinner-fading-circle-circle{width:100%;height:100%;top:0;left:0;position:absolute}.mint-spinner-fading-circle-circle:before{content:" ";display:block;margin:0 auto;width:15%;height:15%;border-radius:100%;-webkit-animation:mint-fading-circle 1.2s infinite ease-in-out both;animation:mint-fading-circle 1.2s infinite ease-in-out both}.mint-spinner-fading-circle-circle.is-circle2{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.mint-spinner-fading-circle-circle.is-circle2:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.mint-spinner-fading-circle-circle.is-circle3{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.mint-spinner-fading-circle-circle.is-circle3:before{-webkit-animation-delay:-1s;animation-delay:-1s}.mint-spinner-fading-circle-circle.is-circle4{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.mint-spinner-fading-circle-circle.is-circle4:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.mint-spinner-fading-circle-circle.is-circle5{-webkit-transform:rotate(120deg);transform:rotate(120deg)}.mint-spinner-fading-circle-circle.is-circle5:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.mint-spinner-fading-circle-circle.is-circle6{-webkit-transform:rotate(150deg);transform:rotate(150deg)}.mint-spinner-fading-circle-circle.is-circle6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.mint-spinner-fading-circle-circle.is-circle7{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.mint-spinner-fading-circle-circle.is-circle7:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.mint-spinner-fading-circle-circle.is-circle8{-webkit-transform:rotate(210deg);transform:rotate(210deg)}.mint-spinner-fading-circle-circle.is-circle8:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.mint-spinner-fading-circle-circle.is-circle9{-webkit-transform:rotate(240deg);transform:rotate(240deg)}.mint-spinner-fading-circle-circle.is-circle9:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.mint-spinner-fading-circle-circle.is-circle10{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.mint-spinner-fading-circle-circle.is-circle10:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.mint-spinner-fading-circle-circle.is-circle11{-webkit-transform:rotate(300deg);transform:rotate(300deg)}.mint-spinner-fading-circle-circle.is-circle11:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.mint-spinner-fading-circle-circle.is-circle12{-webkit-transform:rotate(330deg);transform:rotate(330deg)}.mint-spinner-fading-circle-circle.is-circle12:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes mint-fading-circle{0%,39%,to{opacity:0}40%{opacity:1}}@keyframes mint-fading-circle{0%,39%,to{opacity:0}40%{opacity:1}}.mint-tab-item{display:block;padding:7px 0;-webkit-box-flex:1;-ms-flex:1;flex:1;text-decoration:none}.mint-tab-item-icon{width:24px;height:24px;margin:0 auto 5px}.mint-tab-item-icon:empty{display:none}.mint-tab-item-icon>*{display:block;width:100%;height:100%}.mint-tab-item-label{color:inherit;font-size:12px;line-height:1}.mint-tab-container-item{-ms-flex-negative:0;flex-shrink:0;width:100%}.mint-tab-container{overflow:hidden;position:relative}.mint-tab-container .swipe-transition{-webkit-transition:-webkit-transform .15s ease-in-out;transition:-webkit-transform .15s ease-in-out;transition:transform .15s ease-in-out;transition:transform .15s ease-in-out,-webkit-transform .15s ease-in-out}.mint-tab-container-wrap{display:-webkit-box;display:-ms-flexbox;display:flex}.mint-navbar{background-color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center}.mint-navbar .mint-tab-item{padding:17px 0;font-size:15px}.mint-navbar .mint-tab-item:last-child{border-right:0}.mint-navbar .mint-tab-item.is-selected{border-bottom:3px solid #26a2ff;color:#26a2ff;margin-bottom:-3px}.mint-navbar.is-fixed{top:0;right:0;left:0;position:fixed;z-index:1}.mint-tabbar{background-image:-webkit-linear-gradient(top,#d9d9d9,#d9d9d9 50%,transparent 0);background-image:linear-gradient(180deg,#d9d9d9,#d9d9d9 50%,transparent 0);background-size:100% 1px;background-repeat:no-repeat;background-position:0 0;position:relative;background-color:#fafafa;display:-webkit-box;display:-ms-flexbox;display:flex;right:0;bottom:0;left:0;position:absolute;text-align:center}.mint-tabbar>.mint-tab-item.is-selected{background-color:#eaeaea;color:#26a2ff}.mint-tabbar.is-fixed{right:0;bottom:0;left:0;position:fixed;z-index:1}.mint-search{height:100%;height:100vh;overflow:hidden}.mint-searchbar{position:relative;background-color:#d9d9d9;box-sizing:border-box;padding:8px 10px;z-index:1}.mint-searchbar,.mint-searchbar-inner{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.mint-searchbar-inner{background-color:#fff;border-radius:2px;-webkit-box-flex:1;-ms-flex:1;flex:1;height:28px;padding:4px 6px}.mint-searchbar-inner .mintui-search{font-size:12px;color:#d9d9d9}.mint-searchbar-core{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;box-sizing:border-box;width:100%;height:100%;outline:0}.mint-searchbar-cancel{color:#26a2ff;margin-left:10px;text-decoration:none}.mint-search-list{overflow:auto;padding-top:44px;top:0;right:0;bottom:0;left:0;position:absolute}.mint-checklist .mint-cell{padding:0}.mint-checklist.is-limit .mint-checkbox-core:not(:checked){background-color:#d9d9d9;border-color:#d9d9d9}.mint-checklist-label{display:block;padding:0 10px}.mint-checklist-title{color:#888;display:block;font-size:12px;margin:8px}.mint-checkbox.is-right{float:right}.mint-checkbox-label{vertical-align:middle;margin-left:6px}.mint-checkbox-input{display:none}.mint-checkbox-input:checked+.mint-checkbox-core{background-color:#26a2ff;border-color:#26a2ff}.mint-checkbox-input:checked+.mint-checkbox-core:after{border-color:#fff;-webkit-transform:rotate(45deg) scale(1);transform:rotate(45deg) scale(1)}.mint-checkbox-input[disabled]+.mint-checkbox-core{background-color:#d9d9d9;border-color:#ccc}.mint-checkbox-core{display:inline-block;background-color:#fff;border-radius:100%;border:1px solid #ccc;position:relative;width:20px;height:20px;vertical-align:middle}.mint-checkbox-core:after{border:2px solid transparent;border-left:0;border-top:0;content:" ";top:3px;left:6px;position:absolute;width:4px;height:8px;-webkit-transform:rotate(45deg) scale(0);transform:rotate(45deg) scale(0);-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s}.mint-radiolist .mint-cell{padding:0}.mint-radiolist-label{display:block;padding:0 10px}.mint-radiolist-title{font-size:12px;margin:8px;display:block;color:#888}.mint-radio.is-right{float:right}.mint-radio-label{vertical-align:middle;margin-left:6px}.mint-radio-input{display:none}.mint-radio-input:checked+.mint-radio-core{background-color:#26a2ff;border-color:#26a2ff}.mint-radio-input:checked+.mint-radio-core:after{background-color:#fff;-webkit-transform:scale(1);transform:scale(1)}.mint-radio-input[disabled]+.mint-radio-core{background-color:#d9d9d9;border-color:#ccc}.mint-radio-core{box-sizing:border-box;display:inline-block;background-color:#fff;border-radius:100%;border:1px solid #ccc;position:relative;width:20px;height:20px;vertical-align:middle}.mint-radio-core:after{content:" ";border-radius:100%;top:5px;left:5px;position:absolute;width:8px;height:8px;-webkit-transition:-webkit-transform .2s;transition:-webkit-transform .2s;transition:transform .2s;transition:transform .2s,-webkit-transform .2s;-webkit-transform:scale(0);transform:scale(0)}.mint-loadmore{overflow:hidden}.mint-loadmore-content.is-dropped{-webkit-transition:.2s;transition:.2s}.mint-loadmore-bottom,.mint-loadmore-top{text-align:center;height:50px;line-height:50px}.mint-loadmore-top{margin-top:-50px}.mint-loadmore-bottom{margin-bottom:-50px}.mint-loadmore-spinner{display:inline-block;margin-right:5px;vertical-align:middle}.mint-loadmore-text{vertical-align:middle}.mint-actionsheet{position:fixed;background:#e0e0e0;width:100%;text-align:center;bottom:0;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:-webkit-transform .3s ease-out;transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;transition:transform .3s ease-out,-webkit-transform .3s ease-out}.mint-actionsheet-list{list-style:none;padding:0;margin:0}.mint-actionsheet-listitem{border-bottom:1px solid #e0e0e0}.mint-actionsheet-button,.mint-actionsheet-listitem{display:block;width:100%;height:45px;line-height:45px;font-size:18px;color:#333;background-color:#fff}.mint-actionsheet-button:active,.mint-actionsheet-listitem:active{background-color:#f0f0f0}.actionsheet-float-enter,.actionsheet-float-leave-active{-webkit-transform:translate3d(-50%,100%,0);transform:translate3d(-50%,100%,0)}.v-modal-enter{-webkit-animation:v-modal-in .2s ease;animation:v-modal-in .2s ease}.v-modal-leave{-webkit-animation:v-modal-out .2s ease forwards;animation:v-modal-out .2s ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.mint-popup{position:fixed;background:#fff;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.2s ease-out;transition:.2s ease-out}.mint-popup-top{top:0;right:auto;bottom:auto;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.mint-popup-right{top:50%;right:0;bottom:auto;left:auto;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.mint-popup-bottom{top:auto;right:auto;bottom:0;left:50%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.mint-popup-left{top:50%;right:auto;bottom:auto;left:0;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.popup-slide-top-enter,.popup-slide-top-leave-active{-webkit-transform:translate3d(-50%,-100%,0);transform:translate3d(-50%,-100%,0)}.popup-slide-right-enter,.popup-slide-right-leave-active{-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.popup-slide-bottom-enter,.popup-slide-bottom-leave-active{-webkit-transform:translate3d(-50%,100%,0);transform:translate3d(-50%,100%,0)}.popup-slide-left-enter,.popup-slide-left-leave-active{-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.popup-fade-enter,.popup-fade-leave-active{opacity:0}.mint-swipe,.mint-swipe-items-wrap{overflow:hidden;position:relative;height:100%}.mint-swipe-items-wrap>div{position:absolute;-webkit-transform:translateX(-100%);transform:translateX(-100%);width:100%;height:100%;display:none}.mint-swipe-items-wrap>div.is-active{display:block;-webkit-transform:none;transform:none}.mint-swipe-indicators{position:absolute;bottom:10px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.mint-swipe-indicator{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2;margin:0 3px}.mint-swipe-indicator.is-active{background:#fff}.mt-range{position:relative;height:30px;line-height:30px}.mt-range,.mt-range>*{display:-webkit-box;display:-ms-flexbox;display:flex}.mt-range [slot=start]{margin-right:5px}.mt-range [slot=end]{margin-left:5px}.mt-range-content{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1;margin-right:30px}.mt-range-runway{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:0;right:-30px;border-top-color:#a9acb1;border-top-style:solid}.mt-range-thumb{background-color:#fff;position:absolute;left:0;top:0;width:30px;height:30px;border-radius:100%;cursor:move;box-shadow:0 1px 3px rgba(0,0,0,.4)}.mt-range-progress{position:absolute;display:block;background-color:#26a2ff;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:0}.mt-range--disabled{opacity:.5}.picker{overflow:hidden}.picker-toolbar{height:40px}.picker-items{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0;text-align:right;font-size:24px;position:relative}.picker-center-highlight{box-sizing:border-box;position:absolute;left:0;width:100%;top:50%;margin-top:-18px;pointer-events:none}.picker-center-highlight:after,.picker-center-highlight:before{content:"";position:absolute;height:1px;width:100%;background-color:#eaeaea;display:block;z-index:15;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.picker-center-highlight:before{left:0;top:0;bottom:auto;right:auto}.picker-center-highlight:after{left:0;bottom:0;right:auto;top:auto}.picker-slot{font-size:18px;overflow:hidden;position:relative;max-height:100%}.picker-slot.picker-slot-left{text-align:left}.picker-slot.picker-slot-center{text-align:center}.picker-slot.picker-slot-right{text-align:right}.picker-slot.picker-slot-divider{color:#000;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.picker-slot-wrapper{-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;-webkit-backface-visibility:hidden;backface-visibility:hidden}.picker-slot-wrapper.dragging,.picker-slot-wrapper.dragging .picker-item{-webkit-transition-duration:0s;transition-duration:0s}.picker-item{height:36px;line-height:36px;padding:0 10px;white-space:nowrap;position:relative;overflow:hidden;text-overflow:ellipsis;color:#707274;left:0;top:0;width:100%;box-sizing:border-box;-webkit-transition-duration:.3s;transition-duration:.3s;-webkit-backface-visibility:hidden;backface-visibility:hidden}.picker-slot-absolute .picker-item{position:absolute}.picker-item.picker-item-far{pointer-events:none}.picker-item.picker-selected{color:#000;-webkit-transform:translateZ(0) rotateX(0);transform:translateZ(0) rotateX(0)}.picker-3d .picker-items{overflow:hidden;-webkit-perspective:700px;perspective:700px}.picker-3d .picker-item,.picker-3d .picker-slot,.picker-3d .picker-slot-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-3d .picker-slot{overflow:visible}.picker-3d .picker-item{-webkit-transform-origin:center center;transform-origin:center center;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out}.mt-progress{position:relative;height:30px;line-height:30px}.mt-progress,.mt-progress>*{display:-webkit-box;display:-ms-flexbox;display:flex}.mt-progress [slot=start]{margin-right:5px}.mt-progress [slot=end]{margin-left:5px}.mt-progress-content{position:relative;-webkit-box-flex:1;-ms-flex:1;flex:1}.mt-progress-runway{left:0;right:0;background-color:#ebebeb;height:3px}.mt-progress-progress,.mt-progress-runway{position:absolute;-webkit-transform:translateY(-50%);transform:translateY(-50%);top:50%}.mt-progress-progress{display:block;background-color:#26a2ff;width:0}.mint-toast{position:fixed;max-width:80%;border-radius:5px;background:rgba(0,0,0,.7);color:#fff;box-sizing:border-box;text-align:center;z-index:1000;-webkit-transition:opacity .3s linear;transition:opacity .3s linear}.mint-toast.is-placebottom{bottom:50px;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%)}.mint-toast.is-placemiddle{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.mint-toast.is-placetop{top:50px;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%)}.mint-toast-icon{display:block;text-align:center;font-size:56px}.mint-toast-text{font-size:14px;display:block;text-align:center}.mint-toast-pop-enter,.mint-toast-pop-leave-active{opacity:0}.mint-indicator{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.mint-indicator-wrapper{top:50%;left:50%;position:fixed;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border-radius:5px;background:rgba(0,0,0,.7);color:#fff;box-sizing:border-box;text-align:center}.mint-indicator-text{display:block;color:#fff;text-align:center;margin-top:10px;font-size:16px}.mint-indicator-spin{display:inline-block;text-align:center}.mint-indicator-mask{top:0;left:0;position:fixed;width:100%;height:100%;opacity:0;background:transparent}.mint-indicator-enter,.mint-indicator-leave-active{opacity:0}.mint-msgbox{position:fixed;top:50%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);background-color:#fff;width:85%;border-radius:3px;font-size:16px;-webkit-user-select:none;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:.2s;transition:.2s}.mint-msgbox-header{padding:15px 0 0}.mint-msgbox-content{padding:10px 20px 15px;border-bottom:1px solid #ddd;min-height:36px;position:relative}.mint-msgbox-input{padding-top:15px}.mint-msgbox-input input{border:1px solid #dedede;border-radius:5px;padding:4px 5px;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}.mint-msgbox-input input.invalid,.mint-msgbox-input input.invalid:focus{border-color:#ff4949}.mint-msgbox-errormsg{color:red;font-size:12px;min-height:18px;margin-top:2px}.mint-msgbox-title{text-align:center;padding-left:0;margin-bottom:0;font-size:16px;font-weight:700;color:#333}.mint-msgbox-message{color:#999;margin:0;text-align:center;line-height:36px}.mint-msgbox-btns{display:-webkit-box;display:-ms-flexbox;display:flex;height:40px;line-height:40px}.mint-msgbox-btn{line-height:35px;display:block;background-color:#fff;-webkit-box-flex:1;-ms-flex:1;flex:1;margin:0;border:0}.mint-msgbox-btn:focus{outline:none}.mint-msgbox-btn:active{background-color:#fff}.mint-msgbox-cancel{width:50%;border-right:1px solid #ddd}.mint-msgbox-cancel:active{color:#000}.mint-msgbox-confirm{color:#26a2ff;width:50%}.mint-msgbox-confirm:active{color:#26a2ff}.msgbox-bounce-enter{opacity:0;-webkit-transform:translate3d(-50%,-50%,0) scale(.7);transform:translate3d(-50%,-50%,0) scale(.7)}.msgbox-bounce-leave-active{opacity:0;-webkit-transform:translate3d(-50%,-50%,0) scale(.9);transform:translate3d(-50%,-50%,0) scale(.9)}.v-modal-enter{-webkit-animation:v-modal-in .2s ease;animation:v-modal-in .2s ease}.v-modal-leave{-webkit-animation:v-modal-out .2s ease forwards;animation:v-modal-out .2s ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:.5;background:#000}.mint-datetime{width:100%}.mint-datetime .picker-item,.mint-datetime .picker-slot-wrapper{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mint-datetime .picker-toolbar{border-bottom:1px solid #eaeaea}.mint-datetime-action{display:inline-block;width:50%;text-align:center;line-height:40px;font-size:16px;color:#26a2ff}.mint-datetime-cancel{float:left}.mint-datetime-confirm{float:right}.mint-indexlist{width:100%;position:relative;overflow:hidden}.mint-indexlist-content{margin:0;padding:0;overflow:auto}.mint-indexlist-nav{position:absolute;top:0;bottom:0;right:0;background-color:#fff;border-left:1px solid #ddd;text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.mint-indexlist-nav,.mint-indexlist-navlist{margin:0;max-height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mint-indexlist-navlist{padding:0;list-style:none}.mint-indexlist-navitem{padding:2px 6px;font-size:12px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}.mint-indexlist-indicator{position:absolute;width:50px;height:50px;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);text-align:center;line-height:50px;background-color:rgba(0,0,0,.7);border-radius:5px;color:#fff;font-size:22px}.mint-indexsection{padding:0;margin:0}.mint-indexsection-index{margin:0;padding:10px;background-color:#fafafa}.mint-indexsection-index+ul{padding:0}.mint-palette-button{display:inline-block;position:relative;border-radius:50%;width:56px;height:56px;line-height:56px;text-align:center;-webkit-transition:-webkit-transform .1s ease-in-out;transition:-webkit-transform .1s ease-in-out;transition:transform .1s ease-in-out;transition:transform .1s ease-in-out,-webkit-transform .1s ease-in-out}.mint-main-button{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;background-color:blue;font-size:2em}.mint-palette-button-active{-webkit-animation:mint-zoom .5s ease-in-out;animation:mint-zoom .5s ease-in-out}.mint-sub-button-container>*{position:absolute;top:15px;left:15px;width:25px;height:25px;-webkit-transition:-webkit-transform .3s ease-in-out;transition:-webkit-transform .3s ease-in-out;transition:transform .3s ease-in-out;transition:transform .3s ease-in-out,-webkit-transform .3s ease-in-out}@-webkit-keyframes mint-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);transform:scale(1.1)}30%{-webkit-transform:scale(.9);transform:scale(.9)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}70%{-webkit-transform:scale(.95);transform:scale(.95)}90%{-webkit-transform:scale(1.01);transform:scale(1.01)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes mint-zoom{0%{-webkit-transform:scale(1);transform:scale(1)}10%{-webkit-transform:scale(1.1);transform:scale(1.1)}30%{-webkit-transform:scale(.9);transform:scale(.9)}50%{-webkit-transform:scale(1.05);transform:scale(1.05)}70%{-webkit-transform:scale(.95);transform:scale(.95)}90%{-webkit-transform:scale(1.01);transform:scale(1.01)}to{-webkit-transform:scale(1);transform:scale(1)}}@font-face{font-family:mintui;src:url(data:application/x-font-ttf;base64,AAEAAAAPAIAAAwBwRkZUTXMrDTgAAAD8AAAAHE9TLzJXb1zGAAABGAAAAGBjbWFwsbgH3gAAAXgAAAFaY3Z0IA1j/vQAAA2UAAAAJGZwZ20w956VAAANuAAACZZnYXNwAAAAEAAADYwAAAAIZ2x5Zm8hHaQAAALUAAAHeGhlYWQKwq5kAAAKTAAAADZoaGVhCJMESQAACoQAAAAkaG10eBuiAmQAAAqoAAAAKGxvY2EJUArqAAAK0AAAABhtYXhwAS4KKwAACugAAAAgbmFtZal8DOEAAAsIAAACE3Bvc3QbrFqUAAANHAAAAHBwcmVwpbm+ZgAAF1AAAACVAAAAAQAAAADMPaLPAAAAANN2tTQAAAAA03a1NAAEBBIB9AAFAAACmQLMAAAAjwKZAswAAAHrADMBCQAAAgAGAwAAAAAAAAAAAAEQAAAAAAAAAAAAAABQZkVkAMAAeOYJA4D/gABcA38AgAAAAAEAAAAAAxgAAAAAACAAAQAAAAMAAAADAAAAHAABAAAAAABUAAMAAQAAABwABAA4AAAACgAIAAIAAgB45gLmBeYJ//8AAAB45gDmBOYI////ixoEGgMaAQABAAAAAAAAAAAAAAAAAQYAAAEAAAAAAAAAAQIAAAACAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACACIAAAEyAqoAAwAHAClAJgAAAAMCAANXAAIBAQJLAAICAU8EAQECAUMAAAcGBQQAAwADEQUPKzMRIREnMxEjIgEQ7szMAqr9ViICZgAAAAUALP/hA7wDGAAWADAAOgBSAF4Bd0uwE1BYQEoCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoGCV4RAQwGBAYMXgALBAtpDwEIAAYMCAZYAAoHBQIECwoEWRIBDg4NUQANDQoOQhtLsBdQWEBLAgEADQ4NAA5mAAMOAQ4DXgABCAgBXBABCQgKCAkKZhEBDAYEBgxeAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0uwGFBYQEwCAQANDg0ADmYAAw4BDgNeAAEICAFcEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CG0BOAgEADQ4NAA5mAAMOAQ4DAWYAAQgOAQhkEAEJCAoICQpmEQEMBgQGDARmAAsEC2kPAQgABgwIBlgACgcFAgQLCgRZEgEODg1RAA0NCg5CWVlZQChTUzs7MjEXF1NeU15bWDtSO1JLQzc1MToyOhcwFzBRETEYESgVQBMWKwEGKwEiDgIdASE1NCY1NC4CKwEVIQUVFBYUDgIjBiYrASchBysBIiciLgI9ARciBhQWMzI2NCYXBgcOAx4BOwYyNicuAScmJwE1ND4COwEyFh0BARkbGlMSJRwSA5ABChgnHoX+SgKiARUfIw4OHw4gLf5JLB0iFBkZIBMIdwwSEgwNEhKMCAYFCwQCBA8OJUNRUEAkFxYJBQkFBQb+pAUPGhW8HykCHwEMGScaTCkQHAQNIBsSYYg0Fzo6JRcJAQGAgAETGyAOpz8RGhERGhF8GhYTJA4QDQgYGg0jERMUAXfkCxgTDB0m4wAAAQDp//UCugMMABEASLYKAQIAAQFAS7AaUFhACwABAQpBAAAACwBCG0uwKlBYQAsAAAABUQABAQoAQhtAEAABAAABTQABAQBRAAABAEVZWbMYFQIQKwkCFhQGIicBJjcmNwE2MhYUArD+iQF3ChQcCv5yCgEBCgGOChwUAtT+rf6sCRwTCgFoCw8OCwFoChMcAAAAAAMAXgElA6EB2gAHAA8AFwAhQB4EAgIAAQEATQQCAgAAAVEFAwIBAAFFExMTExMQBhQrEiIGFBYyNjQkIgYUFjI2NCQiBhQWMjY03ks1NUs1ARNLNTVLNQERSzU1SzUB2jVLNTVLNTVLNTVLNTVLNTVLAAAAAQAA/4AEtgN/ABAAEkAPBwYFAwAFAD0AAABfHQEPKwEEAQcmATcBNiQ+AT8BMh4BBLb/AP6adZT+uW0BJZkBCJ5uGBUFDicDNuP95Le4AUdu/wCa+YVeDg4EIwACAE7/6AO4A1IAGAAgACdAJBEDAgMEAUAAAAAEAwAEWQADAAECAwFZAAICCwJCExMVJRgFEyslJyYnNjU0LgEiDgEUHgEzMjcWHwEWMjY0JCImNDYyFhQDrdQFB0lfpMKkX1+kYYZlAwTUCx8W/nb4sLD4sCrYBgJie2KoYWGoxahhWwYE2QsXH5a0/rOz/gAGAEH/wAO/Az4ADwAbADMAQwBPAFsAVUBSW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEGxoZGBcWFRQTEhEQJAEAAUAAAwADaAACAQJpBAEAAQEATQQBAAABUQUBAQABRT08NTQpKB0cFxAGECsAIg4CFB4CMj4CNC4BAwcnByc3JzcXNxcHEiInLgEnJjQ3PgE3NjIXHgEXFhQHDgEHAiIOAhQeAjI+AjQuAQMnByc3JzcXNxcHFyEXNxc3JzcnBycHFwJataZ3R0d3prWmd0dHd0Qimpoimpoimpoimjm2U1F7IiMjIntRU7ZTUHwiIyMifFBUtaV4RkZ4pbWleEdHeGWamiOamiOamiOamv6IIZqaIZqaIZqaIZoDPkd3praleEZGeKW2pnf97yKamiKamiKamiKa/kAjInxQU7ZTUXsiIyMie1FTtlNQfCIDWkZ4pbWleEdHeKW1pXj9zJqaI5qaI5qaI5qaIZqaIZqaIZqaIZoAAAAABABHAAIDtwLdAA0AHQAwADEAMUAuMQEEBQFAAAAABQQABVkABAADAgQDWQACAQECTQACAgFRAAECAUU2NDU1NRIGFCslASYiBwEGFxYzITI3NiUUBisBIiY9ATQ2OwEyFhUnBiMnIiY1JzU0NjsBMhYdAhQHA7f+dxA+EP53EREQHwMSHxAR/mkKCD4ICwsIPggKBQUIPggKAQsHPwgKBVACdBkZ/YwbGhkZGjEJDQ0JJQoNDQpWBQEIB2mmBgkJBqVrBgQAAAADAED/wwO+A0IAAAAQABYAJkAjFhUUExIRBgEAAUAAAQA+AAABAQBNAAAAAVEAAQABRRcRAhArATIiDgIUHgIyPgI0LgEBJzcXARcB/1u2pndHR3emtqZ3R0d3/sXCI58BIyMDQkd4pbameEdHeKa2pXj9w8MjnwEkIwAAAQAAAAEAACFDvy9fDzz1AAsEAAAAAADTdrU0AAAAANN2tTQAAP+ABLYDfwAAAAgAAgAAAAAAAAABAAADf/+AAFwEvwAAAAAEtgABAAAAAAAAAAAAAAAAAAAACQF2ACIAAAAAAVUAAAPpACwEAADpBAAAXgS/AAAD6ABOBAAAQQBHAEAAAAAoACgAKAFkAa4B6AIWAl4DGgN+A7wAAQAAAAsAXwAGAAAAAAACACYANABsAAAAigmWAAAAAAAAAAwAlgABAAAAAAABAAYAAAABAAAAAAACAAYABgABAAAAAAADACEADAABAAAAAAAEAAYALQABAAAAAAAFAEYAMwABAAAAAAAGAAYAeQADAAEECQABAAwAfwADAAEECQACAAwAiwADAAEECQADAEIAlwADAAEECQAEAAwA2QADAAEECQAFAIwA5QADAAEECQAGAAwBcW1pbnR1aU1lZGl1bUZvbnRGb3JnZSAyLjAgOiBtaW50dWkgOiAzLTYtMjAxNm1pbnR1aVZlcnNpb24gMS4wIDsgdHRmYXV0b2hpbnQgKHYwLjk0KSAtbCA4IC1yIDUwIC1HIDIwMCAteCAxNCAtdyAiRyIgLWYgLXNtaW50dWkAbQBpAG4AdAB1AGkATQBlAGQAaQB1AG0ARgBvAG4AdABGAG8AcgBnAGUAIAAyAC4AMAAgADoAIABtAGkAbgB0AHUAaQAgADoAIAAzAC0ANgAtADIAMAAxADYAbQBpAG4AdAB1AGkAVgBlAHIAcwBpAG8AbgAgADEALgAwACAAOwAgAHQAdABmAGEAdQB0AG8AaABpAG4AdAAgACgAdgAwAC4AOQA0ACkAIAAtAGwAIAA4ACAALQByACAANQAwACAALQBHACAAMgAwADAAIAAtAHgAIAAxADQAIAAtAHcAIAAiAEcAIgAgAC0AZgAgAC0AcwBtAGkAbgB0AHUAaQAAAgAAAAAAAP+DADIAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQACAFsBAgEDAQQBBQEGAQcBCAd1bmlFNjAwB3VuaUU2MDEHdW5pRTYwMgd1bmlFNjA0B3VuaUU2MDUHdW5pRTYwOAd1bmlFNjA5AAEAAf//AA8AAAAAAAAAAAAAAAAAAAAAADIAMgMY/+EDf/+AAxj/4QN//4CwACywIGBmLbABLCBkILDAULAEJlqwBEVbWCEjIRuKWCCwUFBYIbBAWRsgsDhQWCGwOFlZILAKRWFksChQWCGwCkUgsDBQWCGwMFkbILDAUFggZiCKimEgsApQWGAbILAgUFghsApgGyCwNlBYIbA2YBtgWVlZG7AAK1lZI7AAUFhlWVktsAIsIEUgsAQlYWQgsAVDUFiwBSNCsAYjQhshIVmwAWAtsAMsIyEjISBksQViQiCwBiNCsgoAAiohILAGQyCKIIqwACuxMAUlilFYYFAbYVJZWCNZISCwQFNYsAArGyGwQFkjsABQWGVZLbAELLAII0KwByNCsAAjQrAAQ7AHQ1FYsAhDK7IAAQBDYEKwFmUcWS2wBSywAEMgRSCwAkVjsAFFYmBELbAGLLAAQyBFILAAKyOxBAQlYCBFiiNhIGQgsCBQWCGwABuwMFBYsCAbsEBZWSOwAFBYZVmwAyUjYURELbAHLLEFBUWwAWFELbAILLABYCAgsApDSrAAUFggsAojQlmwC0NKsABSWCCwCyNCWS2wCSwguAQAYiC4BABjiiNhsAxDYCCKYCCwDCNCIy2wCixLVFixBwFEWSSwDWUjeC2wCyxLUVhLU1ixBwFEWRshWSSwE2UjeC2wDCyxAA1DVVixDQ1DsAFhQrAJK1mwAEOwAiVCsgABAENgQrEKAiVCsQsCJUKwARYjILADJVBYsABDsAQlQoqKIIojYbAIKiEjsAFhIIojYbAIKiEbsABDsAIlQrACJWGwCCohWbAKQ0ewC0NHYLCAYiCwAkVjsAFFYmCxAAATI0SwAUOwAD6yAQEBQ2BCLbANLLEABUVUWACwDSNCIGCwAWG1Dg4BAAwAQkKKYLEMBCuwaysbIlktsA4ssQANKy2wDyyxAQ0rLbAQLLECDSstsBEssQMNKy2wEiyxBA0rLbATLLEFDSstsBQssQYNKy2wFSyxBw0rLbAWLLEIDSstsBcssQkNKy2wGCywByuxAAVFVFgAsA0jQiBgsAFhtQ4OAQAMAEJCimCxDAQrsGsrGyJZLbAZLLEAGCstsBossQEYKy2wGyyxAhgrLbAcLLEDGCstsB0ssQQYKy2wHiyxBRgrLbAfLLEGGCstsCAssQcYKy2wISyxCBgrLbAiLLEJGCstsCMsIGCwDmAgQyOwAWBDsAIlsAIlUVgjIDywAWAjsBJlHBshIVktsCQssCMrsCMqLbAlLCAgRyAgsAJFY7ABRWJgI2E4IyCKVVggRyAgsAJFY7ABRWJgI2E4GyFZLbAmLLEABUVUWACwARawJSqwARUwGyJZLbAnLLAHK7EABUVUWACwARawJSqwARUwGyJZLbAoLCA1sAFgLbApLACwA0VjsAFFYrAAK7ACRWOwAUVisAArsAAWtAAAAAAARD4jOLEoARUqLbAqLCA8IEcgsAJFY7ABRWJgsABDYTgtsCssLhc8LbAsLCA8IEcgsAJFY7ABRWJgsABDYbABQ2M4LbAtLLECABYlIC4gR7AAI0KwAiVJiopHI0cjYSBYYhshWbABI0KyLAEBFRQqLbAuLLAAFrAEJbAEJUcjRyNhsAZFK2WKLiMgIDyKOC2wLyywABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyCwCUMgiiNHI0cjYSNGYLAEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmEjICCwBCYjRmE4GyOwCUNGsAIlsAlDRyNHI2FgILAEQ7CAYmAjILAAKyOwBENgsAArsAUlYbAFJbCAYrAEJmEgsAQlYGQjsAMlYGRQWCEbIyFZIyAgsAQmI0ZhOFktsDAssAAWICAgsAUmIC5HI0cjYSM8OC2wMSywABYgsAkjQiAgIEYjR7AAKyNhOC2wMiywABawAyWwAiVHI0cjYbAAVFguIDwjIRuwAiWwAiVHI0cjYSCwBSWwBCVHI0cjYbAGJbAFJUmwAiVhsAFFYyMgWGIbIVljsAFFYmAjLiMgIDyKOCMhWS2wMyywABYgsAlDIC5HI0cjYSBgsCBgZrCAYiMgIDyKOC2wNCwjIC5GsAIlRlJYIDxZLrEkARQrLbA1LCMgLkawAiVGUFggPFkusSQBFCstsDYsIyAuRrACJUZSWCA8WSMgLkawAiVGUFggPFkusSQBFCstsDcssC4rIyAuRrACJUZSWCA8WS6xJAEUKy2wOCywLyuKICA8sAQjQoo4IyAuRrACJUZSWCA8WS6xJAEUK7AEQy6wJCstsDkssAAWsAQlsAQmIC5HI0cjYbAGRSsjIDwgLiM4sSQBFCstsDossQkEJUKwABawBCWwBCUgLkcjRyNhILAEI0KwBkUrILBgUFggsEBRWLMCIAMgG7MCJgMaWUJCIyBHsARDsIBiYCCwACsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsIBiYbACJUZhOCMgPCM4GyEgIEYjR7AAKyNhOCFZsSQBFCstsDsssC4rLrEkARQrLbA8LLAvKyEjICA8sAQjQiM4sSQBFCuwBEMusCQrLbA9LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA+LLAAFSBHsAAjQrIAAQEVFBMusCoqLbA/LLEAARQTsCsqLbBALLAtKi2wQSywABZFIyAuIEaKI2E4sSQBFCstsEIssAkjQrBBKy2wQyyyAAA6Ky2wRCyyAAE6Ky2wRSyyAQA6Ky2wRiyyAQE6Ky2wRyyyAAA7Ky2wSCyyAAE7Ky2wSSyyAQA7Ky2wSiyyAQE7Ky2wSyyyAAA3Ky2wTCyyAAE3Ky2wTSyyAQA3Ky2wTiyyAQE3Ky2wTyyyAAA5Ky2wUCyyAAE5Ky2wUSyyAQA5Ky2wUiyyAQE5Ky2wUyyyAAA8Ky2wVCyyAAE8Ky2wVSyyAQA8Ky2wViyyAQE8Ky2wVyyyAAA4Ky2wWCyyAAE4Ky2wWSyyAQA4Ky2wWiyyAQE4Ky2wWyywMCsusSQBFCstsFwssDArsDQrLbBdLLAwK7A1Ky2wXiywABawMCuwNistsF8ssDErLrEkARQrLbBgLLAxK7A0Ky2wYSywMSuwNSstsGIssDErsDYrLbBjLLAyKy6xJAEUKy2wZCywMiuwNCstsGUssDIrsDUrLbBmLLAyK7A2Ky2wZyywMysusSQBFCstsGgssDMrsDQrLbBpLLAzK7A1Ky2waiywMyuwNistsGssK7AIZbADJFB4sAEVMC0AAEu4AMhSWLEBAY5ZuQgACABjILABI0QgsAMjcLAORSAgS7gADlFLsAZTWliwNBuwKFlgZiCKVViwAiVhsAFFYyNisAIjRLMKCQUEK7MKCwUEK7MODwUEK1myBCgJRVJEswoNBgQrsQYBRLEkAYhRWLBAiFixBgNEsSYBiFFYuAQAiFixBgFEWVlZWbgB/4WwBI2xBQBEAAAA)}.mintui{font-family:mintui!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}.mintui-search:before{content:"\E604"}.mintui-more:before{content:"\E601"}.mintui-back:before{content:"\E600"}.mintui-field-error:before{content:"\E605"}.mintui-field-warning:before{content:"\E608"}.mintui-success:before{content:"\E602"}.mintui-field-success:before{content:"\E609"} \ No newline at end of file diff --git a/src/main/web/static/mint-ui/swipe-item/index.js b/src/main/web/static/mint-ui/swipe-item/index.js new file mode 100644 index 0000000000000000000000000000000000000000..295f1b488ff72c178c971439bbc4dd59c3ad740c --- /dev/null +++ b/src/main/web/static/mint-ui/swipe-item/index.js @@ -0,0 +1,260 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 236); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 157: +/***/ function(module, exports, __webpack_require__) { + +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(79), + /* template */ + __webpack_require__(181), + /* styles */ + null, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 181: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-swipe-item" + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 236: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(43); + + +/***/ }, + +/***/ 43: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__ = __webpack_require__(5); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_style_empty_css__); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue__ = __webpack_require__(157); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue__); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_1__swipe_src_swipe_item_vue___default.a; }); + + + + +/***/ }, + +/***/ 5: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 79: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + name: 'mt-swipe-item', + + mounted: function mounted() { + this.$parent && this.$parent.swipeItemCreated(this); + }, + + destroyed: function destroyed() { + this.$parent && this.$parent.swipeItemDestroyed(this); + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/swipe-item/style.css b/src/main/web/static/mint-ui/swipe-item/style.css new file mode 100644 index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc --- /dev/null +++ b/src/main/web/static/mint-ui/swipe-item/style.css @@ -0,0 +1 @@ + diff --git a/src/main/web/static/mint-ui/swipe/index.js b/src/main/web/static/mint-ui/swipe/index.js new file mode 100644 index 0000000000000000000000000000000000000000..b0d27c3a32f87b7b0e8da998145af281e0369369 --- /dev/null +++ b/src/main/web/static/mint-ui/swipe/index.js @@ -0,0 +1,1055 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 235); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 158: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(99) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(80), + /* template */ + __webpack_require__(168), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 168: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-swipe" + }, [_c('div', { + ref: "wrap", + staticClass: "mint-swipe-items-wrap" + }, [_vm._t("default")], 2), _vm._v(" "), _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.showIndicators), + expression: "showIndicators" + }], + staticClass: "mint-swipe-indicators" + }, _vm._l((_vm.pages), function(page, $index) { + return _c('div', { + staticClass: "mint-swipe-indicator", + class: { + 'is-active': $index === _vm.index + } + }) + }))]) +},staticRenderFns: []} + +/***/ }, + +/***/ 2: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, + +/***/ 235: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(44); + + +/***/ }, + +/***/ 44: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue__ = __webpack_require__(158); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_swipe_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_swipe_vue___default.a; }); + + + +/***/ }, + +/***/ 80: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(2); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/* harmony default export */ exports["default"] = { + name: 'mt-swipe', + + created: function created() { + this.dragState = {}; + }, + + data: function data() { + return { + ready: false, + dragging: false, + userScrolling: false, + animating: false, + index: 0, + pages: [], + timer: null, + reInitTimer: null, + noDrag: false, + isDone: false + }; + }, + + props: { + speed: { + type: Number, + default: 300 + }, + + defaultIndex: { + type: Number, + default: 0 + }, + + auto: { + type: Number, + default: 3000 + }, + + continuous: { + type: Boolean, + default: true + }, + + showIndicators: { + type: Boolean, + default: true + }, + + noDragWhenSingle: { + type: Boolean, + default: true + }, + + prevent: { + type: Boolean, + default: false + }, + + stopPropagation: { + type: Boolean, + default: false + } + }, + + watch: { + index: function index(newIndex) { + this.$emit('change', newIndex); + } + }, + + methods: { + swipeItemCreated: function swipeItemCreated() { + var this$1 = this; + + if (!this.ready) return; + + clearTimeout(this.reInitTimer); + this.reInitTimer = setTimeout(function () { + this$1.reInitPages(); + }, 100); + }, + + swipeItemDestroyed: function swipeItemDestroyed() { + var this$1 = this; + + if (!this.ready) return; + + clearTimeout(this.reInitTimer); + this.reInitTimer = setTimeout(function () { + this$1.reInitPages(); + }, 100); + }, + + rafTranslate: function rafTranslate(element, initOffset, offset, callback, nextElement) { + var ALPHA = 0.88; + this.animating = true; + var _offset = initOffset; + var raf = 0; + + function animationLoop() { + if (Math.abs(_offset - offset) < 0.5) { + this.animating = false; + _offset = offset; + element.style.webkitTransform = ''; + if (nextElement) { + nextElement.style.webkitTransform = ''; + } + cancelAnimationFrame(raf); + + if (callback) { + callback(); + } + + return; + } + + _offset = ALPHA * _offset + (1.0 - ALPHA) * offset; + element.style.webkitTransform = "translate3d(" + _offset + "px, 0, 0)"; + + if (nextElement) { + nextElement.style.webkitTransform = "translate3d(" + (_offset - offset) + "px, 0, 0)"; + } + + raf = requestAnimationFrame(animationLoop.bind(this)); + } + + animationLoop.call(this); + }, + + translate: function translate(element, offset, speed, callback) { + var arguments$1 = arguments; + var this$1 = this; + + if (speed) { + this.animating = true; + element.style.webkitTransition = '-webkit-transform ' + speed + 'ms ease-in-out'; + setTimeout(function () { + element.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)"; + }, 50); + + var called = false; + + var transitionEndCallback = function () { + if (called) return; + called = true; + this$1.animating = false; + element.style.webkitTransition = ''; + element.style.webkitTransform = ''; + if (callback) { + callback.apply(this$1, arguments$1); + } + }; + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(element, 'webkitTransitionEnd', transitionEndCallback); + setTimeout(transitionEndCallback, speed + 100); // webkitTransitionEnd maybe not fire on lower version android. + } else { + element.style.webkitTransition = ''; + element.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)"; + } + }, + + reInitPages: function reInitPages() { + var children = this.$children; + this.noDrag = children.length === 1 && this.noDragWhenSingle; + + var pages = []; + var intDefaultIndex = Math.floor(this.defaultIndex); + var defaultIndex = (intDefaultIndex >= 0 && intDefaultIndex < children.length) ? intDefaultIndex : 0; + this.index = defaultIndex; + + children.forEach(function(child, index) { + pages.push(child.$el); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["b" /* removeClass */])(child.$el, 'is-active'); + + if (index === defaultIndex) { + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["a" /* addClass */])(child.$el, 'is-active'); + } + }); + + this.pages = pages; + }, + + doAnimate: function doAnimate(towards, options) { + var this$1 = this; + + if (this.$children.length === 0) return; + if (!options && this.$children.length < 2) return; + + var prevPage, nextPage, currentPage, pageWidth, offsetLeft, speedX; + var speed = this.speed || 300; + var index = this.index; + var pages = this.pages; + var pageCount = pages.length; + + if (!options) { + pageWidth = this.$el.clientWidth; + currentPage = pages[index]; + prevPage = pages[index - 1]; + nextPage = pages[index + 1]; + if (this.continuous && pages.length > 1) { + if (!prevPage) { + prevPage = pages[pages.length - 1]; + } + if (!nextPage) { + nextPage = pages[0]; + } + } + if (prevPage) { + prevPage.style.display = 'block'; + this.translate(prevPage, -pageWidth); + } + if (nextPage) { + nextPage.style.display = 'block'; + this.translate(nextPage, pageWidth); + } + } else { + prevPage = options.prevPage; + currentPage = options.currentPage; + nextPage = options.nextPage; + pageWidth = options.pageWidth; + offsetLeft = options.offsetLeft; + speedX = options.speedX; + } + + var newIndex; + + var oldPage = this.$children[index].$el; + + if (towards === 'prev') { + if (index > 0) { + newIndex = index - 1; + } + if (this.continuous && index === 0) { + newIndex = pageCount - 1; + } + } else if (towards === 'next') { + if (index < pageCount - 1) { + newIndex = index + 1; + } + if (this.continuous && index === pageCount - 1) { + newIndex = 0; + } + } + + var callback = function () { + if (newIndex !== undefined) { + var newPage = this$1.$children[newIndex].$el; + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["b" /* removeClass */])(oldPage, 'is-active'); + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["a" /* addClass */])(newPage, 'is-active'); + + this$1.index = newIndex; + } + if (this$1.isDone) { + this$1.end(); + } + + if (prevPage) { + prevPage.style.display = ''; + } + + if (nextPage) { + nextPage.style.display = ''; + } + }; + + setTimeout(function () { + if (towards === 'next') { + this$1.isDone = true; + this$1.before(currentPage); + if (speedX) { + this$1.rafTranslate(currentPage, offsetLeft, -pageWidth, callback, nextPage); + } else { + this$1.translate(currentPage, -pageWidth, speed, callback); + if (nextPage) { + this$1.translate(nextPage, 0, speed); + } + } + } else if (towards === 'prev') { + this$1.isDone = true; + this$1.before(currentPage); + if (speedX) { + this$1.rafTranslate(currentPage, offsetLeft, pageWidth, callback, prevPage); + } else { + this$1.translate(currentPage, pageWidth, speed, callback); + if (prevPage) { + this$1.translate(prevPage, 0, speed); + } + } + } else { + this$1.isDone = false; + this$1.translate(currentPage, 0, speed, callback); + if (typeof offsetLeft !== 'undefined') { + if (prevPage && offsetLeft > 0) { + this$1.translate(prevPage, pageWidth * -1, speed); + } + if (nextPage && offsetLeft < 0) { + this$1.translate(nextPage, pageWidth, speed); + } + } else { + if (prevPage) { + this$1.translate(prevPage, pageWidth * -1, speed); + } + if (nextPage) { + this$1.translate(nextPage, pageWidth, speed); + } + } + } + }, 10); + }, + + next: function next() { + this.doAnimate('next'); + }, + + prev: function prev() { + this.doAnimate('prev'); + }, + + before: function before() { + this.$emit('before', this.index); + }, + + end: function end() { + this.$emit('end', this.index); + }, + + doOnTouchStart: function doOnTouchStart(event) { + if (this.noDrag) return; + + var element = this.$el; + var dragState = this.dragState; + var touch = event.touches[0]; + + dragState.startTime = new Date(); + dragState.startLeft = touch.pageX; + dragState.startTop = touch.pageY; + dragState.startTopAbsolute = touch.clientY; + + dragState.pageWidth = element.offsetWidth; + dragState.pageHeight = element.offsetHeight; + + var prevPage = this.$children[this.index - 1]; + var dragPage = this.$children[this.index]; + var nextPage = this.$children[this.index + 1]; + + if (this.continuous && this.pages.length > 1) { + if (!prevPage) { + prevPage = this.$children[this.$children.length - 1]; + } + if (!nextPage) { + nextPage = this.$children[0]; + } + } + + dragState.prevPage = prevPage ? prevPage.$el : null; + dragState.dragPage = dragPage ? dragPage.$el : null; + dragState.nextPage = nextPage ? nextPage.$el : null; + + if (dragState.prevPage) { + dragState.prevPage.style.display = 'block'; + } + + if (dragState.nextPage) { + dragState.nextPage.style.display = 'block'; + } + }, + + doOnTouchMove: function doOnTouchMove(event) { + if (this.noDrag) return; + + var dragState = this.dragState; + var touch = event.touches[0]; + + dragState.speedX = touch.pageX - dragState.currentLeft; + dragState.currentLeft = touch.pageX; + dragState.currentTop = touch.pageY; + dragState.currentTopAbsolute = touch.clientY; + + var offsetLeft = dragState.currentLeft - dragState.startLeft; + var offsetTop = dragState.currentTopAbsolute - dragState.startTopAbsolute; + + var distanceX = Math.abs(offsetLeft); + var distanceY = Math.abs(offsetTop); + if (distanceX < 5 || (distanceX >= 5 && distanceY >= 1.73 * distanceX)) { + this.userScrolling = true; + return; + } else { + this.userScrolling = false; + event.preventDefault(); + } + offsetLeft = Math.min(Math.max(-dragState.pageWidth + 1, offsetLeft), dragState.pageWidth - 1); + + var towards = offsetLeft < 0 ? 'next' : 'prev'; + + if (dragState.prevPage && towards === 'prev') { + this.translate(dragState.prevPage, offsetLeft - dragState.pageWidth); + } + this.translate(dragState.dragPage, offsetLeft); + if (dragState.nextPage && towards === 'next') { + this.translate(dragState.nextPage, offsetLeft + dragState.pageWidth); + } + }, + + doOnTouchEnd: function doOnTouchEnd() { + if (this.noDrag) return; + + var dragState = this.dragState; + + var dragDuration = new Date() - dragState.startTime; + var towards = null; + + var offsetLeft = dragState.currentLeft - dragState.startLeft; + var offsetTop = dragState.currentTop - dragState.startTop; + var pageWidth = dragState.pageWidth; + var index = this.index; + var pageCount = this.pages.length; + + if (dragDuration < 300) { + var fireTap = Math.abs(offsetLeft) < 5 && Math.abs(offsetTop) < 5; + if (isNaN(offsetLeft) || isNaN(offsetTop)) { + fireTap = true; + } + if (fireTap) { + this.$children[this.index].$emit('tap'); + } + } + + if (dragDuration < 300 && dragState.currentLeft === undefined) return; + + if (dragDuration < 300 || Math.abs(offsetLeft) > pageWidth / 2) { + towards = offsetLeft < 0 ? 'next' : 'prev'; + } + + if (!this.continuous) { + if ((index === 0 && towards === 'prev') || (index === pageCount - 1 && towards === 'next')) { + towards = null; + } + } + + if (this.$children.length < 2) { + towards = null; + } + + this.doAnimate(towards, { + offsetLeft: offsetLeft, + pageWidth: dragState.pageWidth, + prevPage: dragState.prevPage, + currentPage: dragState.dragPage, + nextPage: dragState.nextPage, + speedX: dragState.speedX + }); + + this.dragState = {}; + }, + + initTimer: function initTimer() { + var this$1 = this; + + if (this.auto > 0 && !this.timer) { + this.timer = setInterval(function () { + if (!this$1.continuous && (this$1.index >= this$1.pages.length - 1)) { + return this$1.clearTimer(); + } + if (!this$1.dragging && !this$1.animating) { + this$1.next(); + } + }, this.auto); + } + }, + + clearTimer: function clearTimer() { + clearInterval(this.timer); + this.timer = null; + } + }, + + destroyed: function destroyed() { + if (this.timer) { + this.clearTimer(); + } + if (this.reInitTimer) { + clearTimeout(this.reInitTimer); + this.reInitTimer = null; + } + }, + + mounted: function mounted() { + var this$1 = this; + + this.ready = true; + + this.initTimer(); + + this.reInitPages(); + + var element = this.$el; + + element.addEventListener('touchstart', function (event) { + if (this$1.prevent) event.preventDefault(); + if (this$1.stopPropagation) event.stopPropagation(); + if (this$1.animating) return; + this$1.dragging = true; + this$1.userScrolling = false; + this$1.doOnTouchStart(event); + }); + + element.addEventListener('touchmove', function (event) { + if (!this$1.dragging) return; + if (this$1.timer) this$1.clearTimer(); + this$1.doOnTouchMove(event); + }); + + element.addEventListener('touchend', function (event) { + if (this$1.userScrolling) { + this$1.dragging = false; + this$1.dragState = {}; + return; + } + if (!this$1.dragging) return; + this$1.initTimer(); + this$1.doOnTouchEnd(event); + this$1.dragging = false; + }); + } +}; + + +/***/ }, + +/***/ 99: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/swipe/style.css b/src/main/web/static/mint-ui/swipe/style.css new file mode 100644 index 0000000000000000000000000000000000000000..8c924202de1f6122a1e8b400ce11cf8aa9397cff --- /dev/null +++ b/src/main/web/static/mint-ui/swipe/style.css @@ -0,0 +1,43 @@ + +.mint-swipe { + overflow: hidden; + position: relative; + height: 100%; +} +.mint-swipe-items-wrap { + position: relative; + overflow: hidden; + height: 100%; +} +.mint-swipe-items-wrap > div { + position: absolute; + -webkit-transform: translateX(-100%); + transform: translateX(-100%); + width: 100%; + height: 100%; + display: none +} +.mint-swipe-items-wrap > div.is-active { + display: block; + -webkit-transform: none; + transform: none; +} +.mint-swipe-indicators { + position: absolute; + bottom: 10px; + left: 50%; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); +} +.mint-swipe-indicator { + width: 8px; + height: 8px; + display: inline-block; + border-radius: 100%; + background: #000; + opacity: 0.2; + margin: 0 3px; +} +.mint-swipe-indicator.is-active { + background: #fff; +} diff --git a/src/main/web/static/mint-ui/switch/index.js b/src/main/web/static/mint-ui/switch/index.js new file mode 100644 index 0000000000000000000000000000000000000000..fa2e29969bb66317ad280a1fccc7eec7678fd3e9 --- /dev/null +++ b/src/main/web/static/mint-ui/switch/index.js @@ -0,0 +1,322 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 237); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 110: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 159: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(110) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(81), + /* template */ + __webpack_require__(179), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 179: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('label', { + staticClass: "mint-switch" + }, [_c('input', { + directives: [{ + name: "model", + rawName: "v-model", + value: (_vm.currentValue), + expression: "currentValue" + }], + staticClass: "mint-switch-input", + attrs: { + "disabled": _vm.disabled, + "type": "checkbox" + }, + domProps: { + "checked": Array.isArray(_vm.currentValue) ? _vm._i(_vm.currentValue, null) > -1 : (_vm.currentValue) + }, + on: { + "change": function($event) { + _vm.$emit('change', _vm.currentValue) + }, + "__c": function($event) { + var $$a = _vm.currentValue, + $$el = $event.target, + $$c = $$el.checked ? (true) : (false); + if (Array.isArray($$a)) { + var $$v = null, + $$i = _vm._i($$a, $$v); + if ($$c) { + $$i < 0 && (_vm.currentValue = $$a.concat($$v)) + } else { + $$i > -1 && (_vm.currentValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1))) + } + } else { + _vm.currentValue = $$c + } + } + } + }), _vm._v(" "), _c('span', { + staticClass: "mint-switch-core" + }), _vm._v(" "), _c('div', { + staticClass: "mint-switch-label" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 237: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(45); + + +/***/ }, + +/***/ 45: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_switch_vue__ = __webpack_require__(159); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_switch_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_switch_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_switch_vue___default.a; }); + + + +/***/ }, + +/***/ 81: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// + +/** + * mt-switch + * @module components/switch + * @desc 切换按钮 + * @param {boolean} [value] - 绑定值,支持双向绑定 + * @param {slot} - 显示内容 + * + * @example + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-switch', + + props: { + value: Boolean, + disabled: { + type: Boolean, + default: false + } + }, + computed: { + currentValue: { + get: function get() { + return this.value; + }, + set: function set(val) { + this.$emit('input', val); + } + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/switch/style.css b/src/main/web/static/mint-ui/switch/style.css new file mode 100644 index 0000000000000000000000000000000000000000..a33b6c566c6921acf9c8af3461f0f07c7b1951b2 --- /dev/null +++ b/src/main/web/static/mint-ui/switch/style.css @@ -0,0 +1,75 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-switch { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + position: relative; +} +.mint-switch * { + pointer-events: none; +} +.mint-switch-label { + margin-left: 10px; + display: inline-block; +} +.mint-switch-label:empty { + margin-left: 0; +} +.mint-switch-core { + display: inline-block; + position: relative; + width: 52px; + height: 32px; + border: 1px solid #d9d9d9; + border-radius: 16px; + box-sizing: border-box; + background: #d9d9d9; +} +.mint-switch-core::after, .mint-switch-core::before { + content: " "; + top: 0; + left: 0; + position: absolute; + -webkit-transition: -webkit-transform .3s; + transition: -webkit-transform .3s; + transition: transform .3s; + transition: transform .3s, -webkit-transform .3s; + border-radius: 15px; +} +.mint-switch-core::after { + width: 30px; + height: 30px; + background-color: #fff; + box-shadow: 0 1px 3px rgba(0, 0, 0, .4); +} +.mint-switch-core::before { + width: 50px; + height: 30px; + background-color: #fdfdfd; +} +.mint-switch-input { + display: none; +} +.mint-switch-input:checked + .mint-switch-core { + border-color: #26a2ff; + background-color: #26a2ff; +} +.mint-switch-input:checked + .mint-switch-core::before { + -webkit-transform: scale(0); + transform: scale(0); +} +.mint-switch-input:checked + .mint-switch-core::after { + -webkit-transform: translateX(20px); + transform: translateX(20px); +} diff --git a/src/main/web/static/mint-ui/tab-container-item/index.js b/src/main/web/static/mint-ui/tab-container-item/index.js new file mode 100644 index 0000000000000000000000000000000000000000..082621c4479fe3a77bca4793e713648db8075490 --- /dev/null +++ b/src/main/web/static/mint-ui/tab-container-item/index.js @@ -0,0 +1,276 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 239); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 120: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 160: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(120) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(82), + /* template */ + __webpack_require__(189), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 189: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.$parent.swiping || _vm.id === _vm.$parent.currentActive), + expression: "$parent.swiping || id === $parent.currentActive" + }], + staticClass: "mint-tab-container-item" + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 239: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(46); + + +/***/ }, + +/***/ 46: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue__ = __webpack_require__(160); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_container_item_vue___default.a; }); + + + +/***/ }, + +/***/ 82: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// + +/** + * mt-tab-container-item + * @desc 搭配 tab-container 使用 + * @module components/tab-container-item + * + * @param {number|string} [id] - 该项的 id + * + * @example + * + * 内容A + * 内容B + * 内容C + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tab-container-item', + + props: ['id'] +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/tab-container-item/style.css b/src/main/web/static/mint-ui/tab-container-item/style.css new file mode 100644 index 0000000000000000000000000000000000000000..1213f4a1dd6384e8f89112b9c1e7d9bbca3aa1b1 --- /dev/null +++ b/src/main/web/static/mint-ui/tab-container-item/style.css @@ -0,0 +1,6 @@ + +.mint-tab-container-item { + -ms-flex-negative: 0; + flex-shrink: 0; + width: 100% +} diff --git a/src/main/web/static/mint-ui/tab-container/index.js b/src/main/web/static/mint-ui/tab-container/index.js new file mode 100644 index 0000000000000000000000000000000000000000..5bc397896f3460b41162912f5dd9a4bc41ec3df5 --- /dev/null +++ b/src/main/web/static/mint-ui/tab-container/index.js @@ -0,0 +1,647 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 238); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 105: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 161: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(105) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(83), + /* template */ + __webpack_require__(174), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 174: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-tab-container", + on: { + "touchstart": _vm.startDrag, + "mousedown": _vm.startDrag, + "touchmove": _vm.onDrag, + "mousemove": _vm.onDrag, + "mouseup": _vm.endDrag, + "touchend": _vm.endDrag + } + }, [_c('div', { + ref: "wrap", + staticClass: "mint-tab-container-wrap" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 2: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); +/* unused harmony export on */ +/* unused harmony export off */ +/* harmony export (binding) */ __webpack_require__.d(exports, "c", function() { return once; }); +/* unused harmony export hasClass */ +/* harmony export (immutable) */ exports["a"] = addClass; +/* harmony export (immutable) */ exports["b"] = removeClass; +/* unused harmony export getStyle */ +/* unused harmony export setStyle */ +/* istanbul ignore next */ + + + +var isServer = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.prototype.$isServer; +var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g; +var MOZ_HACK_REGEXP = /^moz([A-Z])/; +var ieVersion = isServer ? 0 : Number(document.documentMode); + +/* istanbul ignore next */ +var trim = function(string) { + return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, ''); +}; +/* istanbul ignore next */ +var camelCase = function(name) { + return name.replace(SPECIAL_CHARS_REGEXP, function(_, separator, letter, offset) { + return offset ? letter.toUpperCase() : letter; + }).replace(MOZ_HACK_REGEXP, 'Moz$1'); +}; + +/* istanbul ignore next */ +var on = (function() { + if (!isServer && document.addEventListener) { + return function(element, event, handler) { + if (element && event && handler) { + element.addEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event && handler) { + element.attachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var off = (function() { + if (!isServer && document.removeEventListener) { + return function(element, event, handler) { + if (element && event) { + element.removeEventListener(event, handler, false); + } + }; + } else { + return function(element, event, handler) { + if (element && event) { + element.detachEvent('on' + event, handler); + } + }; + } +})(); + +/* istanbul ignore next */ +var once = function(el, event, fn) { + var listener = function() { + if (fn) { + fn.apply(this, arguments); + } + off(el, event, listener); + }; + on(el, event, listener); +}; + +/* istanbul ignore next */ +function hasClass(el, cls) { + if (!el || !cls) return false; + if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.'); + if (el.classList) { + return el.classList.contains(cls); + } else { + return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1; + } +}; + +/* istanbul ignore next */ +function addClass(el, cls) { + if (!el) return; + var curClass = el.className; + var classes = (cls || '').split(' '); + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.add(clsName); + } else { + if (!hasClass(el, clsName)) { + curClass += ' ' + clsName; + } + } + } + if (!el.classList) { + el.className = curClass; + } +}; + +/* istanbul ignore next */ +function removeClass(el, cls) { + if (!el || !cls) return; + var classes = cls.split(' '); + var curClass = ' ' + el.className + ' '; + + for (var i = 0, j = classes.length; i < j; i++) { + var clsName = classes[i]; + if (!clsName) continue; + + if (el.classList) { + el.classList.remove(clsName); + } else { + if (hasClass(el, clsName)) { + curClass = curClass.replace(' ' + clsName + ' ', ' '); + } + } + } + if (!el.classList) { + el.className = trim(curClass); + } +}; + +/* istanbul ignore next */ +var getStyle = ieVersion < 9 ? function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'styleFloat'; + } + try { + switch (styleName) { + case 'opacity': + try { + return element.filters.item('alpha').opacity / 100; + } catch (e) { + return 1.0; + } + default: + return (element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null); + } + } catch (e) { + return element.style[styleName]; + } +} : function(element, styleName) { + if (isServer) return; + if (!element || !styleName) return null; + styleName = camelCase(styleName); + if (styleName === 'float') { + styleName = 'cssFloat'; + } + try { + var computed = document.defaultView.getComputedStyle(element, ''); + return element.style[styleName] || computed ? computed[styleName] : null; + } catch (e) { + return element.style[styleName]; + } +}; + +/* istanbul ignore next */ +function setStyle(element, styleName, value) { + if (!element || !styleName) return; + + if (typeof styleName === 'object') { + for (var prop in styleName) { + if (styleName.hasOwnProperty(prop)) { + setStyle(element, prop, styleName[prop]); + } + } + } else { + styleName = camelCase(styleName); + if (styleName === 'opacity' && ieVersion < 9) { + element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')'; + } else { + element.style[styleName] = value; + } + } +}; + + +/***/ }, + +/***/ 200: +/***/ function(module, exports) { + +module.exports = require("array-find-index"); + +/***/ }, + +/***/ 238: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(47); + + +/***/ }, + +/***/ 47: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue__ = __webpack_require__(161); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_container_vue___default.a; }); + + + +/***/ }, + +/***/ 83: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__ = __webpack_require__(2); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_array_find_index__ = __webpack_require__(200); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_array_find_index___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_array_find_index__); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + + + + +/** + * mt-tab-container + * @desc 面板,搭配 tab-container-item 使用 + * @module components/tab-container + * + * @param {number|string} [value] - 当前激活的 tabId + * + * @example + * + * 内容A + * 内容B + * 内容C + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tab-container', + + props: { + value: {}, + swipeable: Boolean + }, + + data: function data() { + return { + start: { x: 0, y: 0 }, + swiping: false, + activeItems: [], + pageWidth: 0, + currentActive: this.value + }; + }, + + watch: { + value: function value(val) { + this.currentActive = val; + }, + + currentActive: function currentActive(val, oldValue) { + this.$emit('input', val); + if (!this.swipeable) return; + var lastIndex = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children, + function (item) { return item.id === oldValue; }); + this.swipeLeaveTransition(lastIndex); + } + }, + + mounted: function mounted() { + if (!this.swipeable) return; + + this.wrap = this.$refs.wrap; + this.pageWidth = this.wrap.clientWidth; + this.limitWidth = this.pageWidth / 4; + }, + + methods: { + swipeLeaveTransition: function swipeLeaveTransition(lastIndex) { + var this$1 = this; + if ( lastIndex === void 0 ) lastIndex = 0; + + if (typeof this.index !== 'number') { + this.index = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children, + function (item) { return item.id === this$1.currentActive; }); + this.swipeMove(-lastIndex * this.pageWidth); + } + + setTimeout(function () { + this$1.wrap.classList.add('swipe-transition'); + this$1.swipeMove(-this$1.index * this$1.pageWidth); + + __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_mint_ui_src_utils_dom__["c" /* once */])(this$1.wrap, 'webkitTransitionEnd', function (_) { + this$1.wrap.classList.remove('swipe-transition'); + this$1.wrap.style.webkitTransform = ''; + this$1.swiping = false; + this$1.index = null; + }); + }, 0); + }, + + swipeMove: function swipeMove(offset) { + this.wrap.style.webkitTransform = "translate3d(" + offset + "px, 0, 0)"; + this.swiping = true; + }, + + startDrag: function startDrag(evt) { + if (!this.swipeable) return; + evt = evt.changedTouches ? evt.changedTouches[0] : evt; + this.dragging = true; + this.start.x = evt.pageX; + this.start.y = evt.pageY; + }, + + onDrag: function onDrag(evt) { + var this$1 = this; + + if (!this.dragging) return; + var swiping; + var e = evt.changedTouches ? evt.changedTouches[0] : evt; + var offsetTop = e.pageY - this.start.y; + var offsetLeft = e.pageX - this.start.x; + var y = Math.abs(offsetTop); + var x = Math.abs(offsetLeft); + + swiping = !(x < 5 || (x >= 5 && y >= x * 1.73)); + if (!swiping) return; + evt.preventDefault(); + + var len = this.$children.length - 1; + var index = __WEBPACK_IMPORTED_MODULE_1_array_find_index___default()(this.$children, + function (item) { return item.id === this$1.currentActive; }); + var currentPageOffset = index * this.pageWidth; + var offset = offsetLeft - currentPageOffset; + var absOffset = Math.abs(offset); + + if (absOffset > len * this.pageWidth || + (offset > 0 && offset < this.pageWidth)) { + this.swiping = false; + return; + } + + this.offsetLeft = offsetLeft; + this.index = index; + this.swipeMove(offset); + }, + + endDrag: function endDrag() { + if (!this.swiping) return; + this.dragging = false; + var direction = this.offsetLeft > 0 ? -1 : 1; + var isChange = Math.abs(this.offsetLeft) > this.limitWidth; + + if (isChange) { + this.index += direction; + var child = this.$children[this.index]; + if (child) { + this.currentActive = child.id; + return; + } + } + + this.swipeLeaveTransition(); + } + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/tab-container/style.css b/src/main/web/static/mint-ui/tab-container/style.css new file mode 100644 index 0000000000000000000000000000000000000000..e6713c1f9628ce99e2fa0a1728bdf57da581339e --- /dev/null +++ b/src/main/web/static/mint-ui/tab-container/style.css @@ -0,0 +1,16 @@ + +.mint-tab-container { + overflow: hidden; + position: relative; +} +.mint-tab-container .swipe-transition { + -webkit-transition: -webkit-transform 150ms ease-in-out; + transition: -webkit-transform 150ms ease-in-out; + transition: transform 150ms ease-in-out; + transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out; +} +.mint-tab-container-wrap { + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} diff --git a/src/main/web/static/mint-ui/tab-item/index.js b/src/main/web/static/mint-ui/tab-item/index.js new file mode 100644 index 0000000000000000000000000000000000000000..1748b00b1f5216b6bf15bca54a72c60e3d51978a --- /dev/null +++ b/src/main/web/static/mint-ui/tab-item/index.js @@ -0,0 +1,283 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 240); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 108: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 162: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(108) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(84), + /* template */ + __webpack_require__(177), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 177: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('a', { + staticClass: "mint-tab-item", + class: { + 'is-selected': _vm.$parent.value === _vm.id + }, + on: { + "click": function($event) { + _vm.$parent.$emit('input', _vm.id) + } + } + }, [_c('div', { + staticClass: "mint-tab-item-icon" + }, [_vm._t("icon")], 2), _vm._v(" "), _c('div', { + staticClass: "mint-tab-item-label" + }, [_vm._t("default")], 2)]) +},staticRenderFns: []} + +/***/ }, + +/***/ 240: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(48); + + +/***/ }, + +/***/ 48: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue__ = __webpack_require__(162); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tab_item_vue___default.a; }); + + + +/***/ }, + +/***/ 84: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// + +/** + * mt-tab-item + * @module components/tab-item + * @desc 搭配 tabbar 或 navbar 使用 + * @param {*} id - 选中后的返回值,任意类型 + * @param {slot} [icon] - icon 图标 + * @param {slot} - 文字 + * + * @example + * + * + * 订单 + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tab-item', + + props: ['id'] +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/tab-item/style.css b/src/main/web/static/mint-ui/tab-item/style.css new file mode 100644 index 0000000000000000000000000000000000000000..fc3b0d48b5c454ff921e110d72da52a88ae970a8 --- /dev/null +++ b/src/main/web/static/mint-ui/tab-item/style.css @@ -0,0 +1,35 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-tab-item { + display: block; + padding: 7px 0; + -webkit-box-flex: 1; + -ms-flex: 1; + flex: 1; + text-decoration: none +} +.mint-tab-item-icon { + width: 24px; + height: 24px; + margin: 0 auto 5px +} +.mint-tab-item-icon:empty { + display: none +} +.mint-tab-item-icon > * { + display: block; + width: 100%; + height: 100% +} +.mint-tab-item-label { + color: inherit; + font-size: 12px; + line-height: 1 +} diff --git a/src/main/web/static/mint-ui/tabbar/index.js b/src/main/web/static/mint-ui/tabbar/index.js new file mode 100644 index 0000000000000000000000000000000000000000..9ec9233e42ca1c04946f133d7c49e1595583b5db --- /dev/null +++ b/src/main/web/static/mint-ui/tabbar/index.js @@ -0,0 +1,284 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 241); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 113: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 163: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(113) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(85), + /* template */ + __webpack_require__(183), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 183: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('div', { + staticClass: "mint-tabbar", + class: { + 'is-fixed': _vm.fixed + } + }, [_vm._t("default")], 2) +},staticRenderFns: []} + +/***/ }, + +/***/ 241: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(49); + + +/***/ }, + +/***/ 49: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue__ = __webpack_require__(163); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue__); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_tabbar_vue___default.a; }); + + + +/***/ }, + +/***/ 85: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// + +/** + * mt-tabbar + * @module components/tabbar + * @desc 底部 tab,依赖 tab-item + * @param {boolean} [fixed=false] - 固定底部 + * @param {*} value - 返回 item component 传入的 id + * + * @example + * + * + * + * 订单 + * + * + * + * + * + * + * 订单 + * + * + */ +/* harmony default export */ exports["default"] = { + name: 'mt-tabbar', + + props: { + fixed: Boolean, + value: {} + } +}; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/tabbar/style.css b/src/main/web/static/mint-ui/tabbar/style.css new file mode 100644 index 0000000000000000000000000000000000000000..48e7ecb087f97230df451388ad78a21e89d44a69 --- /dev/null +++ b/src/main/web/static/mint-ui/tabbar/style.css @@ -0,0 +1,37 @@ +/* Cell Component */ +/* Header Component */ +/* Button Component */ +/* Tab Item Component */ +/* Tabbar Component */ +/* Navbar Component */ +/* Checklist Component */ +/* Radio Component */ +/* z-index */ +.mint-tabbar { + background-image: -webkit-linear-gradient(top, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-image: linear-gradient(180deg, #d9d9d9, #d9d9d9 50%, transparent 50%); + background-size: 100% 1px; + background-repeat: no-repeat; + background-position: top left; + position: relative; + background-color: #fafafa; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + right: 0; + bottom: 0; + left: 0; + position: absolute; + text-align: center; +} +.mint-tabbar > .mint-tab-item.is-selected { + background-color: #eaeaea; + color: #26a2ff; +} +.mint-tabbar.is-fixed { + right: 0; + bottom: 0; + left: 0; + position: fixed; + z-index: 1; +} diff --git a/src/main/web/static/mint-ui/toast/index.js b/src/main/web/static/mint-ui/toast/index.js new file mode 100644 index 0000000000000000000000000000000000000000..8c9d4030f37e2e3236c5441687b7342534e8f2df --- /dev/null +++ b/src/main/web/static/mint-ui/toast/index.js @@ -0,0 +1,443 @@ +module.exports = +/******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; + +/******/ // The require function +/******/ function __webpack_require__(moduleId) { + +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) +/******/ return installedModules[moduleId].exports; + +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; + +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); + +/******/ // Flag the module as loaded +/******/ module.l = true; + +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } + + +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; + +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; + +/******/ // identity function for calling harmony imports with the correct context +/******/ __webpack_require__.i = function(value) { return value; }; + +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { +/******/ configurable: false, +/******/ enumerable: true, +/******/ get: getter +/******/ }); +/******/ } +/******/ }; + +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; + +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; + +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; + +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = 242); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ 0: +/***/ function(module, exports) { + +/* globals __VUE_SSR_CONTEXT__ */ + +// this module is a runtime utility for cleaner component module output and will +// be included in the final webpack user bundle + +module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ +) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + : options.beforeCreate + if (!functional) { + // inject component registration as beforeCreate hook + options.beforeCreate = existing + ? [].concat(existing, hook) + : [hook] + } else { + // register for functioal component in vue file + options.render = function renderWithStyleInjection (h, context) { + hook.call(context) + return existing(h, context) + } + } + } + + return { + esModule: esModule, + exports: scriptExports, + options: options + } +} + + +/***/ }, + +/***/ 1: +/***/ function(module, exports) { + +module.exports = require("vue"); + +/***/ }, + +/***/ 101: +/***/ function(module, exports) { + +// removed by extract-text-webpack-plugin + +/***/ }, + +/***/ 164: +/***/ function(module, exports, __webpack_require__) { + +function injectStyle (ssrContext) { + __webpack_require__(101) +} +var Component = __webpack_require__(0)( + /* script */ + __webpack_require__(86), + /* template */ + __webpack_require__(170), + /* styles */ + injectStyle, + /* scopeId */ + null, + /* moduleIdentifier (server only) */ + null +) + +module.exports = Component.exports + + +/***/ }, + +/***/ 170: +/***/ function(module, exports) { + +module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; + return _c('transition', { + attrs: { + "name": "mint-toast-pop" + } + }, [_c('div', { + directives: [{ + name: "show", + rawName: "v-show", + value: (_vm.visible), + expression: "visible" + }], + staticClass: "mint-toast", + class: _vm.customClass, + style: ({ + 'padding': _vm.iconClass === '' ? '10px' : '20px' + }) + }, [(_vm.iconClass !== '') ? _c('i', { + staticClass: "mint-toast-icon", + class: _vm.iconClass + }) : _vm._e(), _vm._v(" "), _c('span', { + staticClass: "mint-toast-text", + style: ({ + 'padding-top': _vm.iconClass === '' ? '0' : '10px' + }) + }, [_vm._v(_vm._s(_vm.message))])])]) +},staticRenderFns: []} + +/***/ }, + +/***/ 242: +/***/ function(module, exports, __webpack_require__) { + +module.exports = __webpack_require__(50); + + +/***/ }, + +/***/ 50: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_toast_js__ = __webpack_require__(94); +Object.defineProperty(exports, "__esModule", { value: true }); +/* harmony reexport (binding) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_toast_js__["a"]; }); + + + +/***/ }, + +/***/ 86: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// + +/* harmony default export */ exports["default"] = { + props: { + message: String, + className: { + type: String, + default: '' + }, + position: { + type: String, + default: 'middle' + }, + iconClass: { + type: String, + default: '' + } + }, + + data: function data() { + return { + visible: false + }; + }, + + computed: { + customClass: function customClass() { + var classes = []; + switch (this.position) { + case 'top': + classes.push('is-placetop'); + break; + case 'bottom': + classes.push('is-placebottom'); + break; + default: + classes.push('is-placemiddle'); + } + classes.push(this.className); + + return classes.join(' '); + } + } +}; + + +/***/ }, + +/***/ 94: +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(1); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_vue__); + + +var ToastConstructor = __WEBPACK_IMPORTED_MODULE_0_vue___default.a.extend(__webpack_require__(164)); +var toastPool = []; + +var getAnInstance = function () { + if (toastPool.length > 0) { + var instance = toastPool[0]; + toastPool.splice(0, 1); + return instance; + } + return new ToastConstructor({ + el: document.createElement('div') + }); +}; + +var returnAnInstance = function (instance) { + if (instance) { + toastPool.push(instance); + } +}; + +var removeDom = function (event) { + if (event.target.parentNode) { + event.target.parentNode.removeChild(event.target); + } +}; + +ToastConstructor.prototype.close = function() { + this.visible = false; + this.$el.addEventListener('transitionend', removeDom); + this.closed = true; + returnAnInstance(this); +}; + +var Toast = function (options) { + if ( options === void 0 ) options = {}; + + var duration = options.duration || 3000; + + var instance = getAnInstance(); + instance.closed = false; + clearTimeout(instance.timer); + instance.message = typeof options === 'string' ? options : options.message; + instance.position = options.position || 'middle'; + instance.className = options.className || ''; + instance.iconClass = options.iconClass || ''; + + document.body.appendChild(instance.$el); + __WEBPACK_IMPORTED_MODULE_0_vue___default.a.nextTick(function() { + instance.visible = true; + instance.$el.removeEventListener('transitionend', removeDom); + ~duration && (instance.timer = setTimeout(function() { + if (instance.closed) return; + instance.close(); + }, duration)); + }); + return instance; +}; + +/* harmony default export */ exports["a"] = Toast; + + +/***/ } + +/******/ }); \ No newline at end of file diff --git a/src/main/web/static/mint-ui/toast/style.css b/src/main/web/static/mint-ui/toast/style.css new file mode 100644 index 0000000000000000000000000000000000000000..a741cc2bf786c2bd1aeafe1124abc39d30898d65 --- /dev/null +++ b/src/main/web/static/mint-ui/toast/style.css @@ -0,0 +1,44 @@ + +.mint-toast { + position: fixed; + max-width: 80%; + border-radius: 5px; + background: rgba(0, 0, 0, 0.7); + color: #fff; + box-sizing: border-box; + text-align: center; + z-index: 1000; + -webkit-transition: opacity .3s linear; + transition: opacity .3s linear +} +.mint-toast.is-placebottom { + bottom: 50px; + left: 50%; + -webkit-transform: translate(-50%, 0); + transform: translate(-50%, 0) +} +.mint-toast.is-placemiddle { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%) +} +.mint-toast.is-placetop { + top: 50px; + left: 50%; + -webkit-transform: translate(-50%, 0); + transform: translate(-50%, 0) +} +.mint-toast-icon { + display: block; + text-align: center; + font-size: 56px +} +.mint-toast-text { + font-size: 14px; + display: block; + text-align: center +} +.mint-toast-pop-enter, .mint-toast-pop-leave-active { + opacity: 0 +}