UNPKG

admin-ui-hs

Version:

An elegant admin-system-like vue ui components library

1,670 lines (1,431 loc) 63.5 kB
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; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // 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 = 387); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports) { // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global = module.exports = typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self // eslint-disable-next-line no-new-func : Function('return this')(); if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef /***/ }), /***/ 1: /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty module.exports = !__webpack_require__(6)(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /***/ 10: /***/ (function(module, exports) { var core = module.exports = { version: '2.6.12' }; if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef /***/ }), /***/ 103: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_form_item_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_form_item_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_form_item_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); /* unused harmony reexport * */ /***/ }), /***/ 104: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(23)(false); // Module exports.push([module.i, ".au-form-label{display:block;margin-bottom:8px;font-size:14px;line-height:14px}.au-form-label-inline{display:inline-block;margin-right:8px;font-size:14px;text-align:right}.au-size-mini{height:20px;line-height:20px;font-size:10px}.au-size-small{height:24px;line-height:24px;font-size:12px}.au-size-normal{height:32px;line-height:32px;font-size:14px}.au-size-large{height:36px;line-height:36px;font-size:14px}.au-size-mini-bordered{height:20px;line-height:18px;font-size:10px}.au-size-small-bordered{height:24px;line-height:22px;font-size:12px}.au-size-normal-bordered{height:32px;line-height:30px;font-size:14px}.au-size-large-bordered{height:36px;line-height:34px;font-size:14px}.au-form-warning{margin-top:8px;font-size:12px;line-height:12px}.au-form-item{font-size:14px}.au-form-item-main-block{display:block}.au-form-item-main-inline{display:inline-block;vertical-align:top}\n", ""]); /***/ }), /***/ 11: /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(0); var hide = __webpack_require__(5); var has = __webpack_require__(7); var SRC = __webpack_require__(13)('src'); var $toString = __webpack_require__(48); var TO_STRING = 'toString'; var TPL = ('' + $toString).split(TO_STRING); __webpack_require__(10).inspectSource = function (it) { return $toString.call(it); }; (module.exports = function (O, key, val, safe) { var isFunction = typeof val == 'function'; if (isFunction) has(val, 'name') || hide(val, 'name', key); if (O[key] === val) return; if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); if (O === global) { O[key] = val; } else if (!safe) { delete O[key]; hide(O, key, val); } else if (O[key]) { O[key] = val; } else { hide(O, key, val); } // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, TO_STRING, function toString() { return typeof this == 'function' && this[SRC] || $toString.call(this); }); /***/ }), /***/ 119: /***/ (function(module, exports, __webpack_require__) { // 7.2.8 IsRegExp(argument) var isObject = __webpack_require__(4); var cof = __webpack_require__(17); var MATCH = __webpack_require__(2)('match'); module.exports = function (it) { var isRegExp; return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); }; /***/ }), /***/ 12: /***/ (function(module, exports) { // 7.2.1 RequireObjectCoercible(argument) module.exports = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; /***/ }), /***/ 124: /***/ (function(module, exports) { module.exports = require("admin-ui/dist/lib/scroller"); /***/ }), /***/ 13: /***/ (function(module, exports) { var id = 0; var px = Math.random(); module.exports = function (key) { return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); }; /***/ }), /***/ 14: /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings var IObject = __webpack_require__(50); var defined = __webpack_require__(12); module.exports = function (it) { return IObject(defined(it)); }; /***/ }), /***/ 15: /***/ (function(module, exports, __webpack_require__) { var core = __webpack_require__(10); var global = __webpack_require__(0); var SHARED = '__core-js_shared__'; var store = global[SHARED] || (global[SHARED] = {}); (module.exports = function (key, value) { return store[key] || (store[key] = value !== undefined ? value : {}); })('versions', []).push({ version: core.version, mode: __webpack_require__(27) ? 'pure' : 'global', copyright: '© 2020 Denis Pushkarev (zloirock.ru)' }); /***/ }), /***/ 16: /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(0); var core = __webpack_require__(10); var hide = __webpack_require__(5); var redefine = __webpack_require__(11); var ctx = __webpack_require__(28); var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { var IS_FORCED = type & $export.F; var IS_GLOBAL = type & $export.G; var IS_STATIC = type & $export.S; var IS_PROTO = type & $export.P; var IS_BIND = type & $export.B; var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); var key, own, out, exp; if (IS_GLOBAL) source = name; for (key in source) { // contains in native own = !IS_FORCED && target && target[key] !== undefined; // export native or passed out = (own ? target : source)[key]; // bind timers to global for call from export context exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; // extend global if (target) redefine(target, key, out, type & $export.U); // export if (exports[key] != out) hide(exports, key, exp); if (IS_PROTO && expProto[key] != out) expProto[key] = out; } }; global.core = core; // type bitmap $export.F = 1; // forced $export.G = 2; // global $export.S = 4; // static $export.P = 8; // proto $export.B = 16; // bind $export.W = 32; // wrap $export.U = 64; // safe $export.R = 128; // real proto method for `library` module.exports = $export; /***/ }), /***/ 164: /***/ (function(module, exports, __webpack_require__) { "use strict"; // https://github.com/tc39/Array.prototype.includes var $export = __webpack_require__(16); var $includes = __webpack_require__(51)(true); $export($export.P, 'Array', { includes: function includes(el /* , fromIndex = 0 */) { return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); __webpack_require__(62)('includes'); /***/ }), /***/ 17: /***/ (function(module, exports) { var toString = {}.toString; module.exports = function (it) { return toString.call(it).slice(8, -1); }; /***/ }), /***/ 174: /***/ (function(module, exports) { module.exports = require("admin-ui/dist/lib/loading"); /***/ }), /***/ 176: /***/ (function(module, exports) { module.exports = require("admin-ui/dist/lib/popover"); /***/ }), /***/ 18: /***/ (function(module, exports) { module.exports = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; /***/ }), /***/ 186: /***/ (function(module, exports, __webpack_require__) { "use strict"; // 21.1.3.7 String.prototype.includes(searchString, position = 0) var $export = __webpack_require__(16); var context = __webpack_require__(187); var INCLUDES = 'includes'; $export($export.P + $export.F * __webpack_require__(188)(INCLUDES), 'String', { includes: function includes(searchString /* , position = 0 */) { return !!~context(this, searchString, INCLUDES) .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); } }); /***/ }), /***/ 187: /***/ (function(module, exports, __webpack_require__) { // helper for String#{startsWith, endsWith, includes} var isRegExp = __webpack_require__(119); var defined = __webpack_require__(12); module.exports = function (that, searchString, NAME) { if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); return String(defined(that)); }; /***/ }), /***/ 188: /***/ (function(module, exports, __webpack_require__) { var MATCH = __webpack_require__(2)('match'); module.exports = function (KEY) { var re = /./; try { '/./'[KEY](re); } catch (e) { try { re[MATCH] = false; return !'/./'[KEY](re); } catch (f) { /* empty */ } } return true; }; /***/ }), /***/ 19: /***/ (function(module, exports) { // 7.1.4 ToInteger var ceil = Math.ceil; var floor = Math.floor; module.exports = function (it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; /***/ }), /***/ 2: /***/ (function(module, exports, __webpack_require__) { var store = __webpack_require__(15)('wks'); var uid = __webpack_require__(13); var Symbol = __webpack_require__(0).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; var $exports = module.exports = function (name) { return store[name] || (store[name] = USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); }; $exports.store = store; /***/ }), /***/ 20: /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) var isObject = __webpack_require__(4); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function (it, S) { if (!isObject(it)) return it; var fn, val; if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; /***/ }), /***/ 23: /***/ (function(module, exports, __webpack_require__) { "use strict"; /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ // css base code, injected by the css-loader module.exports = function (useSourceMap) { var list = []; // return the list of modules as css string list.toString = function toString() { return this.map(function (item) { var content = cssWithMappingToString(item, useSourceMap); if (item[2]) { return '@media ' + item[2] + '{' + content + '}'; } else { return content; } }).join(''); }; // import a list of modules into the list list.i = function (modules, mediaQuery) { if (typeof modules === 'string') { modules = [[null, modules, '']]; } var alreadyImportedModules = {}; for (var i = 0; i < this.length; i++) { var id = this[i][0]; if (id != null) { alreadyImportedModules[id] = true; } } for (i = 0; i < modules.length; i++) { var item = modules[i]; // skip already imported module // this implementation is not 100% perfect for weird media query combinations // when a module is imported multiple times with different media queries. // I hope this will never occur (Hey this way we have smaller bundles) if (item[0] == null || !alreadyImportedModules[item[0]]) { if (mediaQuery && !item[2]) { item[2] = mediaQuery; } else if (mediaQuery) { item[2] = '(' + item[2] + ') and (' + mediaQuery + ')'; } list.push(item); } } }; return list; }; function cssWithMappingToString(item, useSourceMap) { var content = item[1] || ''; var cssMapping = item[3]; if (!cssMapping) { return content; } if (useSourceMap && typeof btoa === 'function') { var sourceMapping = toComment(cssMapping); var sourceURLs = cssMapping.sources.map(function (source) { return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'; }); return [content].concat(sourceURLs).concat([sourceMapping]).join('\n'); } return [content].join('\n'); } // Adapted from convert-source-map (MIT) function toComment(sourceMap) { // eslint-disable-next-line no-undef var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))); var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64; return '/*# ' + data + ' */'; } /***/ }), /***/ 242: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a <style> tag // load the styles var content = __webpack_require__(327); if(content.__esModule) content = content.default; if(typeof content === 'string') content = [[module.i, content, '']]; if(content.locals) module.exports = content.locals; // add the styles to the DOM var add = __webpack_require__(26).default var update = add("0209d4f1", content, false, {}); // Hot Module Replacement if(false) {} /***/ }), /***/ 26: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "default", function() { return /* binding */ addStylesClient; }); // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js /** * Translates the list format produced by css-loader into something * easier to manipulate. */ function listToStyles (parentId, list) { var styles = [] var newStyles = {} for (var i = 0; i < list.length; i++) { var item = list[i] var id = item[0] var css = item[1] var media = item[2] var sourceMap = item[3] var part = { id: parentId + ':' + i, css: css, media: media, sourceMap: sourceMap } if (!newStyles[id]) { styles.push(newStyles[id] = { id: id, parts: [part] }) } else { newStyles[id].parts.push(part) } } return styles } // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js /* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra Modified by Evan You @yyx990803 */ var hasDocument = typeof document !== 'undefined' if (typeof DEBUG !== 'undefined' && DEBUG) { if (!hasDocument) { throw new Error( 'vue-style-loader cannot be used in a non-browser environment. ' + "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment." ) } } /* type StyleObject = { id: number; parts: Array<StyleObjectPart> } type StyleObjectPart = { css: string; media: string; sourceMap: ?string } */ var stylesInDom = {/* [id: number]: { id: number, refs: number, parts: Array<(obj?: StyleObjectPart) => void> } */} var head = hasDocument && (document.head || document.getElementsByTagName('head')[0]) var singletonElement = null var singletonCounter = 0 var isProduction = false var noop = function () {} var options = null var ssrIdKey = 'data-vue-ssr-id' // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> // tags it will allow on a page var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase()) function addStylesClient (parentId, list, _isProduction, _options) { isProduction = _isProduction options = _options || {} var styles = listToStyles(parentId, list) addStylesToDom(styles) return function update (newList) { var mayRemove = [] for (var i = 0; i < styles.length; i++) { var item = styles[i] var domStyle = stylesInDom[item.id] domStyle.refs-- mayRemove.push(domStyle) } if (newList) { styles = listToStyles(parentId, newList) addStylesToDom(styles) } else { styles = [] } for (var i = 0; i < mayRemove.length; i++) { var domStyle = mayRemove[i] if (domStyle.refs === 0) { for (var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j]() } delete stylesInDom[domStyle.id] } } } } function addStylesToDom (styles /* Array<StyleObject> */) { for (var i = 0; i < styles.length; i++) { var item = styles[i] var domStyle = stylesInDom[item.id] if (domStyle) { domStyle.refs++ for (var j = 0; j < domStyle.parts.length; j++) { domStyle.parts[j](item.parts[j]) } for (; j < item.parts.length; j++) { domStyle.parts.push(addStyle(item.parts[j])) } if (domStyle.parts.length > item.parts.length) { domStyle.parts.length = item.parts.length } } else { var parts = [] for (var j = 0; j < item.parts.length; j++) { parts.push(addStyle(item.parts[j])) } stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts } } } } function createStyleElement () { var styleElement = document.createElement('style') styleElement.type = 'text/css' head.appendChild(styleElement) return styleElement } function addStyle (obj /* StyleObjectPart */) { var update, remove var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]') if (styleElement) { if (isProduction) { // has SSR styles and in production mode. // simply do nothing. return noop } else { // has SSR styles but in dev mode. // for some reason Chrome can't handle source map in server-rendered // style tags - source maps in <style> only works if the style tag is // created and inserted dynamically. So we remove the server rendered // styles and inject new ones. styleElement.parentNode.removeChild(styleElement) } } if (isOldIE) { // use singleton mode for IE9. var styleIndex = singletonCounter++ styleElement = singletonElement || (singletonElement = createStyleElement()) update = applyToSingletonTag.bind(null, styleElement, styleIndex, false) remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true) } else { // use multi-style-tag mode in all other cases styleElement = createStyleElement() update = applyToTag.bind(null, styleElement) remove = function () { styleElement.parentNode.removeChild(styleElement) } } update(obj) return function updateStyle (newObj /* StyleObjectPart */) { if (newObj) { if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) { return } update(obj = newObj) } else { remove() } } } var replaceText = (function () { var textStore = [] return function (index, replacement) { textStore[index] = replacement return textStore.filter(Boolean).join('\n') } })() function applyToSingletonTag (styleElement, index, remove, obj) { var css = remove ? '' : obj.css if (styleElement.styleSheet) { styleElement.styleSheet.cssText = replaceText(index, css) } else { var cssNode = document.createTextNode(css) var childNodes = styleElement.childNodes if (childNodes[index]) styleElement.removeChild(childNodes[index]) if (childNodes.length) { styleElement.insertBefore(cssNode, childNodes[index]) } else { styleElement.appendChild(cssNode) } } } function applyToTag (styleElement, obj) { var css = obj.css var media = obj.media var sourceMap = obj.sourceMap if (media) { styleElement.setAttribute('media', media) } if (options.ssrId) { styleElement.setAttribute(ssrIdKey, obj.id) } if (sourceMap) { // https://developer.chrome.com/devtools/docs/javascript-debugging // this makes source maps inside style tags work properly in Chrome css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */' // http://stackoverflow.com/a/26603875 css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */' } if (styleElement.styleSheet) { styleElement.styleSheet.cssText = css } else { while (styleElement.firstChild) { styleElement.removeChild(styleElement.firstChild) } styleElement.appendChild(document.createTextNode(css)) } } /***/ }), /***/ 27: /***/ (function(module, exports) { module.exports = false; /***/ }), /***/ 28: /***/ (function(module, exports, __webpack_require__) { // optional / simple context binding var aFunction = __webpack_require__(41); module.exports = function (fn, that, length) { aFunction(fn); if (that === undefined) return fn; switch (length) { case 1: return function (a) { return fn.call(that, a); }; case 2: return function (a, b) { return fn.call(that, a, b); }; case 3: return function (a, b, c) { return fn.call(that, a, b, c); }; } return function (/* ...args */) { return fn.apply(that, arguments); }; }; /***/ }), /***/ 29: /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(4); var document = __webpack_require__(0).document; // typeof document.createElement is 'object' in old IE var is = isObject(document) && isObject(document.createElement); module.exports = function (it) { return is ? document.createElement(it) : {}; }; /***/ }), /***/ 3: /***/ (function(module, exports, __webpack_require__) { var isObject = __webpack_require__(4); module.exports = function (it) { if (!isObject(it)) throw TypeError(it + ' is not an object!'); return it; }; /***/ }), /***/ 31: /***/ (function(module, exports, __webpack_require__) { // 7.1.15 ToLength var toInteger = __webpack_require__(19); var min = Math.min; module.exports = function (it) { return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 }; /***/ }), /***/ 326: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_select_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(242); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_select_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_select_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); /* unused harmony reexport * */ /***/ }), /***/ 327: /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(23)(false); // Module exports.push([module.i, ".au-size-mini{height:20px;line-height:20px;font-size:10px}.au-size-small{height:24px;line-height:24px;font-size:12px}.au-size-normal{height:32px;line-height:32px;font-size:14px}.au-size-large{height:36px;line-height:36px;font-size:14px}.au-size-mini-bordered{height:20px;line-height:18px;font-size:10px}.au-size-small-bordered{height:24px;line-height:22px;font-size:12px}.au-size-normal-bordered{height:32px;line-height:30px;font-size:14px}.au-size-large-bordered{height:36px;line-height:34px;font-size:14px}.au-sizegap-mini{top:24px}.au-sizegap-small{top:28px}.au-sizegap-normal{top:36px}.au-sizegap-large{top:40px}.au-form-label{display:block;margin-bottom:8px;font-size:14px;line-height:14px}.au-form-label-inline{display:inline-block;margin-right:8px;font-size:14px;text-align:right}.au-form-warning{margin-top:8px;font-size:12px;line-height:12px}.au-select{position:relative;width:auto;display:inline-block;text-align:left}.au-select-core-container{position:relative;outline:none}.au-select-core{position:relative;display:inline-block;padding:0 12px;padding-right:26px;width:100%;border-width:1px;border-style:solid;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:\"Helvetica Neue\",Helvetica,\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft YaHei\",\"微软雅黑\",Arial,sans-serif;font-size:14px;outline:none;user-select:none;cursor:default}.au-select-arrow{display:inline-block;position:absolute;height:18px;top:50%;margin-top:-9px;right:8px;font-size:18px}.au-select-option-scroller{width:100%;max-height:237px}.au-select-option{outline:none}.au-select-option>li{height:28px;padding:0 12px;margin:4px 0;line-height:28px;font-size:14px;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;cursor:pointer}.au-select-option .empty-item{cursor:default}.au-select-multiple{line-height:inherit}.au-select-multiple li{position:relative;float:left;max-width:100%;margin-right:12px;padding-right:14px;line-height:inherit;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.au-select-multiple:after{content:'';clear:both;display:block}.au-select-close-icon{position:absolute;top:6px;right:0;cursor:pointer}\n", ""]); /***/ }), /***/ 34: /***/ (function(module, exports, __webpack_require__) { module.exports = !__webpack_require__(1) && !__webpack_require__(6)(function () { return Object.defineProperty(__webpack_require__(29)('div'), 'a', { get: function () { return 7; } }).a != 7; }); /***/ }), /***/ 387: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, "default", function() { return /* reexport */ src_select; }); // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/admin-ui/src/components/select/src/select.vue?vue&type=template&id=8a7f0ec0& var render = function() { var _obj var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "au-select au-theme-color--base-3", style: { display: _vm.fullWidth ? "block" : "" } }, [ _c( "form-item", { attrs: { label: _vm.label, labelWidth: _vm.labelWidth, inline: _vm.inline, tips: _vm.tips, size: _vm.size, middle: _vm.inline, warnings: _vm.warnings || _vm.localWarnings } }, [ _c( "au-popover", { ref: "popover", attrs: { trigger: "click", placement: "bottom left", disabled: _vm.disabled || _vm.loading, hideOnBlur: "", plain: "" }, on: { hide: function($event) { _vm.popoverVisibal = false }, show: function($event) { _vm.popoverVisibal = true } }, nativeOn: { keyup: [ function($event) { if ( !$event.type.indexOf("key") && _vm._k($event.keyCode, "down", 40, $event.key, [ "Down", "ArrowDown" ]) ) { return null } return _vm.optionsDownPress.apply(null, arguments) }, function($event) { if ( !$event.type.indexOf("key") && _vm._k($event.keyCode, "up", 38, $event.key, [ "Up", "ArrowUp" ]) ) { return null } return _vm.optionsUpPress.apply(null, arguments) }, function($event) { if ( !$event.type.indexOf("key") && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter") ) { return null } return _vm.optionsEnterPress.apply(null, arguments) }, function($event) { if ( !$event.type.indexOf("key") && _vm._k($event.keyCode, "esc", 27, $event.key, [ "Esc", "Escape" ]) ) { return null } return _vm.optionsEscPress.apply(null, arguments) } ] } }, [ _c( "div", { ref: "coreContainer", class: "au-select-core-container au-size-" + _vm.size, style: { width: _vm.width, maxWidth: _vm.maxWidth, minWidth: _vm.minWidth }, attrs: { slot: "target" }, slot: "target" }, [ _c( "div", { ref: "core", staticClass: "au-select-core au-theme-border-radius--small", class: ((_obj = {}), (_obj["au-size-" + _vm.size + "-bordered"] = true), (_obj[ "au-theme-background-color--base-12" ] = !_vm.disabled), (_obj["au-theme-background-color--base-11"] = _vm.disabled), (_obj["au-theme-border-color--base-10"] = _vm.disabled || (!_vm.hasWarnings && !_vm.active)), (_obj["au-theme-border-color--primary"] = !_vm.disabled && !_vm.hasWarnings && _vm.active), (_obj["au-theme-border-color--danger"] = _vm.hasWarnings), (_obj["au-theme-box-shadow--primary"] = !_vm.disabled && _vm.active && !_vm.hasWarnings), (_obj["au-theme-box-shadow--danger"] = !_vm.disabled && _vm.active && _vm.hasWarnings), _obj), style: { cursor: _vm.disabled ? "not-allowed" : "default" }, attrs: { tabindex: "0" }, on: { focus: _vm.coreFocus, blur: _vm.coreBlur, keyup: function($event) { if ( !$event.type.indexOf("key") && _vm._k( $event.keyCode, "enter", 13, $event.key, "Enter" ) ) { return null } return _vm.enterPress.apply(null, arguments) } } }, [ _c( "ul", { ref: "selectMultiple", staticClass: "au-select-multiple" }, [ _c( "li", { directives: [ { name: "show", rawName: "v-show", value: !_vm.selectedOptions.length, expression: "!selectedOptions.length" } ], staticClass: "au-select-placeholder au-theme-color--base-8", style: { opacity: _vm.placeholder ? 1 : 0 } }, [_vm._v(_vm._s(_vm.placeholder || "placeholder"))] ), _vm._v(" "), !_vm.multiple && _vm.selectedOptions.length ? _c("li", [ _vm._v(_vm._s(_vm.selectedOptions[0].text)) ]) : _vm._l(_vm.selectedOptions, function(option, i) { return _c("li", { key: i }, [ _c("span", [_vm._v(_vm._s(option.text))]), _vm._v(" "), _c( "span", { staticClass: "\n au-select-close-icon\n au-theme-color--base-10\n au-theme-hover-color--danger\n ", on: { click: function($event) { $event.stopPropagation() return _vm.deleteSelectedOption(i) } } }, [ _c("au-icon", { attrs: { type: "times" } }) ], 1 ) ]) }) ], 2 ), _vm._v(" "), _c("au-icon", { staticClass: "au-select-arrow", class: { "au-theme-color--primary": !_vm.disabled && _vm.active }, attrs: { type: "caret-down" } }) ], 1 ) ] ), _vm._v(" "), _c( "au-scroller", { staticClass: "au-select-option-scroller", attrs: { slot: "content" }, slot: "content" }, [ _c( "ul", { ref: "options", staticClass: "au-select-option" }, [ _c( "li", { directives: [ { name: "show", rawName: "v-show", value: !_vm.options.length, expression: "!options.length" } ], staticClass: "empty-item au-theme-color--base-8" }, [_vm._v("没有选项")] ), _vm._v(" "), _vm._l(_vm.options, function(option, i) { return _c( "li", { key: i, class: { "au-theme-color--primary": _vm.isSelected( option.value ), "au-theme-hover-background-color--base-11": !_vm.isSelected(option.value) && i !== _vm.tempSelectIndex, "au-theme-background-color--primary-bottom": i === _vm.tempSelectIndex }, on: { click: function($event) { $event.stopPropagation() return _vm.select(option, $event) } } }, [_vm._v(_vm._s(option.text))] ) }) ], 2 ) ] ) ], 1 ) ], 1 ) ], 1 ) } var staticRenderFns = [] render._withStripped = true // CONCATENATED MODULE: ./src/admin-ui/src/components/select/src/select.vue?vue&type=template&id=8a7f0ec0& // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js var es7_array_includes = __webpack_require__(164); // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js var es6_string_includes = __webpack_require__(186); // EXTERNAL MODULE: external "admin-ui/dist/lib/icon" var icon_ = __webpack_require__(54); var icon_default = /*#__PURE__*/__webpack_require__.n(icon_); // EXTERNAL MODULE: external "admin-ui/dist/lib/scroller" var scroller_ = __webpack_require__(124); var scroller_default = /*#__PURE__*/__webpack_require__.n(scroller_); // EXTERNAL MODULE: external "admin-ui/dist/lib/popover" var popover_ = __webpack_require__(176); var popover_default = /*#__PURE__*/__webpack_require__.n(popover_); // EXTERNAL MODULE: external "admin-ui/dist/lib/loading" var loading_ = __webpack_require__(174); var loading_default = /*#__PURE__*/__webpack_require__.n(loading_); // EXTERNAL MODULE: external "admin-ui/dist/helpers/validator-mixin" var validator_mixin_ = __webpack_require__(95); var validator_mixin_default = /*#__PURE__*/__webpack_require__.n(validator_mixin_); // EXTERNAL MODULE: external "admin-ui/dist/helpers/form-api-mixin" var form_api_mixin_ = __webpack_require__(88); var form_api_mixin_default = /*#__PURE__*/__webpack_require__.n(form_api_mixin_); // EXTERNAL MODULE: external "admin-ui/dist/helpers/dom" var dom_ = __webpack_require__(40); // EXTERNAL MODULE: ./src/admin-ui/src/helpers/form-item.vue + 4 modules var form_item = __webpack_require__(70); // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/admin-ui/src/components/select/src/select.vue?vue&type=script&lang=js& // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // /* harmony default export */ var selectvue_type_script_lang_js_ = ({ name: 'au-select', mixins: [validator_mixin_default.a, form_api_mixin_default.a], components: { AuIcon: icon_default.a, AuScroller: scroller_default.a, FormItem: form_item["default"], AuPopover: popover_default.a }, created: function created() { this.localValueToSelectedOptions(); }, mounted: function mounted() { if (this.multiple && !(this.value instanceof Array)) { console.error('Admin UI@au-select@ value should be Array if multiple selecting allowed.'); } this.load(); this.multiple && this.$nextTick(this.resize); }, data: function data() { return { selectedOptions: [], active: false, popoverVisibal: false, tempSelectIndex: null, scrollTop: 0, laodingIns: null }; }, props: { placeholder: { type: String }, options: { type: Array, required: true }, multiple: { type: Boolean, default: false }, fullWidth: Boolean, width: String, maxWidth: String, minWidth: String, loading: Boolean }, watch: { localValue: function localValue() { this.localValueToSelectedOptions(); this.input(); this.change(); this.$nextTick(this.reposPopup); }, options: { deep: true, handler: function handler(v) { this.localValueToSelectedOptions(); } }, popoverVisibal: function popoverVisibal(v) { if (!v) this.tempSelectIndex = null; if (v) { this.$refs.options.style.minWidth = this.$refs.core.getBoundingClientRect().width - 2 + 'px'; } }, tempSelectIndex: function tempSelectIndex(v) { this.updateScrollTop(); }, loading: function loading() { this.load(); } }, methods: { deleteSelectedOption: function deleteSelectedOption(index) { this.selectedOptions.splice(index, 1); this.localValue.splice(index, 1); this.multiple && this.$nextTick(this.resize); }, select: function select(option, e, silent) { var _this = this; if (this.multiple) { if (!this.localValue.includes(option.value)) { this.localValue.push(option.value); } else { this.localValue.splice(this.localValue.indexOf(option.value), 1); } this.$nextTick(this.resize); } else { if (this.localValue !== option.value) { this.selectedOptions = [option]; this.localValue = option.value; } } if (!this.multiple) { this.$refs.popover.hide(); this.$nextTick(function (_) { return _this.$refs.core.focus(); }); } this.active = false; if (!silent) this.$emit('select', option, e); }, resize: function resize() { var height = Object(dom_["getElementSize"])(this.$refs.selectMultiple).height; this.$refs.coreContainer.style.height = height + 2 + 'px'; this.$refs.core.style.height = height + 2 + 'px'; }, localValueToSelectedOptions: function localValueToSelectedOptions() { var options = this.options, localValue = this.localValue; var res = []; var findSelectedOptionByValue = function findSelectedOptionByValue(value, options) { for (var i = 0; i < options.length; i++) { if (options[i].value === value) { return options[i]; } } }; if (localValue instanceof Array) { for (var i = 0; i < localValue.length; i++) { var option = findSelectedOptionByValue(localValue[i], options); if (option) res.push(option); } } else { var _option = findSelectedOptionByValue(localValue, options); if (_option) res.push(_option); } this.selectedOptions = res; }, isSelected: function isSelected(value) { return this.multiple ? this.localValue.includes(value) : this.localValue === value; }, coreFocus: function coreFocus() { this.active = true; // this.$refs.popover.show() this.$emit('focus', this.localValue); }, coreBlur: function coreBlur() { if (this.active) this.active = false; this.$emit('blur', this.localValue); }, enterPress: function enterPress() { if (this.active) this.$refs.popover.show(); }, optionsDownPress: function optionsDownPress() { if (this.tempSelectIndex === null) this.tempSelectIndex = 0;else if (this.tempSelectIndex < this.options.length - 1) this.tempSelectIndex++; }, optionsUpPress: function optionsUpPress() { if (this.tempSelectIndex === null) this.tempSelectIndex = this.options.length - 1;else if (this.tempSelectIndex > 0) this.tempSelectIndex--; }, optionsEnterPress: function optionsEnterPress() { if (this.tempSelectIndex !== null) { this.select(this.options[this.tempSelectIndex]); } }, optio