@britecore/bc-design-system 3.31.4 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/actions-failure-dialog.js +8 -8
- package/lib/alert.js +8 -8
- package/lib/autocomplete.js +457 -888
- package/lib/badge.js +8 -8
- package/lib/breadcrumb-item.js +11 -10
- package/lib/breadcrumb.js +99 -25
- package/lib/breakpoint.js +16 -16
- package/lib/button-group.js +8 -8
- package/lib/button-link.js +10 -22
- package/lib/button.js +8 -8
- package/lib/card.js +8 -8
- package/lib/cascader-panel.js +125 -826
- package/lib/cascader.js +905 -1253
- package/lib/checkbox-button.js +8 -8
- package/lib/checkbox-group.js +8 -8
- package/lib/checkbox.js +8 -8
- package/lib/col.js +4 -4
- package/lib/collapse-item.js +18 -18
- package/lib/collapse.js +8 -8
- package/lib/data-filter.js +8 -8
- package/lib/data-table-action-buttons.js +26 -26
- package/lib/data-table-cell.js +10 -10
- package/lib/data-table-collapsible-row.js +8 -8
- package/lib/data-table-column-header.js +6 -6
- package/lib/data-table-column.js +6 -6
- package/lib/data-table-row.js +16 -16
- package/lib/data-table.js +142 -132
- package/lib/date-display.js +12 -12
- package/lib/date-picker.js +3204 -3641
- package/lib/dialog.js +59 -60
- package/lib/dropdown-item.js +8 -8
- package/lib/dropdown-menu.js +314 -315
- package/lib/dropdown.js +35 -35
- package/lib/element-ui.common.js +1797 -2027
- package/lib/filter-badges.js +16 -16
- package/lib/filter-button.js +8 -8
- package/lib/filters-display.js +93 -93
- package/lib/form-filter-item.js +65 -65
- package/lib/form-filter.js +77 -77
- package/lib/form-item.js +8 -8
- package/lib/form.js +8 -8
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +8 -8
- package/lib/inline-editor.js +16 -16
- package/lib/inline-status.js +8 -8
- package/lib/input-number.js +55 -55
- package/lib/input-password.js +42 -42
- package/lib/input-phone-number.js +26 -26
- package/lib/input-tag.js +10 -10
- package/lib/input-validation-code.js +25 -25
- package/lib/input.js +15 -16
- package/lib/list-group-item.js +8 -8
- package/lib/list-group.js +8 -8
- package/lib/loading-wrapper.js +8 -8
- package/lib/loading.js +76 -77
- package/lib/message-box.js +127 -128
- package/lib/message.js +72 -73
- package/lib/notification.js +69 -70
- package/lib/option-group.js +8 -8
- package/lib/option.js +8 -8
- package/lib/pagination.js +641 -996
- package/lib/popover.js +315 -316
- package/lib/progress.js +8 -8
- package/lib/radio-button.js +8 -8
- package/lib/radio-filter.js +57 -57
- package/lib/radio-group.js +10 -10
- package/lib/radio.js +8 -8
- package/lib/row.js +4 -4
- package/lib/search.js +14 -9
- package/lib/select-filter.js +65 -65
- package/lib/select.js +224 -574
- package/lib/slider.js +895 -795
- package/lib/spinner.js +8 -8
- package/lib/spreadsheet-preview.js +10 -10
- package/lib/step.js +8 -8
- package/lib/steps.js +10 -10
- package/lib/switch.js +12 -12
- package/lib/tab-pane.js +8 -8
- package/lib/table-column.js +41 -41
- package/lib/table.js +2485 -2385
- package/lib/tabs.js +104 -104
- package/lib/tag.js +8 -8
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/select-dropdown.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/time-picker.js +2269 -2706
- package/lib/time-select.js +1459 -1894
- package/lib/timeline-item.js +8 -8
- package/lib/timeline.js +6 -6
- package/lib/tooltip.js +563 -463
- package/lib/transfer.js +167 -167
- package/lib/tree.js +80 -80
- package/lib/upload.js +167 -168
- package/lib/utils/scrollbar-width.js +0 -1
- package/package.json +1 -1
- package/packages/autocomplete/src/autocomplete-suggestions.vue +9 -12
- package/packages/breadcrumb/src/breadcrumb-item.vue +1 -0
- package/packages/breadcrumb/src/breadcrumb.vue +48 -5
- package/packages/button-link/src/main.vue +5 -14
- package/packages/cascader/src/cascader.vue +29 -27
- package/packages/cascader-panel/src/cascader-menu.vue +13 -14
- package/packages/cascader-panel/src/cascader-panel.vue +1 -1
- package/packages/data-table/src/DataTable.vue +6 -1
- package/packages/date-picker/src/basic/time-spinner.vue +42 -51
- package/packages/date-picker/src/panel/time-select.vue +3 -6
- package/packages/search/src/main.vue +3 -0
- package/packages/select/src/select.vue +13 -18
- package/packages/table/src/filter-panel.vue +3 -3
- package/packages/theme-chalk/lib/autocomplete.css +1 -1
- package/packages/theme-chalk/lib/breadcrumb.css +1 -1
- package/packages/theme-chalk/lib/cascader-panel.css +1 -1
- package/packages/theme-chalk/lib/cascader.css +1 -1
- package/packages/theme-chalk/lib/date-picker.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/input-number.css +1 -1
- package/packages/theme-chalk/lib/input.css +1 -1
- package/packages/theme-chalk/lib/message-box.css +1 -1
- package/packages/theme-chalk/lib/pagination.css +1 -1
- package/packages/theme-chalk/lib/select-dropdown.css +1 -1
- package/packages/theme-chalk/lib/select.css +1 -1
- package/packages/theme-chalk/lib/slider.css +1 -1
- package/packages/theme-chalk/lib/table-column.css +1 -1
- package/packages/theme-chalk/lib/time-picker.css +1 -1
- package/packages/theme-chalk/lib/time-select.css +1 -1
- package/packages/theme-chalk/lib/transfer.css +1 -1
- package/packages/theme-chalk/src/autocomplete.scss +0 -1
- package/packages/theme-chalk/src/breadcrumb.scss +12 -3
- package/packages/theme-chalk/src/cascader-panel.scss +1 -1
- package/packages/theme-chalk/src/cascader.scss +1 -0
- package/packages/theme-chalk/src/common/utilities.scss +7 -0
- package/packages/theme-chalk/src/common/var.json +2 -2
- package/packages/theme-chalk/src/common/var.scss +2 -2
- package/packages/theme-chalk/src/data-table/data-table.scss +7 -1
- package/packages/theme-chalk/src/date-picker/time-spinner.scss +0 -4
- package/packages/theme-chalk/src/date-picker.scss +1 -2
- package/packages/theme-chalk/src/index.scss +0 -1
- package/packages/theme-chalk/src/input.scss +0 -1
- package/packages/theme-chalk/src/mixins/mixins.scss +14 -48
- package/packages/theme-chalk/src/select-dropdown.scss +1 -1
- package/packages/theme-chalk/src/select.scss +0 -1
- package/packages/theme-chalk/src/table-column.scss +2 -1
- package/packages/theme-chalk/src/time-picker.scss +0 -1
- package/packages/theme-chalk/src/time-select.scss +1 -1
- package/packages/tooltip/index.js +4 -0
- package/packages/tooltip/src/directive.js +46 -0
- package/packages/tooltip/src/main.js +5 -4
- package/src/index.js +1 -4
- package/src/utils/scrollbar-width.js +0 -1
- package/lib/scrollbar.js +0 -1134
- package/lib/theme-chalk/scrollbar.css +0 -1
- package/packages/scrollbar/index.js +0 -8
- package/packages/scrollbar/src/bar.js +0 -88
- package/packages/scrollbar/src/main.js +0 -142
- package/packages/scrollbar/src/util.js +0 -34
- package/packages/theme-chalk/lib/scrollbar.css +0 -1
- package/packages/theme-chalk/src/scrollbar.scss +0 -71
package/lib/slider.js
CHANGED
|
@@ -61,7 +61,7 @@ module.exports =
|
|
|
61
61
|
/******/ __webpack_require__.p = "/dist/";
|
|
62
62
|
/******/
|
|
63
63
|
/******/ // Load entry module and return exports
|
|
64
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
64
|
+
/******/ return __webpack_require__(__webpack_require__.s = 364);
|
|
65
65
|
/******/ })
|
|
66
66
|
/************************************************************************/
|
|
67
67
|
/******/ ({
|
|
@@ -226,52 +226,6 @@ var isDefined = exports.isDefined = function isDefined(val) {
|
|
|
226
226
|
"use strict";
|
|
227
227
|
|
|
228
228
|
|
|
229
|
-
exports.__esModule = true;
|
|
230
|
-
|
|
231
|
-
exports.default = function () {
|
|
232
|
-
if (_vue2.default.prototype.$isServer) return 0;
|
|
233
|
-
if (scrollBarWidth !== undefined) return scrollBarWidth;
|
|
234
|
-
|
|
235
|
-
var outer = document.createElement('div');
|
|
236
|
-
outer.className = 'el-scrollbar__wrap';
|
|
237
|
-
outer.style.visibility = 'hidden';
|
|
238
|
-
outer.style.width = '100px';
|
|
239
|
-
outer.style.position = 'absolute';
|
|
240
|
-
outer.style.top = '-9999px';
|
|
241
|
-
document.body.appendChild(outer);
|
|
242
|
-
|
|
243
|
-
var widthNoScroll = outer.offsetWidth;
|
|
244
|
-
outer.style.overflow = 'scroll';
|
|
245
|
-
|
|
246
|
-
var inner = document.createElement('div');
|
|
247
|
-
inner.style.width = '100%';
|
|
248
|
-
outer.appendChild(inner);
|
|
249
|
-
|
|
250
|
-
var widthWithScroll = inner.offsetWidth;
|
|
251
|
-
outer.parentNode.removeChild(outer);
|
|
252
|
-
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
253
|
-
|
|
254
|
-
return scrollBarWidth;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
var _vue = __webpack_require__(1);
|
|
258
|
-
|
|
259
|
-
var _vue2 = _interopRequireDefault(_vue);
|
|
260
|
-
|
|
261
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
262
|
-
|
|
263
|
-
var scrollBarWidth = void 0;
|
|
264
|
-
|
|
265
|
-
;
|
|
266
|
-
|
|
267
|
-
/***/ }),
|
|
268
|
-
|
|
269
|
-
/***/ 12:
|
|
270
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
271
|
-
|
|
272
|
-
"use strict";
|
|
273
|
-
|
|
274
|
-
|
|
275
229
|
exports.__esModule = true;
|
|
276
230
|
/**
|
|
277
231
|
* Show migrating guide in browser console.
|
|
@@ -337,84 +291,7 @@ exports.default = {
|
|
|
337
291
|
|
|
338
292
|
/***/ }),
|
|
339
293
|
|
|
340
|
-
/***/
|
|
341
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
342
|
-
|
|
343
|
-
"use strict";
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
exports.__esModule = true;
|
|
347
|
-
|
|
348
|
-
var _inputNumber = __webpack_require__(132);
|
|
349
|
-
|
|
350
|
-
var _inputNumber2 = _interopRequireDefault(_inputNumber);
|
|
351
|
-
|
|
352
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
353
|
-
|
|
354
|
-
/* istanbul ignore next */
|
|
355
|
-
_inputNumber2.default.install = function (Vue) {
|
|
356
|
-
Vue.component(_inputNumber2.default.name, _inputNumber2.default);
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
exports.default = _inputNumber2.default;
|
|
360
|
-
|
|
361
|
-
/***/ }),
|
|
362
|
-
|
|
363
|
-
/***/ 132:
|
|
364
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
365
|
-
|
|
366
|
-
"use strict";
|
|
367
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
368
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__ = __webpack_require__(91);
|
|
369
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__);
|
|
370
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
371
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4bdf4164_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_number_vue__ = __webpack_require__(133);
|
|
372
|
-
var normalizeComponent = __webpack_require__(0)
|
|
373
|
-
/* script */
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/* template */
|
|
377
|
-
|
|
378
|
-
/* template functional */
|
|
379
|
-
var __vue_template_functional__ = false
|
|
380
|
-
/* styles */
|
|
381
|
-
var __vue_styles__ = null
|
|
382
|
-
/* scopeId */
|
|
383
|
-
var __vue_scopeId__ = null
|
|
384
|
-
/* moduleIdentifier (server only) */
|
|
385
|
-
var __vue_module_identifier__ = null
|
|
386
|
-
var Component = normalizeComponent(
|
|
387
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue___default.a,
|
|
388
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4bdf4164_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_number_vue__["a" /* default */],
|
|
389
|
-
__vue_template_functional__,
|
|
390
|
-
__vue_styles__,
|
|
391
|
-
__vue_scopeId__,
|
|
392
|
-
__vue_module_identifier__
|
|
393
|
-
)
|
|
394
|
-
|
|
395
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
/***/ }),
|
|
399
|
-
|
|
400
|
-
/***/ 133:
|
|
401
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
402
|
-
|
|
403
|
-
"use strict";
|
|
404
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
405
|
-
'el-input-number',
|
|
406
|
-
_vm.inputNumberSize ? 'el-input-number--' + _vm.inputNumberSize : '',
|
|
407
|
-
{ 'is-disabled': _vm.inputNumberDisabled },
|
|
408
|
-
{ 'is-without-controls': !_vm.controls },
|
|
409
|
-
{ 'is-controls-right': _vm.controlsAtRight }
|
|
410
|
-
],on:{"dragstart":function($event){$event.preventDefault();}}},[(_vm.controls)?_c('span',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.decrease),expression:"decrease"},{name:"data-element",rawName:"v-data-element:button",value:({ dataElement: _vm.dataElement ? (_vm.dataElement + "-decrease") : _vm.dataElement }),expression:"{ dataElement: dataElement ? `${dataElement}-decrease` : dataElement }",arg:"button"}],staticClass:"el-input-number__decrease",class:{'is-disabled': _vm.minDisabled},attrs:{"role":"button"},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.decrease($event)}}},[_c('fa-icon',{attrs:{"icon":_vm.controlsAtRight ? ['fal', 'chevron-down'] : ['fal', 'minus']}})],1):_vm._e(),(_vm.controls)?_c('span',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.increase),expression:"increase"},{name:"data-element",rawName:"v-data-element:button",value:({ dataElement: _vm.dataElement ? (_vm.dataElement + "-increase") : _vm.dataElement }),expression:"{ dataElement: dataElement ? `${dataElement}-increase` : dataElement }",arg:"button"}],staticClass:"el-input-number__increase",class:{'is-disabled': _vm.maxDisabled},attrs:{"role":"button"},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.increase($event)}}},[_c('fa-icon',{attrs:{"icon":_vm.controlsAtRight ? ['fal', 'chevron-up'] : ['fal', 'plus']}})],1):_vm._e(),_c('el-input',{ref:"input",attrs:{"value":_vm.currentInputValue,"disabled":_vm.inputNumberDisabled,"size":_vm.inputNumberSize,"max":_vm.max,"min":_vm.min,"name":_vm.name,"label":_vm.label},on:{"blur":_vm.handleBlur,"focus":_vm.handleFocus,"change":_vm.handleInputChange},nativeOn:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.increase($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.decrease($event)}]}})],1)}
|
|
411
|
-
var staticRenderFns = []
|
|
412
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
413
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
414
|
-
|
|
415
|
-
/***/ }),
|
|
416
|
-
|
|
417
|
-
/***/ 14:
|
|
294
|
+
/***/ 12:
|
|
418
295
|
/***/ (function(module, exports, __webpack_require__) {
|
|
419
296
|
|
|
420
297
|
"use strict";
|
|
@@ -431,11 +308,11 @@ var _merge = __webpack_require__(8);
|
|
|
431
308
|
|
|
432
309
|
var _merge2 = _interopRequireDefault(_merge);
|
|
433
310
|
|
|
434
|
-
var _popupManager = __webpack_require__(
|
|
311
|
+
var _popupManager = __webpack_require__(15);
|
|
435
312
|
|
|
436
313
|
var _popupManager2 = _interopRequireDefault(_popupManager);
|
|
437
314
|
|
|
438
|
-
var _scrollbarWidth = __webpack_require__(
|
|
315
|
+
var _scrollbarWidth = __webpack_require__(13);
|
|
439
316
|
|
|
440
317
|
var _scrollbarWidth2 = _interopRequireDefault(_scrollbarWidth);
|
|
441
318
|
|
|
@@ -662,7 +539,129 @@ exports.PopupManager = _popupManager2.default;
|
|
|
662
539
|
|
|
663
540
|
/***/ }),
|
|
664
541
|
|
|
665
|
-
/***/
|
|
542
|
+
/***/ 128:
|
|
543
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
544
|
+
|
|
545
|
+
"use strict";
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
exports.__esModule = true;
|
|
549
|
+
|
|
550
|
+
var _inputNumber = __webpack_require__(129);
|
|
551
|
+
|
|
552
|
+
var _inputNumber2 = _interopRequireDefault(_inputNumber);
|
|
553
|
+
|
|
554
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
555
|
+
|
|
556
|
+
/* istanbul ignore next */
|
|
557
|
+
_inputNumber2.default.install = function (Vue) {
|
|
558
|
+
Vue.component(_inputNumber2.default.name, _inputNumber2.default);
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
exports.default = _inputNumber2.default;
|
|
562
|
+
|
|
563
|
+
/***/ }),
|
|
564
|
+
|
|
565
|
+
/***/ 129:
|
|
566
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
567
|
+
|
|
568
|
+
"use strict";
|
|
569
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
570
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__ = __webpack_require__(88);
|
|
571
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__);
|
|
572
|
+
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
573
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4bdf4164_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_number_vue__ = __webpack_require__(130);
|
|
574
|
+
var normalizeComponent = __webpack_require__(0)
|
|
575
|
+
/* script */
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
/* template */
|
|
579
|
+
|
|
580
|
+
/* template functional */
|
|
581
|
+
var __vue_template_functional__ = false
|
|
582
|
+
/* styles */
|
|
583
|
+
var __vue_styles__ = null
|
|
584
|
+
/* scopeId */
|
|
585
|
+
var __vue_scopeId__ = null
|
|
586
|
+
/* moduleIdentifier (server only) */
|
|
587
|
+
var __vue_module_identifier__ = null
|
|
588
|
+
var Component = normalizeComponent(
|
|
589
|
+
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_number_vue___default.a,
|
|
590
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4bdf4164_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_number_vue__["a" /* default */],
|
|
591
|
+
__vue_template_functional__,
|
|
592
|
+
__vue_styles__,
|
|
593
|
+
__vue_scopeId__,
|
|
594
|
+
__vue_module_identifier__
|
|
595
|
+
)
|
|
596
|
+
|
|
597
|
+
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
/***/ }),
|
|
601
|
+
|
|
602
|
+
/***/ 13:
|
|
603
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
604
|
+
|
|
605
|
+
"use strict";
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
exports.__esModule = true;
|
|
609
|
+
|
|
610
|
+
exports.default = function () {
|
|
611
|
+
if (_vue2.default.prototype.$isServer) return 0;
|
|
612
|
+
if (scrollBarWidth !== undefined) return scrollBarWidth;
|
|
613
|
+
|
|
614
|
+
var outer = document.createElement('div');
|
|
615
|
+
outer.style.visibility = 'hidden';
|
|
616
|
+
outer.style.width = '100px';
|
|
617
|
+
outer.style.position = 'absolute';
|
|
618
|
+
outer.style.top = '-9999px';
|
|
619
|
+
document.body.appendChild(outer);
|
|
620
|
+
|
|
621
|
+
var widthNoScroll = outer.offsetWidth;
|
|
622
|
+
outer.style.overflow = 'scroll';
|
|
623
|
+
|
|
624
|
+
var inner = document.createElement('div');
|
|
625
|
+
inner.style.width = '100%';
|
|
626
|
+
outer.appendChild(inner);
|
|
627
|
+
|
|
628
|
+
var widthWithScroll = inner.offsetWidth;
|
|
629
|
+
outer.parentNode.removeChild(outer);
|
|
630
|
+
scrollBarWidth = widthNoScroll - widthWithScroll;
|
|
631
|
+
|
|
632
|
+
return scrollBarWidth;
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
var _vue = __webpack_require__(1);
|
|
636
|
+
|
|
637
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
638
|
+
|
|
639
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
640
|
+
|
|
641
|
+
var scrollBarWidth = void 0;
|
|
642
|
+
|
|
643
|
+
;
|
|
644
|
+
|
|
645
|
+
/***/ }),
|
|
646
|
+
|
|
647
|
+
/***/ 130:
|
|
648
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
649
|
+
|
|
650
|
+
"use strict";
|
|
651
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
652
|
+
'el-input-number',
|
|
653
|
+
_vm.inputNumberSize ? 'el-input-number--' + _vm.inputNumberSize : '',
|
|
654
|
+
{ 'is-disabled': _vm.inputNumberDisabled },
|
|
655
|
+
{ 'is-without-controls': !_vm.controls },
|
|
656
|
+
{ 'is-controls-right': _vm.controlsAtRight }
|
|
657
|
+
],on:{"dragstart":function($event){$event.preventDefault();}}},[(_vm.controls)?_c('span',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.decrease),expression:"decrease"},{name:"data-element",rawName:"v-data-element:button",value:({ dataElement: _vm.dataElement ? (_vm.dataElement + "-decrease") : _vm.dataElement }),expression:"{ dataElement: dataElement ? `${dataElement}-decrease` : dataElement }",arg:"button"}],staticClass:"el-input-number__decrease",class:{'is-disabled': _vm.minDisabled},attrs:{"role":"button"},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.decrease($event)}}},[_c('fa-icon',{attrs:{"icon":_vm.controlsAtRight ? ['fal', 'chevron-down'] : ['fal', 'minus']}})],1):_vm._e(),(_vm.controls)?_c('span',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.increase),expression:"increase"},{name:"data-element",rawName:"v-data-element:button",value:({ dataElement: _vm.dataElement ? (_vm.dataElement + "-increase") : _vm.dataElement }),expression:"{ dataElement: dataElement ? `${dataElement}-increase` : dataElement }",arg:"button"}],staticClass:"el-input-number__increase",class:{'is-disabled': _vm.maxDisabled},attrs:{"role":"button"},on:{"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.increase($event)}}},[_c('fa-icon',{attrs:{"icon":_vm.controlsAtRight ? ['fal', 'chevron-up'] : ['fal', 'plus']}})],1):_vm._e(),_c('el-input',{ref:"input",attrs:{"value":_vm.currentInputValue,"disabled":_vm.inputNumberDisabled,"size":_vm.inputNumberSize,"max":_vm.max,"min":_vm.min,"name":_vm.name,"label":_vm.label},on:{"blur":_vm.handleBlur,"focus":_vm.handleFocus,"change":_vm.handleInputChange},nativeOn:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.increase($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.decrease($event)}]}})],1)}
|
|
658
|
+
var staticRenderFns = []
|
|
659
|
+
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
660
|
+
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
661
|
+
|
|
662
|
+
/***/ }),
|
|
663
|
+
|
|
664
|
+
/***/ 14:
|
|
666
665
|
/***/ (function(module, exports, __webpack_require__) {
|
|
667
666
|
|
|
668
667
|
"use strict";
|
|
@@ -674,11 +673,11 @@ var _emitter = __webpack_require__(6);
|
|
|
674
673
|
|
|
675
674
|
var _emitter2 = _interopRequireDefault(_emitter);
|
|
676
675
|
|
|
677
|
-
var _migrating = __webpack_require__(
|
|
676
|
+
var _migrating = __webpack_require__(11);
|
|
678
677
|
|
|
679
678
|
var _migrating2 = _interopRequireDefault(_migrating);
|
|
680
679
|
|
|
681
|
-
var _calcTextareaHeight = __webpack_require__(
|
|
680
|
+
var _calcTextareaHeight = __webpack_require__(27);
|
|
682
681
|
|
|
683
682
|
var _calcTextareaHeight2 = _interopRequireDefault(_calcTextareaHeight);
|
|
684
683
|
|
|
@@ -686,7 +685,7 @@ var _merge = __webpack_require__(8);
|
|
|
686
685
|
|
|
687
686
|
var _merge2 = _interopRequireDefault(_merge);
|
|
688
687
|
|
|
689
|
-
var _shared = __webpack_require__(
|
|
688
|
+
var _shared = __webpack_require__(17);
|
|
690
689
|
|
|
691
690
|
var _util = __webpack_require__(4);
|
|
692
691
|
|
|
@@ -1120,7 +1119,7 @@ exports.default = {
|
|
|
1120
1119
|
|
|
1121
1120
|
/***/ }),
|
|
1122
1121
|
|
|
1123
|
-
/***/
|
|
1122
|
+
/***/ 15:
|
|
1124
1123
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1125
1124
|
|
|
1126
1125
|
"use strict";
|
|
@@ -1332,7 +1331,7 @@ exports.default = PopupManager;
|
|
|
1332
1331
|
|
|
1333
1332
|
/***/ }),
|
|
1334
1333
|
|
|
1335
|
-
/***/
|
|
1334
|
+
/***/ 17:
|
|
1336
1335
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1337
1336
|
|
|
1338
1337
|
"use strict";
|
|
@@ -1351,14 +1350,7 @@ function isKorean(text) {
|
|
|
1351
1350
|
|
|
1352
1351
|
/***/ }),
|
|
1353
1352
|
|
|
1354
|
-
/***/
|
|
1355
|
-
/***/ (function(module, exports) {
|
|
1356
|
-
|
|
1357
|
-
module.exports = require("babel-runtime/helpers/typeof");
|
|
1358
|
-
|
|
1359
|
-
/***/ }),
|
|
1360
|
-
|
|
1361
|
-
/***/ 20:
|
|
1353
|
+
/***/ 197:
|
|
1362
1354
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1363
1355
|
|
|
1364
1356
|
"use strict";
|
|
@@ -1366,40 +1358,17 @@ module.exports = require("babel-runtime/helpers/typeof");
|
|
|
1366
1358
|
|
|
1367
1359
|
exports.__esModule = true;
|
|
1368
1360
|
|
|
1369
|
-
var
|
|
1361
|
+
var _inputNumber = __webpack_require__(128);
|
|
1370
1362
|
|
|
1371
|
-
var
|
|
1363
|
+
var _inputNumber2 = _interopRequireDefault(_inputNumber);
|
|
1372
1364
|
|
|
1373
|
-
|
|
1365
|
+
var _button = __webpack_require__(366);
|
|
1374
1366
|
|
|
1375
|
-
|
|
1376
|
-
_input2.default.install = function (Vue) {
|
|
1377
|
-
Vue.component(_input2.default.name, _input2.default);
|
|
1378
|
-
};
|
|
1367
|
+
var _button2 = _interopRequireDefault(_button);
|
|
1379
1368
|
|
|
1380
|
-
|
|
1369
|
+
var _emitter = __webpack_require__(6);
|
|
1381
1370
|
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
/***/ 200:
|
|
1385
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1386
|
-
|
|
1387
|
-
"use strict";
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
exports.__esModule = true;
|
|
1391
|
-
|
|
1392
|
-
var _inputNumber = __webpack_require__(131);
|
|
1393
|
-
|
|
1394
|
-
var _inputNumber2 = _interopRequireDefault(_inputNumber);
|
|
1395
|
-
|
|
1396
|
-
var _button = __webpack_require__(370);
|
|
1397
|
-
|
|
1398
|
-
var _button2 = _interopRequireDefault(_button);
|
|
1399
|
-
|
|
1400
|
-
var _emitter = __webpack_require__(6);
|
|
1401
|
-
|
|
1402
|
-
var _emitter2 = _interopRequireDefault(_emitter);
|
|
1371
|
+
var _emitter2 = _interopRequireDefault(_emitter);
|
|
1403
1372
|
|
|
1404
1373
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1405
1374
|
|
|
@@ -1768,7 +1737,7 @@ exports.default = {
|
|
|
1768
1737
|
|
|
1769
1738
|
/***/ }),
|
|
1770
1739
|
|
|
1771
|
-
/***/
|
|
1740
|
+
/***/ 198:
|
|
1772
1741
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1773
1742
|
|
|
1774
1743
|
"use strict";
|
|
@@ -1776,7 +1745,7 @@ exports.default = {
|
|
|
1776
1745
|
|
|
1777
1746
|
exports.__esModule = true;
|
|
1778
1747
|
|
|
1779
|
-
var _tooltip = __webpack_require__(
|
|
1748
|
+
var _tooltip = __webpack_require__(95);
|
|
1780
1749
|
|
|
1781
1750
|
var _tooltip2 = _interopRequireDefault(_tooltip);
|
|
1782
1751
|
|
|
@@ -2004,6 +1973,36 @@ exports.default = {
|
|
|
2004
1973
|
|
|
2005
1974
|
/***/ }),
|
|
2006
1975
|
|
|
1976
|
+
/***/ 2:
|
|
1977
|
+
/***/ (function(module, exports) {
|
|
1978
|
+
|
|
1979
|
+
module.exports = require("babel-runtime/helpers/typeof");
|
|
1980
|
+
|
|
1981
|
+
/***/ }),
|
|
1982
|
+
|
|
1983
|
+
/***/ 20:
|
|
1984
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1985
|
+
|
|
1986
|
+
"use strict";
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
exports.__esModule = true;
|
|
1990
|
+
|
|
1991
|
+
var _input = __webpack_require__(26);
|
|
1992
|
+
|
|
1993
|
+
var _input2 = _interopRequireDefault(_input);
|
|
1994
|
+
|
|
1995
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1996
|
+
|
|
1997
|
+
/* istanbul ignore next */
|
|
1998
|
+
_input2.default.install = function (Vue) {
|
|
1999
|
+
Vue.component(_input2.default.name, _input2.default);
|
|
2000
|
+
};
|
|
2001
|
+
|
|
2002
|
+
exports.default = _input2.default;
|
|
2003
|
+
|
|
2004
|
+
/***/ }),
|
|
2005
|
+
|
|
2007
2006
|
/***/ 21:
|
|
2008
2007
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2009
2008
|
|
|
@@ -2016,11 +2015,11 @@ var _vue = __webpack_require__(1);
|
|
|
2016
2015
|
|
|
2017
2016
|
var _vue2 = _interopRequireDefault(_vue);
|
|
2018
2017
|
|
|
2019
|
-
var _popup = __webpack_require__(
|
|
2018
|
+
var _popup = __webpack_require__(12);
|
|
2020
2019
|
|
|
2021
2020
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2022
2021
|
|
|
2023
|
-
var PopperJS = _vue2.default.prototype.$isServer ? function () {} : __webpack_require__(
|
|
2022
|
+
var PopperJS = _vue2.default.prototype.$isServer ? function () {} : __webpack_require__(29);
|
|
2024
2023
|
var stop = function stop(e) {
|
|
2025
2024
|
return e.stopPropagation();
|
|
2026
2025
|
};
|
|
@@ -2215,15 +2214,15 @@ exports.default = {
|
|
|
2215
2214
|
|
|
2216
2215
|
/***/ }),
|
|
2217
2216
|
|
|
2218
|
-
/***/
|
|
2217
|
+
/***/ 26:
|
|
2219
2218
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2220
2219
|
|
|
2221
2220
|
"use strict";
|
|
2222
2221
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
2223
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__ = __webpack_require__(
|
|
2222
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__ = __webpack_require__(14);
|
|
2224
2223
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__);
|
|
2225
2224
|
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_input_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
2226
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_09f2cd43_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__ = __webpack_require__(
|
|
2225
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_09f2cd43_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_input_vue__ = __webpack_require__(28);
|
|
2227
2226
|
var normalizeComponent = __webpack_require__(0)
|
|
2228
2227
|
/* script */
|
|
2229
2228
|
|
|
@@ -2252,7 +2251,7 @@ var Component = normalizeComponent(
|
|
|
2252
2251
|
|
|
2253
2252
|
/***/ }),
|
|
2254
2253
|
|
|
2255
|
-
/***/
|
|
2254
|
+
/***/ 27:
|
|
2256
2255
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2257
2256
|
|
|
2258
2257
|
"use strict";
|
|
@@ -2335,7 +2334,7 @@ function calcTextareaHeight(targetElement) {
|
|
|
2335
2334
|
|
|
2336
2335
|
/***/ }),
|
|
2337
2336
|
|
|
2338
|
-
/***/
|
|
2337
|
+
/***/ 28:
|
|
2339
2338
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2340
2339
|
|
|
2341
2340
|
"use strict";
|
|
@@ -2357,339 +2356,95 @@ var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
|
2357
2356
|
|
|
2358
2357
|
/***/ }),
|
|
2359
2358
|
|
|
2360
|
-
/***/
|
|
2359
|
+
/***/ 29:
|
|
2361
2360
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2362
2361
|
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2362
|
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
2363
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
2364
|
+
* @version {{version}}
|
|
2365
|
+
* @license
|
|
2366
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
2367
|
+
*
|
|
2368
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2369
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
2370
|
+
* in the Software without restriction, including without limitation the rights
|
|
2371
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2372
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
2373
|
+
* furnished to do so, subject to the following conditions:
|
|
2374
|
+
*
|
|
2375
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
2376
|
+
* copies or substantial portions of the Software.
|
|
2377
|
+
*
|
|
2378
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2379
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2380
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2381
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2382
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2383
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2384
|
+
* SOFTWARE.
|
|
2385
|
+
*/
|
|
2379
2386
|
|
|
2380
|
-
|
|
2387
|
+
//
|
|
2388
|
+
// Cross module loader
|
|
2389
|
+
// Supported: Node, AMD, Browser globals
|
|
2390
|
+
//
|
|
2391
|
+
;(function (root, factory) {
|
|
2392
|
+
if (true) {
|
|
2393
|
+
// AMD. Register as an anonymous module.
|
|
2394
|
+
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
2395
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
2396
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
2397
|
+
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
2398
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
2399
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
2400
|
+
// Node. Does not work with strict CommonJS, but
|
|
2401
|
+
// only CommonJS-like environments that support module.exports,
|
|
2402
|
+
// like Node.
|
|
2403
|
+
module.exports = factory();
|
|
2404
|
+
} else {
|
|
2405
|
+
// Browser globals (root is window)
|
|
2406
|
+
root.Popper = factory();
|
|
2407
|
+
}
|
|
2408
|
+
}(this, function () {
|
|
2381
2409
|
|
|
2382
|
-
|
|
2410
|
+
'use strict';
|
|
2383
2411
|
|
|
2384
|
-
var
|
|
2412
|
+
var root = window;
|
|
2385
2413
|
|
|
2386
|
-
|
|
2387
|
-
var
|
|
2388
|
-
|
|
2414
|
+
// default options
|
|
2415
|
+
var DEFAULTS = {
|
|
2416
|
+
// placement of the popper
|
|
2417
|
+
placement: 'bottom',
|
|
2389
2418
|
|
|
2390
|
-
|
|
2391
|
-
var trim = function trim(string) {
|
|
2392
|
-
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
2393
|
-
};
|
|
2394
|
-
/* istanbul ignore next */
|
|
2395
|
-
var camelCase = function camelCase(name) {
|
|
2396
|
-
return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
|
|
2397
|
-
return offset ? letter.toUpperCase() : letter;
|
|
2398
|
-
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
2399
|
-
};
|
|
2419
|
+
gpuAcceleration: true,
|
|
2400
2420
|
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
if (!isServer && document.addEventListener) {
|
|
2404
|
-
return function (element, event, handler) {
|
|
2405
|
-
if (element && event && handler) {
|
|
2406
|
-
element.addEventListener(event, handler, false);
|
|
2407
|
-
}
|
|
2408
|
-
};
|
|
2409
|
-
} else {
|
|
2410
|
-
return function (element, event, handler) {
|
|
2411
|
-
if (element && event && handler) {
|
|
2412
|
-
element.attachEvent('on' + event, handler);
|
|
2413
|
-
}
|
|
2414
|
-
};
|
|
2415
|
-
}
|
|
2416
|
-
}();
|
|
2421
|
+
// shift popper from its origin by the given amount of pixels (can be negative)
|
|
2422
|
+
offset: 0,
|
|
2417
2423
|
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
if (!isServer && document.removeEventListener) {
|
|
2421
|
-
return function (element, event, handler) {
|
|
2422
|
-
if (element && event) {
|
|
2423
|
-
element.removeEventListener(event, handler, false);
|
|
2424
|
-
}
|
|
2425
|
-
};
|
|
2426
|
-
} else {
|
|
2427
|
-
return function (element, event, handler) {
|
|
2428
|
-
if (element && event) {
|
|
2429
|
-
element.detachEvent('on' + event, handler);
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
|
-
}
|
|
2433
|
-
}();
|
|
2424
|
+
// the element which will act as boundary of the popper
|
|
2425
|
+
boundariesElement: 'viewport',
|
|
2434
2426
|
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
var listener = function listener() {
|
|
2438
|
-
if (fn) {
|
|
2439
|
-
fn.apply(this, arguments);
|
|
2440
|
-
}
|
|
2441
|
-
off(el, event, listener);
|
|
2442
|
-
};
|
|
2443
|
-
on(el, event, listener);
|
|
2444
|
-
};
|
|
2427
|
+
// amount of pixel used to define a minimum distance between the boundaries and the popper
|
|
2428
|
+
boundariesPadding: 5,
|
|
2445
2429
|
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
2450
|
-
if (el.classList) {
|
|
2451
|
-
return el.classList.contains(cls);
|
|
2452
|
-
} else {
|
|
2453
|
-
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
2454
|
-
}
|
|
2455
|
-
};
|
|
2430
|
+
// popper will try to prevent overflow following this order,
|
|
2431
|
+
// by default, then, it could overflow on the left and on top of the boundariesElement
|
|
2432
|
+
preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
|
|
2456
2433
|
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
if (!el) return;
|
|
2460
|
-
var curClass = el.className;
|
|
2461
|
-
var classes = (cls || '').split(' ');
|
|
2434
|
+
// the behavior used by flip to change the placement of the popper
|
|
2435
|
+
flipBehavior: 'flip',
|
|
2462
2436
|
|
|
2463
|
-
|
|
2464
|
-
var clsName = classes[i];
|
|
2465
|
-
if (!clsName) continue;
|
|
2437
|
+
arrowElement: '[x-arrow]',
|
|
2466
2438
|
|
|
2467
|
-
|
|
2468
|
-
el.classList.add(clsName);
|
|
2469
|
-
} else if (!hasClass(el, clsName)) {
|
|
2470
|
-
curClass += ' ' + clsName;
|
|
2471
|
-
}
|
|
2472
|
-
}
|
|
2473
|
-
if (!el.classList) {
|
|
2474
|
-
el.className = curClass;
|
|
2475
|
-
}
|
|
2476
|
-
};
|
|
2439
|
+
arrowOffset: 0,
|
|
2477
2440
|
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
if (!el || !cls) return;
|
|
2481
|
-
var classes = cls.split(' ');
|
|
2482
|
-
var curClass = ' ' + el.className + ' ';
|
|
2441
|
+
// list of functions used to modify the offsets before they are applied to the popper
|
|
2442
|
+
modifiers: [ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
|
|
2483
2443
|
|
|
2484
|
-
|
|
2485
|
-
var clsName = classes[i];
|
|
2486
|
-
if (!clsName) continue;
|
|
2444
|
+
modifiersIgnored: [],
|
|
2487
2445
|
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
} else if (hasClass(el, clsName)) {
|
|
2491
|
-
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
if (!el.classList) {
|
|
2495
|
-
el.className = trim(curClass);
|
|
2496
|
-
}
|
|
2497
|
-
};
|
|
2498
|
-
|
|
2499
|
-
/* istanbul ignore next */
|
|
2500
|
-
var getStyle = exports.getStyle = ieVersion < 9 ? function (element, styleName) {
|
|
2501
|
-
if (isServer) return;
|
|
2502
|
-
if (!element || !styleName) return null;
|
|
2503
|
-
styleName = camelCase(styleName);
|
|
2504
|
-
if (styleName === 'float') {
|
|
2505
|
-
styleName = 'styleFloat';
|
|
2506
|
-
}
|
|
2507
|
-
try {
|
|
2508
|
-
switch (styleName) {
|
|
2509
|
-
case 'opacity':
|
|
2510
|
-
try {
|
|
2511
|
-
return element.filters.item('alpha').opacity / 100;
|
|
2512
|
-
} catch (e) {
|
|
2513
|
-
return 1.0;
|
|
2514
|
-
}
|
|
2515
|
-
default:
|
|
2516
|
-
return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
|
|
2517
|
-
}
|
|
2518
|
-
} catch (e) {
|
|
2519
|
-
return element.style[styleName];
|
|
2520
|
-
}
|
|
2521
|
-
} : function (element, styleName) {
|
|
2522
|
-
if (isServer) return;
|
|
2523
|
-
if (!element || !styleName) return null;
|
|
2524
|
-
styleName = camelCase(styleName);
|
|
2525
|
-
if (styleName === 'float') {
|
|
2526
|
-
styleName = 'cssFloat';
|
|
2527
|
-
}
|
|
2528
|
-
try {
|
|
2529
|
-
var computed = document.defaultView.getComputedStyle(element, '');
|
|
2530
|
-
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
2531
|
-
} catch (e) {
|
|
2532
|
-
return element.style[styleName];
|
|
2533
|
-
}
|
|
2534
|
-
};
|
|
2535
|
-
|
|
2536
|
-
/* istanbul ignore next */
|
|
2537
|
-
function setStyle(element, styleName, value) {
|
|
2538
|
-
if (!element || !styleName) return;
|
|
2539
|
-
|
|
2540
|
-
if ((typeof styleName === 'undefined' ? 'undefined' : (0, _typeof3.default)(styleName)) === 'object') {
|
|
2541
|
-
for (var prop in styleName) {
|
|
2542
|
-
if (styleName.hasOwnProperty(prop)) {
|
|
2543
|
-
setStyle(element, prop, styleName[prop]);
|
|
2544
|
-
}
|
|
2545
|
-
}
|
|
2546
|
-
} else {
|
|
2547
|
-
styleName = camelCase(styleName);
|
|
2548
|
-
if (styleName === 'opacity' && ieVersion < 9) {
|
|
2549
|
-
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
2550
|
-
} else {
|
|
2551
|
-
element.style[styleName] = value;
|
|
2552
|
-
}
|
|
2553
|
-
}
|
|
2554
|
-
};
|
|
2555
|
-
|
|
2556
|
-
var isScroll = exports.isScroll = function isScroll(el, vertical) {
|
|
2557
|
-
if (isServer) return;
|
|
2558
|
-
|
|
2559
|
-
var determinedDirection = vertical !== null || vertical !== undefined;
|
|
2560
|
-
var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
|
|
2561
|
-
|
|
2562
|
-
return overflow.match(/(scroll|auto)/);
|
|
2563
|
-
};
|
|
2564
|
-
|
|
2565
|
-
var getScrollContainer = exports.getScrollContainer = function getScrollContainer(el, vertical) {
|
|
2566
|
-
if (isServer) return;
|
|
2567
|
-
|
|
2568
|
-
var parent = el;
|
|
2569
|
-
while (parent) {
|
|
2570
|
-
if ([window, document, document.documentElement].includes(parent)) {
|
|
2571
|
-
return document.documentElement;
|
|
2572
|
-
}
|
|
2573
|
-
if (isScroll(parent, vertical)) {
|
|
2574
|
-
return parent;
|
|
2575
|
-
}
|
|
2576
|
-
parent = parent.parentNode;
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
return parent;
|
|
2580
|
-
};
|
|
2581
|
-
|
|
2582
|
-
var isInContainer = exports.isInContainer = function isInContainer(el, container) {
|
|
2583
|
-
if (isServer || !el || !container) return false;
|
|
2584
|
-
|
|
2585
|
-
var elRect = el.getBoundingClientRect();
|
|
2586
|
-
var containerRect = void 0;
|
|
2587
|
-
|
|
2588
|
-
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
2589
|
-
containerRect = {
|
|
2590
|
-
top: 0,
|
|
2591
|
-
right: window.innerWidth,
|
|
2592
|
-
bottom: window.innerHeight,
|
|
2593
|
-
left: 0
|
|
2594
|
-
};
|
|
2595
|
-
} else {
|
|
2596
|
-
containerRect = container.getBoundingClientRect();
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
|
|
2600
|
-
};
|
|
2601
|
-
|
|
2602
|
-
/***/ }),
|
|
2603
|
-
|
|
2604
|
-
/***/ 30:
|
|
2605
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2606
|
-
|
|
2607
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
2608
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
2609
|
-
* @version {{version}}
|
|
2610
|
-
* @license
|
|
2611
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
2612
|
-
*
|
|
2613
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2614
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
2615
|
-
* in the Software without restriction, including without limitation the rights
|
|
2616
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2617
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
2618
|
-
* furnished to do so, subject to the following conditions:
|
|
2619
|
-
*
|
|
2620
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
2621
|
-
* copies or substantial portions of the Software.
|
|
2622
|
-
*
|
|
2623
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2624
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2625
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2626
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2627
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2628
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2629
|
-
* SOFTWARE.
|
|
2630
|
-
*/
|
|
2631
|
-
|
|
2632
|
-
//
|
|
2633
|
-
// Cross module loader
|
|
2634
|
-
// Supported: Node, AMD, Browser globals
|
|
2635
|
-
//
|
|
2636
|
-
;(function (root, factory) {
|
|
2637
|
-
if (true) {
|
|
2638
|
-
// AMD. Register as an anonymous module.
|
|
2639
|
-
!(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
2640
|
-
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
2641
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
2642
|
-
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
2643
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
2644
|
-
} else if (typeof module === 'object' && module.exports) {
|
|
2645
|
-
// Node. Does not work with strict CommonJS, but
|
|
2646
|
-
// only CommonJS-like environments that support module.exports,
|
|
2647
|
-
// like Node.
|
|
2648
|
-
module.exports = factory();
|
|
2649
|
-
} else {
|
|
2650
|
-
// Browser globals (root is window)
|
|
2651
|
-
root.Popper = factory();
|
|
2652
|
-
}
|
|
2653
|
-
}(this, function () {
|
|
2654
|
-
|
|
2655
|
-
'use strict';
|
|
2656
|
-
|
|
2657
|
-
var root = window;
|
|
2658
|
-
|
|
2659
|
-
// default options
|
|
2660
|
-
var DEFAULTS = {
|
|
2661
|
-
// placement of the popper
|
|
2662
|
-
placement: 'bottom',
|
|
2663
|
-
|
|
2664
|
-
gpuAcceleration: true,
|
|
2665
|
-
|
|
2666
|
-
// shift popper from its origin by the given amount of pixels (can be negative)
|
|
2667
|
-
offset: 0,
|
|
2668
|
-
|
|
2669
|
-
// the element which will act as boundary of the popper
|
|
2670
|
-
boundariesElement: 'viewport',
|
|
2671
|
-
|
|
2672
|
-
// amount of pixel used to define a minimum distance between the boundaries and the popper
|
|
2673
|
-
boundariesPadding: 5,
|
|
2674
|
-
|
|
2675
|
-
// popper will try to prevent overflow following this order,
|
|
2676
|
-
// by default, then, it could overflow on the left and on top of the boundariesElement
|
|
2677
|
-
preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
|
|
2678
|
-
|
|
2679
|
-
// the behavior used by flip to change the placement of the popper
|
|
2680
|
-
flipBehavior: 'flip',
|
|
2681
|
-
|
|
2682
|
-
arrowElement: '[x-arrow]',
|
|
2683
|
-
|
|
2684
|
-
arrowOffset: 0,
|
|
2685
|
-
|
|
2686
|
-
// list of functions used to modify the offsets before they are applied to the popper
|
|
2687
|
-
modifiers: [ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
|
|
2688
|
-
|
|
2689
|
-
modifiersIgnored: [],
|
|
2690
|
-
|
|
2691
|
-
forceAbsolute: false
|
|
2692
|
-
};
|
|
2446
|
+
forceAbsolute: false
|
|
2447
|
+
};
|
|
2693
2448
|
|
|
2694
2449
|
/**
|
|
2695
2450
|
* Create a new Popper.js instance
|
|
@@ -3888,61 +3643,312 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**
|
|
|
3888
3643
|
|
|
3889
3644
|
/***/ }),
|
|
3890
3645
|
|
|
3891
|
-
/***/
|
|
3892
|
-
/***/ (function(module, exports) {
|
|
3893
|
-
|
|
3894
|
-
module.exports = require("throttle-debounce/debounce");
|
|
3895
|
-
|
|
3896
|
-
/***/ }),
|
|
3897
|
-
|
|
3898
|
-
/***/ 368:
|
|
3646
|
+
/***/ 3:
|
|
3899
3647
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3900
3648
|
|
|
3901
3649
|
"use strict";
|
|
3902
3650
|
|
|
3903
3651
|
|
|
3904
3652
|
exports.__esModule = true;
|
|
3653
|
+
exports.isInContainer = exports.getScrollContainer = exports.isScroll = exports.getStyle = exports.once = exports.off = exports.on = undefined;
|
|
3905
3654
|
|
|
3906
|
-
var
|
|
3655
|
+
var _typeof2 = __webpack_require__(2);
|
|
3907
3656
|
|
|
3908
|
-
var
|
|
3657
|
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
|
3909
3658
|
|
|
3910
|
-
|
|
3659
|
+
exports.hasClass = hasClass;
|
|
3660
|
+
exports.addClass = addClass;
|
|
3661
|
+
exports.removeClass = removeClass;
|
|
3662
|
+
exports.setStyle = setStyle;
|
|
3911
3663
|
|
|
3912
|
-
|
|
3913
|
-
_main2.default.install = function (Vue) {
|
|
3914
|
-
Vue.component(_main2.default.name, _main2.default);
|
|
3915
|
-
};
|
|
3664
|
+
var _vue = __webpack_require__(1);
|
|
3916
3665
|
|
|
3917
|
-
|
|
3666
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
3918
3667
|
|
|
3919
|
-
|
|
3668
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3920
3669
|
|
|
3921
|
-
|
|
3922
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3670
|
+
var isServer = _vue2.default.prototype.$isServer; /* istanbul ignore next */
|
|
3923
3671
|
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__);
|
|
3928
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
3929
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7cd3f340_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_main_vue__ = __webpack_require__(372);
|
|
3930
|
-
var normalizeComponent = __webpack_require__(0)
|
|
3931
|
-
/* script */
|
|
3672
|
+
var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
|
|
3673
|
+
var MOZ_HACK_REGEXP = /^moz([A-Z])/;
|
|
3674
|
+
var ieVersion = isServer ? 0 : Number(document.documentMode);
|
|
3932
3675
|
|
|
3676
|
+
/* istanbul ignore next */
|
|
3677
|
+
var trim = function trim(string) {
|
|
3678
|
+
return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
|
|
3679
|
+
};
|
|
3680
|
+
/* istanbul ignore next */
|
|
3681
|
+
var camelCase = function camelCase(name) {
|
|
3682
|
+
return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
|
|
3683
|
+
return offset ? letter.toUpperCase() : letter;
|
|
3684
|
+
}).replace(MOZ_HACK_REGEXP, 'Moz$1');
|
|
3685
|
+
};
|
|
3933
3686
|
|
|
3934
|
-
/*
|
|
3687
|
+
/* istanbul ignore next */
|
|
3688
|
+
var on = exports.on = function () {
|
|
3689
|
+
if (!isServer && document.addEventListener) {
|
|
3690
|
+
return function (element, event, handler) {
|
|
3691
|
+
if (element && event && handler) {
|
|
3692
|
+
element.addEventListener(event, handler, false);
|
|
3693
|
+
}
|
|
3694
|
+
};
|
|
3695
|
+
} else {
|
|
3696
|
+
return function (element, event, handler) {
|
|
3697
|
+
if (element && event && handler) {
|
|
3698
|
+
element.attachEvent('on' + event, handler);
|
|
3699
|
+
}
|
|
3700
|
+
};
|
|
3701
|
+
}
|
|
3702
|
+
}();
|
|
3935
3703
|
|
|
3936
|
-
/*
|
|
3937
|
-
var
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3704
|
+
/* istanbul ignore next */
|
|
3705
|
+
var off = exports.off = function () {
|
|
3706
|
+
if (!isServer && document.removeEventListener) {
|
|
3707
|
+
return function (element, event, handler) {
|
|
3708
|
+
if (element && event) {
|
|
3709
|
+
element.removeEventListener(event, handler, false);
|
|
3710
|
+
}
|
|
3711
|
+
};
|
|
3712
|
+
} else {
|
|
3713
|
+
return function (element, event, handler) {
|
|
3714
|
+
if (element && event) {
|
|
3715
|
+
element.detachEvent('on' + event, handler);
|
|
3716
|
+
}
|
|
3717
|
+
};
|
|
3718
|
+
}
|
|
3719
|
+
}();
|
|
3720
|
+
|
|
3721
|
+
/* istanbul ignore next */
|
|
3722
|
+
var once = exports.once = function once(el, event, fn) {
|
|
3723
|
+
var listener = function listener() {
|
|
3724
|
+
if (fn) {
|
|
3725
|
+
fn.apply(this, arguments);
|
|
3726
|
+
}
|
|
3727
|
+
off(el, event, listener);
|
|
3728
|
+
};
|
|
3729
|
+
on(el, event, listener);
|
|
3730
|
+
};
|
|
3731
|
+
|
|
3732
|
+
/* istanbul ignore next */
|
|
3733
|
+
function hasClass(el, cls) {
|
|
3734
|
+
if (!el || !cls) return false;
|
|
3735
|
+
if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
|
|
3736
|
+
if (el.classList) {
|
|
3737
|
+
return el.classList.contains(cls);
|
|
3738
|
+
} else {
|
|
3739
|
+
return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
|
|
3740
|
+
}
|
|
3741
|
+
};
|
|
3742
|
+
|
|
3743
|
+
/* istanbul ignore next */
|
|
3744
|
+
function addClass(el, cls) {
|
|
3745
|
+
if (!el) return;
|
|
3746
|
+
var curClass = el.className;
|
|
3747
|
+
var classes = (cls || '').split(' ');
|
|
3748
|
+
|
|
3749
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
3750
|
+
var clsName = classes[i];
|
|
3751
|
+
if (!clsName) continue;
|
|
3752
|
+
|
|
3753
|
+
if (el.classList) {
|
|
3754
|
+
el.classList.add(clsName);
|
|
3755
|
+
} else if (!hasClass(el, clsName)) {
|
|
3756
|
+
curClass += ' ' + clsName;
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3759
|
+
if (!el.classList) {
|
|
3760
|
+
el.className = curClass;
|
|
3761
|
+
}
|
|
3762
|
+
};
|
|
3763
|
+
|
|
3764
|
+
/* istanbul ignore next */
|
|
3765
|
+
function removeClass(el, cls) {
|
|
3766
|
+
if (!el || !cls) return;
|
|
3767
|
+
var classes = cls.split(' ');
|
|
3768
|
+
var curClass = ' ' + el.className + ' ';
|
|
3769
|
+
|
|
3770
|
+
for (var i = 0, j = classes.length; i < j; i++) {
|
|
3771
|
+
var clsName = classes[i];
|
|
3772
|
+
if (!clsName) continue;
|
|
3773
|
+
|
|
3774
|
+
if (el.classList) {
|
|
3775
|
+
el.classList.remove(clsName);
|
|
3776
|
+
} else if (hasClass(el, clsName)) {
|
|
3777
|
+
curClass = curClass.replace(' ' + clsName + ' ', ' ');
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
if (!el.classList) {
|
|
3781
|
+
el.className = trim(curClass);
|
|
3782
|
+
}
|
|
3783
|
+
};
|
|
3784
|
+
|
|
3785
|
+
/* istanbul ignore next */
|
|
3786
|
+
var getStyle = exports.getStyle = ieVersion < 9 ? function (element, styleName) {
|
|
3787
|
+
if (isServer) return;
|
|
3788
|
+
if (!element || !styleName) return null;
|
|
3789
|
+
styleName = camelCase(styleName);
|
|
3790
|
+
if (styleName === 'float') {
|
|
3791
|
+
styleName = 'styleFloat';
|
|
3792
|
+
}
|
|
3793
|
+
try {
|
|
3794
|
+
switch (styleName) {
|
|
3795
|
+
case 'opacity':
|
|
3796
|
+
try {
|
|
3797
|
+
return element.filters.item('alpha').opacity / 100;
|
|
3798
|
+
} catch (e) {
|
|
3799
|
+
return 1.0;
|
|
3800
|
+
}
|
|
3801
|
+
default:
|
|
3802
|
+
return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
|
|
3803
|
+
}
|
|
3804
|
+
} catch (e) {
|
|
3805
|
+
return element.style[styleName];
|
|
3806
|
+
}
|
|
3807
|
+
} : function (element, styleName) {
|
|
3808
|
+
if (isServer) return;
|
|
3809
|
+
if (!element || !styleName) return null;
|
|
3810
|
+
styleName = camelCase(styleName);
|
|
3811
|
+
if (styleName === 'float') {
|
|
3812
|
+
styleName = 'cssFloat';
|
|
3813
|
+
}
|
|
3814
|
+
try {
|
|
3815
|
+
var computed = document.defaultView.getComputedStyle(element, '');
|
|
3816
|
+
return element.style[styleName] || computed ? computed[styleName] : null;
|
|
3817
|
+
} catch (e) {
|
|
3818
|
+
return element.style[styleName];
|
|
3819
|
+
}
|
|
3820
|
+
};
|
|
3821
|
+
|
|
3822
|
+
/* istanbul ignore next */
|
|
3823
|
+
function setStyle(element, styleName, value) {
|
|
3824
|
+
if (!element || !styleName) return;
|
|
3825
|
+
|
|
3826
|
+
if ((typeof styleName === 'undefined' ? 'undefined' : (0, _typeof3.default)(styleName)) === 'object') {
|
|
3827
|
+
for (var prop in styleName) {
|
|
3828
|
+
if (styleName.hasOwnProperty(prop)) {
|
|
3829
|
+
setStyle(element, prop, styleName[prop]);
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
} else {
|
|
3833
|
+
styleName = camelCase(styleName);
|
|
3834
|
+
if (styleName === 'opacity' && ieVersion < 9) {
|
|
3835
|
+
element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
|
|
3836
|
+
} else {
|
|
3837
|
+
element.style[styleName] = value;
|
|
3838
|
+
}
|
|
3839
|
+
}
|
|
3840
|
+
};
|
|
3841
|
+
|
|
3842
|
+
var isScroll = exports.isScroll = function isScroll(el, vertical) {
|
|
3843
|
+
if (isServer) return;
|
|
3844
|
+
|
|
3845
|
+
var determinedDirection = vertical !== null || vertical !== undefined;
|
|
3846
|
+
var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
|
|
3847
|
+
|
|
3848
|
+
return overflow.match(/(scroll|auto)/);
|
|
3849
|
+
};
|
|
3850
|
+
|
|
3851
|
+
var getScrollContainer = exports.getScrollContainer = function getScrollContainer(el, vertical) {
|
|
3852
|
+
if (isServer) return;
|
|
3853
|
+
|
|
3854
|
+
var parent = el;
|
|
3855
|
+
while (parent) {
|
|
3856
|
+
if ([window, document, document.documentElement].includes(parent)) {
|
|
3857
|
+
return document.documentElement;
|
|
3858
|
+
}
|
|
3859
|
+
if (isScroll(parent, vertical)) {
|
|
3860
|
+
return parent;
|
|
3861
|
+
}
|
|
3862
|
+
parent = parent.parentNode;
|
|
3863
|
+
}
|
|
3864
|
+
|
|
3865
|
+
return parent;
|
|
3866
|
+
};
|
|
3867
|
+
|
|
3868
|
+
var isInContainer = exports.isInContainer = function isInContainer(el, container) {
|
|
3869
|
+
if (isServer || !el || !container) return false;
|
|
3870
|
+
|
|
3871
|
+
var elRect = el.getBoundingClientRect();
|
|
3872
|
+
var containerRect = void 0;
|
|
3873
|
+
|
|
3874
|
+
if ([window, document, document.documentElement, null, undefined].includes(container)) {
|
|
3875
|
+
containerRect = {
|
|
3876
|
+
top: 0,
|
|
3877
|
+
right: window.innerWidth,
|
|
3878
|
+
bottom: window.innerHeight,
|
|
3879
|
+
left: 0
|
|
3880
|
+
};
|
|
3881
|
+
} else {
|
|
3882
|
+
containerRect = container.getBoundingClientRect();
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
|
|
3886
|
+
};
|
|
3887
|
+
|
|
3888
|
+
/***/ }),
|
|
3889
|
+
|
|
3890
|
+
/***/ 33:
|
|
3891
|
+
/***/ (function(module, exports) {
|
|
3892
|
+
|
|
3893
|
+
module.exports = require("throttle-debounce/debounce");
|
|
3894
|
+
|
|
3895
|
+
/***/ }),
|
|
3896
|
+
|
|
3897
|
+
/***/ 36:
|
|
3898
|
+
/***/ (function(module, exports) {
|
|
3899
|
+
|
|
3900
|
+
module.exports = require("babel-runtime/helpers/extends");
|
|
3901
|
+
|
|
3902
|
+
/***/ }),
|
|
3903
|
+
|
|
3904
|
+
/***/ 364:
|
|
3905
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3906
|
+
|
|
3907
|
+
"use strict";
|
|
3908
|
+
|
|
3909
|
+
|
|
3910
|
+
exports.__esModule = true;
|
|
3911
|
+
|
|
3912
|
+
var _main = __webpack_require__(365);
|
|
3913
|
+
|
|
3914
|
+
var _main2 = _interopRequireDefault(_main);
|
|
3915
|
+
|
|
3916
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
3917
|
+
|
|
3918
|
+
/* istanbul ignore next */
|
|
3919
|
+
_main2.default.install = function (Vue) {
|
|
3920
|
+
Vue.component(_main2.default.name, _main2.default);
|
|
3921
|
+
};
|
|
3922
|
+
|
|
3923
|
+
exports.default = _main2.default;
|
|
3924
|
+
|
|
3925
|
+
/***/ }),
|
|
3926
|
+
|
|
3927
|
+
/***/ 365:
|
|
3928
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3929
|
+
|
|
3930
|
+
"use strict";
|
|
3931
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
3932
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__ = __webpack_require__(197);
|
|
3933
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__);
|
|
3934
|
+
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
3935
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7cd3f340_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_main_vue__ = __webpack_require__(368);
|
|
3936
|
+
var normalizeComponent = __webpack_require__(0)
|
|
3937
|
+
/* script */
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
/* template */
|
|
3941
|
+
|
|
3942
|
+
/* template functional */
|
|
3943
|
+
var __vue_template_functional__ = false
|
|
3944
|
+
/* styles */
|
|
3945
|
+
var __vue_styles__ = null
|
|
3946
|
+
/* scopeId */
|
|
3947
|
+
var __vue_scopeId__ = null
|
|
3948
|
+
/* moduleIdentifier (server only) */
|
|
3949
|
+
var __vue_module_identifier__ = null
|
|
3950
|
+
var Component = normalizeComponent(
|
|
3951
|
+
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue___default.a,
|
|
3946
3952
|
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7cd3f340_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_main_vue__["a" /* default */],
|
|
3947
3953
|
__vue_template_functional__,
|
|
3948
3954
|
__vue_styles__,
|
|
@@ -3955,15 +3961,15 @@ var Component = normalizeComponent(
|
|
|
3955
3961
|
|
|
3956
3962
|
/***/ }),
|
|
3957
3963
|
|
|
3958
|
-
/***/
|
|
3964
|
+
/***/ 366:
|
|
3959
3965
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3960
3966
|
|
|
3961
3967
|
"use strict";
|
|
3962
3968
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
3963
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_button_vue__ = __webpack_require__(
|
|
3969
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_button_vue__ = __webpack_require__(198);
|
|
3964
3970
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_button_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_button_vue__);
|
|
3965
3971
|
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_button_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_button_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
3966
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_059e1e64_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_button_vue__ = __webpack_require__(
|
|
3972
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_059e1e64_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_button_vue__ = __webpack_require__(367);
|
|
3967
3973
|
var normalizeComponent = __webpack_require__(0)
|
|
3968
3974
|
/* script */
|
|
3969
3975
|
|
|
@@ -3992,7 +3998,7 @@ var Component = normalizeComponent(
|
|
|
3992
3998
|
|
|
3993
3999
|
/***/ }),
|
|
3994
4000
|
|
|
3995
|
-
/***/
|
|
4001
|
+
/***/ 367:
|
|
3996
4002
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3997
4003
|
|
|
3998
4004
|
"use strict";
|
|
@@ -4003,7 +4009,7 @@ var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
|
4003
4009
|
|
|
4004
4010
|
/***/ }),
|
|
4005
4011
|
|
|
4006
|
-
/***/
|
|
4012
|
+
/***/ 368:
|
|
4007
4013
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4008
4014
|
|
|
4009
4015
|
"use strict";
|
|
@@ -4283,14 +4289,14 @@ var delay = exports.delay = function delay(ms) {
|
|
|
4283
4289
|
|
|
4284
4290
|
/***/ }),
|
|
4285
4291
|
|
|
4286
|
-
/***/
|
|
4292
|
+
/***/ 42:
|
|
4287
4293
|
/***/ (function(module, exports) {
|
|
4288
4294
|
|
|
4289
|
-
module.exports = require("babel-runtime/core-js/object/
|
|
4295
|
+
module.exports = require("babel-runtime/core-js/object/assign");
|
|
4290
4296
|
|
|
4291
4297
|
/***/ }),
|
|
4292
4298
|
|
|
4293
|
-
/***/
|
|
4299
|
+
/***/ 46:
|
|
4294
4300
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4295
4301
|
|
|
4296
4302
|
"use strict";
|
|
@@ -4321,7 +4327,14 @@ function getFirstComponentChild(children) {
|
|
|
4321
4327
|
|
|
4322
4328
|
/***/ }),
|
|
4323
4329
|
|
|
4324
|
-
/***/
|
|
4330
|
+
/***/ 5:
|
|
4331
|
+
/***/ (function(module, exports) {
|
|
4332
|
+
|
|
4333
|
+
module.exports = require("babel-runtime/core-js/object/keys");
|
|
4334
|
+
|
|
4335
|
+
/***/ }),
|
|
4336
|
+
|
|
4337
|
+
/***/ 50:
|
|
4325
4338
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4326
4339
|
|
|
4327
4340
|
"use strict";
|
|
@@ -4393,7 +4406,7 @@ module.exports = require("babel-runtime/core-js/json/stringify");
|
|
|
4393
4406
|
|
|
4394
4407
|
/***/ }),
|
|
4395
4408
|
|
|
4396
|
-
/***/
|
|
4409
|
+
/***/ 73:
|
|
4397
4410
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4398
4411
|
|
|
4399
4412
|
"use strict";
|
|
@@ -4401,27 +4414,261 @@ module.exports = require("babel-runtime/core-js/json/stringify");
|
|
|
4401
4414
|
|
|
4402
4415
|
exports.__esModule = true;
|
|
4403
4416
|
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4417
|
+
var _vuePopper = __webpack_require__(21);
|
|
4418
|
+
|
|
4419
|
+
var _vuePopper2 = _interopRequireDefault(_vuePopper);
|
|
4420
|
+
|
|
4421
|
+
var _debounce = __webpack_require__(33);
|
|
4422
|
+
|
|
4423
|
+
var _debounce2 = _interopRequireDefault(_debounce);
|
|
4424
|
+
|
|
4425
|
+
var _dom = __webpack_require__(3);
|
|
4426
|
+
|
|
4427
|
+
var _vdom = __webpack_require__(46);
|
|
4428
|
+
|
|
4429
|
+
var _util = __webpack_require__(4);
|
|
4430
|
+
|
|
4431
|
+
var _vue = __webpack_require__(1);
|
|
4432
|
+
|
|
4433
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
4434
|
+
|
|
4435
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4436
|
+
|
|
4437
|
+
exports.default = {
|
|
4438
|
+
name: 'ElTooltip',
|
|
4439
|
+
|
|
4440
|
+
mixins: [_vuePopper2.default],
|
|
4441
|
+
|
|
4442
|
+
props: {
|
|
4443
|
+
openDelay: {
|
|
4444
|
+
type: Number,
|
|
4445
|
+
default: 0
|
|
4446
|
+
},
|
|
4447
|
+
maxWidth: String,
|
|
4448
|
+
disabled: Boolean,
|
|
4449
|
+
manual: Boolean,
|
|
4450
|
+
arrowOffset: {
|
|
4451
|
+
type: Number,
|
|
4452
|
+
default: 0
|
|
4453
|
+
},
|
|
4454
|
+
popperClass: String,
|
|
4455
|
+
content: String,
|
|
4456
|
+
visibleArrow: {
|
|
4457
|
+
default: true
|
|
4458
|
+
},
|
|
4459
|
+
transition: {
|
|
4460
|
+
type: String,
|
|
4461
|
+
default: ''
|
|
4462
|
+
},
|
|
4463
|
+
popperOptions: {
|
|
4464
|
+
default: function _default() {
|
|
4465
|
+
return {
|
|
4466
|
+
boundariesPadding: 10,
|
|
4467
|
+
gpuAcceleration: false
|
|
4468
|
+
};
|
|
4469
|
+
}
|
|
4470
|
+
},
|
|
4471
|
+
enterable: {
|
|
4472
|
+
type: Boolean,
|
|
4473
|
+
default: true
|
|
4474
|
+
},
|
|
4475
|
+
hideAfter: {
|
|
4476
|
+
type: Number,
|
|
4477
|
+
default: 0
|
|
4478
|
+
}
|
|
4479
|
+
},
|
|
4480
|
+
|
|
4481
|
+
data: function data() {
|
|
4482
|
+
return {
|
|
4483
|
+
timeoutPending: null,
|
|
4484
|
+
focusing: false
|
|
4485
|
+
};
|
|
4486
|
+
},
|
|
4487
|
+
|
|
4488
|
+
computed: {
|
|
4489
|
+
tooltipId: function tooltipId() {
|
|
4490
|
+
return 'el-tooltip-' + (0, _util.generateId)();
|
|
4491
|
+
}
|
|
4492
|
+
},
|
|
4493
|
+
beforeCreate: function beforeCreate() {
|
|
4494
|
+
var _this = this;
|
|
4495
|
+
|
|
4496
|
+
if (this.$isServer) return;
|
|
4497
|
+
|
|
4498
|
+
this.popperVM = new _vue2.default({
|
|
4499
|
+
data: { node: '' },
|
|
4500
|
+
render: function render(h) {
|
|
4501
|
+
return this.node;
|
|
4502
|
+
}
|
|
4503
|
+
}).$mount();
|
|
4504
|
+
|
|
4505
|
+
this.debounceClose = (0, _debounce2.default)(200, function () {
|
|
4506
|
+
return _this.handleClosePopper();
|
|
4507
|
+
});
|
|
4508
|
+
},
|
|
4509
|
+
render: function render(h) {
|
|
4510
|
+
var _this2 = this;
|
|
4511
|
+
|
|
4512
|
+
if (this.popperVM) {
|
|
4513
|
+
this.popperVM.node = h(
|
|
4514
|
+
'transition',
|
|
4515
|
+
{
|
|
4516
|
+
attrs: {
|
|
4517
|
+
name: this.transition
|
|
4518
|
+
},
|
|
4519
|
+
on: {
|
|
4520
|
+
'afterLeave': this.doDestroy
|
|
4521
|
+
}
|
|
4522
|
+
},
|
|
4523
|
+
[h(
|
|
4524
|
+
'div',
|
|
4525
|
+
{
|
|
4526
|
+
on: {
|
|
4527
|
+
'mouseleave': function mouseleave() {
|
|
4528
|
+
_this2.setExpectedState(false);_this2.debounceClose();
|
|
4529
|
+
},
|
|
4530
|
+
'mouseenter': function mouseenter() {
|
|
4531
|
+
_this2.setExpectedState(true);
|
|
4532
|
+
}
|
|
4533
|
+
},
|
|
4534
|
+
|
|
4535
|
+
ref: 'popper',
|
|
4536
|
+
attrs: { role: 'tooltip',
|
|
4537
|
+
id: this.tooltipId,
|
|
4538
|
+
'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
|
|
4539
|
+
},
|
|
4540
|
+
directives: [{
|
|
4541
|
+
name: 'show',
|
|
4542
|
+
value: !this.disabled && this.showPopper
|
|
4543
|
+
}],
|
|
4544
|
+
|
|
4545
|
+
'class': ['el-tooltip__popper', this.popperClass],
|
|
4546
|
+
style: this.maxWidth ? { maxWidth: this.maxWidth } : {} },
|
|
4547
|
+
[this.$slots.content || this.content]
|
|
4548
|
+
)]
|
|
4549
|
+
);
|
|
4550
|
+
}
|
|
4551
|
+
|
|
4552
|
+
if (!this.$slots.default || !this.$slots.default.length) return this.$slots.default;
|
|
4553
|
+
|
|
4554
|
+
var vnode = (0, _vdom.getFirstComponentChild)(this.$slots.default);
|
|
4555
|
+
|
|
4556
|
+
if (!vnode) return vnode;
|
|
4557
|
+
|
|
4558
|
+
var data = vnode.data = vnode.data || {};
|
|
4559
|
+
data.staticClass = this.concatClass(data.staticClass, 'el-tooltip');
|
|
4560
|
+
|
|
4561
|
+
return vnode;
|
|
4562
|
+
},
|
|
4563
|
+
mounted: function mounted() {
|
|
4564
|
+
var _this3 = this;
|
|
4565
|
+
|
|
4566
|
+
// this.reference comes from the Popper mixin's props
|
|
4567
|
+
this.referenceElm = this.reference || this.$el;
|
|
4568
|
+
if (this.referenceElm.nodeType === 1) {
|
|
4569
|
+
this.referenceElm.setAttribute('aria-describedby', this.tooltipId);
|
|
4570
|
+
this.referenceElm.setAttribute('tabindex', 0);
|
|
4571
|
+
(0, _dom.on)(this.referenceElm, 'mouseenter', this.show);
|
|
4572
|
+
(0, _dom.on)(this.referenceElm, 'mouseleave', this.hide);
|
|
4573
|
+
(0, _dom.on)(this.referenceElm, 'focus', function () {
|
|
4574
|
+
if (!_this3.$slots.default || !_this3.$slots.default.length) {
|
|
4575
|
+
_this3.handleFocus();
|
|
4576
|
+
return;
|
|
4412
4577
|
}
|
|
4578
|
+
var instance = _this3.$slots.default[0].componentInstance;
|
|
4579
|
+
if (instance && instance.focus) {
|
|
4580
|
+
instance.focus();
|
|
4581
|
+
} else {
|
|
4582
|
+
_this3.handleFocus();
|
|
4583
|
+
}
|
|
4584
|
+
});
|
|
4585
|
+
(0, _dom.on)(this.referenceElm, 'blur', this.handleBlur);
|
|
4586
|
+
(0, _dom.on)(this.referenceElm, 'click', this.removeFocusing);
|
|
4587
|
+
}
|
|
4588
|
+
},
|
|
4589
|
+
|
|
4590
|
+
watch: {
|
|
4591
|
+
focusing: function focusing(val) {
|
|
4592
|
+
if (val) {
|
|
4593
|
+
(0, _dom.addClass)(this.referenceElm, 'focusing');
|
|
4594
|
+
} else {
|
|
4595
|
+
(0, _dom.removeClass)(this.referenceElm, 'focusing');
|
|
4413
4596
|
}
|
|
4414
4597
|
}
|
|
4415
|
-
}
|
|
4598
|
+
},
|
|
4599
|
+
methods: {
|
|
4600
|
+
show: function show() {
|
|
4601
|
+
this.setExpectedState(true);
|
|
4602
|
+
this.handleShowPopper();
|
|
4603
|
+
},
|
|
4604
|
+
hide: function hide() {
|
|
4605
|
+
this.setExpectedState(false);
|
|
4606
|
+
this.debounceClose();
|
|
4607
|
+
},
|
|
4608
|
+
handleFocus: function handleFocus() {
|
|
4609
|
+
this.focusing = true;
|
|
4610
|
+
this.show();
|
|
4611
|
+
},
|
|
4612
|
+
handleBlur: function handleBlur() {
|
|
4613
|
+
this.focusing = false;
|
|
4614
|
+
this.hide();
|
|
4615
|
+
},
|
|
4616
|
+
removeFocusing: function removeFocusing() {
|
|
4617
|
+
this.focusing = false;
|
|
4618
|
+
},
|
|
4619
|
+
concatClass: function concatClass(a, b) {
|
|
4620
|
+
if (a && a.indexOf(b) > -1) return a;
|
|
4621
|
+
return a ? b ? a + ' ' + b : a : b || '';
|
|
4622
|
+
},
|
|
4623
|
+
handleShowPopper: function handleShowPopper() {
|
|
4624
|
+
var _this4 = this;
|
|
4416
4625
|
|
|
4417
|
-
|
|
4418
|
-
|
|
4626
|
+
if (!this.expectedState || this.manual) return;
|
|
4627
|
+
clearTimeout(this.timeout);
|
|
4628
|
+
this.timeout = setTimeout(function () {
|
|
4629
|
+
_this4.showPopper = true;
|
|
4630
|
+
}, this.openDelay);
|
|
4419
4631
|
|
|
4420
|
-
|
|
4632
|
+
if (this.hideAfter > 0) {
|
|
4633
|
+
this.timeoutPending = setTimeout(function () {
|
|
4634
|
+
_this4.showPopper = false;
|
|
4635
|
+
}, this.hideAfter);
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
handleClosePopper: function handleClosePopper() {
|
|
4639
|
+
if (this.enterable && this.expectedState || this.manual) return;
|
|
4640
|
+
clearTimeout(this.timeout);
|
|
4641
|
+
|
|
4642
|
+
if (this.timeoutPending) {
|
|
4643
|
+
clearTimeout(this.timeoutPending);
|
|
4644
|
+
}
|
|
4645
|
+
this.showPopper = false;
|
|
4646
|
+
|
|
4647
|
+
if (this.disabled) {
|
|
4648
|
+
this.doDestroy();
|
|
4649
|
+
}
|
|
4650
|
+
},
|
|
4651
|
+
setExpectedState: function setExpectedState(expectedState) {
|
|
4652
|
+
if (expectedState === false) {
|
|
4653
|
+
clearTimeout(this.timeoutPending);
|
|
4654
|
+
}
|
|
4655
|
+
this.expectedState = expectedState;
|
|
4656
|
+
}
|
|
4657
|
+
},
|
|
4658
|
+
|
|
4659
|
+
destroyed: function destroyed() {
|
|
4660
|
+
var reference = this.referenceElm;
|
|
4661
|
+
(0, _dom.off)(reference, 'mouseenter', this.show);
|
|
4662
|
+
(0, _dom.off)(reference, 'mouseleave', this.hide);
|
|
4663
|
+
(0, _dom.off)(reference, 'focus', this.handleFocus);
|
|
4664
|
+
(0, _dom.off)(reference, 'blur', this.handleBlur);
|
|
4665
|
+
(0, _dom.off)(reference, 'click', this.removeFocusing);
|
|
4666
|
+
}
|
|
4667
|
+
};
|
|
4421
4668
|
|
|
4422
4669
|
/***/ }),
|
|
4423
4670
|
|
|
4424
|
-
/***/
|
|
4671
|
+
/***/ 79:
|
|
4425
4672
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4426
4673
|
|
|
4427
4674
|
"use strict";
|
|
@@ -4454,18 +4701,39 @@ exports.default = {
|
|
|
4454
4701
|
interval = setInterval(handler, 100);
|
|
4455
4702
|
});
|
|
4456
4703
|
}
|
|
4457
|
-
};
|
|
4458
|
-
|
|
4459
|
-
/***/ }),
|
|
4704
|
+
};
|
|
4705
|
+
|
|
4706
|
+
/***/ }),
|
|
4707
|
+
|
|
4708
|
+
/***/ 8:
|
|
4709
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4710
|
+
|
|
4711
|
+
"use strict";
|
|
4712
|
+
|
|
4713
|
+
|
|
4714
|
+
exports.__esModule = true;
|
|
4715
|
+
|
|
4716
|
+
exports.default = function (target) {
|
|
4717
|
+
for (var i = 1, j = arguments.length; i < j; i++) {
|
|
4718
|
+
var source = arguments[i] || {};
|
|
4719
|
+
for (var prop in source) {
|
|
4720
|
+
if (source.hasOwnProperty(prop)) {
|
|
4721
|
+
var value = source[prop];
|
|
4722
|
+
if (value !== undefined) {
|
|
4723
|
+
target[prop] = value;
|
|
4724
|
+
}
|
|
4725
|
+
}
|
|
4726
|
+
}
|
|
4727
|
+
}
|
|
4460
4728
|
|
|
4461
|
-
|
|
4462
|
-
|
|
4729
|
+
return target;
|
|
4730
|
+
};
|
|
4463
4731
|
|
|
4464
|
-
|
|
4732
|
+
;
|
|
4465
4733
|
|
|
4466
4734
|
/***/ }),
|
|
4467
4735
|
|
|
4468
|
-
/***/
|
|
4736
|
+
/***/ 88:
|
|
4469
4737
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4470
4738
|
|
|
4471
4739
|
"use strict";
|
|
@@ -4477,11 +4745,11 @@ var _input = __webpack_require__(20);
|
|
|
4477
4745
|
|
|
4478
4746
|
var _input2 = _interopRequireDefault(_input);
|
|
4479
4747
|
|
|
4480
|
-
var _focus = __webpack_require__(
|
|
4748
|
+
var _focus = __webpack_require__(50);
|
|
4481
4749
|
|
|
4482
4750
|
var _focus2 = _interopRequireDefault(_focus);
|
|
4483
4751
|
|
|
4484
|
-
var _repeatClick = __webpack_require__(
|
|
4752
|
+
var _repeatClick = __webpack_require__(79);
|
|
4485
4753
|
|
|
4486
4754
|
var _repeatClick2 = _interopRequireDefault(_repeatClick);
|
|
4487
4755
|
|
|
@@ -4743,7 +5011,14 @@ exports.default = {
|
|
|
4743
5011
|
|
|
4744
5012
|
/***/ }),
|
|
4745
5013
|
|
|
4746
|
-
/***/
|
|
5014
|
+
/***/ 9:
|
|
5015
|
+
/***/ (function(module, exports) {
|
|
5016
|
+
|
|
5017
|
+
module.exports = require("babel-runtime/core-js/promise");
|
|
5018
|
+
|
|
5019
|
+
/***/ }),
|
|
5020
|
+
|
|
5021
|
+
/***/ 95:
|
|
4747
5022
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4748
5023
|
|
|
4749
5024
|
"use strict";
|
|
@@ -4751,12 +5026,22 @@ exports.default = {
|
|
|
4751
5026
|
|
|
4752
5027
|
exports.__esModule = true;
|
|
4753
5028
|
|
|
4754
|
-
var
|
|
5029
|
+
var _vue = __webpack_require__(1);
|
|
5030
|
+
|
|
5031
|
+
var _vue2 = _interopRequireDefault(_vue);
|
|
5032
|
+
|
|
5033
|
+
var _main = __webpack_require__(73);
|
|
4755
5034
|
|
|
4756
5035
|
var _main2 = _interopRequireDefault(_main);
|
|
4757
5036
|
|
|
5037
|
+
var _directive = __webpack_require__(96);
|
|
5038
|
+
|
|
5039
|
+
var _directive2 = _interopRequireDefault(_directive);
|
|
5040
|
+
|
|
4758
5041
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4759
5042
|
|
|
5043
|
+
_vue2.default.directive('tooltip', _directive2.default);
|
|
5044
|
+
|
|
4760
5045
|
/* istanbul ignore next */
|
|
4761
5046
|
_main2.default.install = function (Vue) {
|
|
4762
5047
|
Vue.component(_main2.default.name, _main2.default);
|
|
@@ -4766,7 +5051,7 @@ exports.default = _main2.default;
|
|
|
4766
5051
|
|
|
4767
5052
|
/***/ }),
|
|
4768
5053
|
|
|
4769
|
-
/***/
|
|
5054
|
+
/***/ 96:
|
|
4770
5055
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4771
5056
|
|
|
4772
5057
|
"use strict";
|
|
@@ -4774,254 +5059,69 @@ exports.default = _main2.default;
|
|
|
4774
5059
|
|
|
4775
5060
|
exports.__esModule = true;
|
|
4776
5061
|
|
|
4777
|
-
var
|
|
4778
|
-
|
|
4779
|
-
var _vuePopper2 = _interopRequireDefault(_vuePopper);
|
|
5062
|
+
var _assign = __webpack_require__(42);
|
|
4780
5063
|
|
|
4781
|
-
var
|
|
5064
|
+
var _assign2 = _interopRequireDefault(_assign);
|
|
4782
5065
|
|
|
4783
|
-
var
|
|
5066
|
+
var _extends2 = __webpack_require__(36);
|
|
4784
5067
|
|
|
4785
|
-
var
|
|
5068
|
+
var _extends3 = _interopRequireDefault(_extends2);
|
|
4786
5069
|
|
|
4787
|
-
var
|
|
5070
|
+
var _typeof2 = __webpack_require__(2);
|
|
4788
5071
|
|
|
4789
|
-
var
|
|
5072
|
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
|
4790
5073
|
|
|
4791
5074
|
var _vue = __webpack_require__(1);
|
|
4792
5075
|
|
|
4793
5076
|
var _vue2 = _interopRequireDefault(_vue);
|
|
4794
5077
|
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
exports.default = {
|
|
4798
|
-
name: 'ElTooltip',
|
|
4799
|
-
|
|
4800
|
-
mixins: [_vuePopper2.default],
|
|
4801
|
-
|
|
4802
|
-
props: {
|
|
4803
|
-
openDelay: {
|
|
4804
|
-
type: Number,
|
|
4805
|
-
default: 0
|
|
4806
|
-
},
|
|
4807
|
-
maxWidth: String,
|
|
4808
|
-
disabled: Boolean,
|
|
4809
|
-
manual: Boolean,
|
|
4810
|
-
arrowOffset: {
|
|
4811
|
-
type: Number,
|
|
4812
|
-
default: 0
|
|
4813
|
-
},
|
|
4814
|
-
popperClass: String,
|
|
4815
|
-
content: String,
|
|
4816
|
-
visibleArrow: {
|
|
4817
|
-
default: true
|
|
4818
|
-
},
|
|
4819
|
-
transition: {
|
|
4820
|
-
type: String,
|
|
4821
|
-
default: 'el-fade-in-linear'
|
|
4822
|
-
},
|
|
4823
|
-
popperOptions: {
|
|
4824
|
-
default: function _default() {
|
|
4825
|
-
return {
|
|
4826
|
-
boundariesPadding: 10,
|
|
4827
|
-
gpuAcceleration: false
|
|
4828
|
-
};
|
|
4829
|
-
}
|
|
4830
|
-
},
|
|
4831
|
-
enterable: {
|
|
4832
|
-
type: Boolean,
|
|
4833
|
-
default: true
|
|
4834
|
-
},
|
|
4835
|
-
hideAfter: {
|
|
4836
|
-
type: Number,
|
|
4837
|
-
default: 0
|
|
4838
|
-
}
|
|
4839
|
-
},
|
|
4840
|
-
|
|
4841
|
-
data: function data() {
|
|
4842
|
-
return {
|
|
4843
|
-
timeoutPending: null,
|
|
4844
|
-
focusing: false
|
|
4845
|
-
};
|
|
4846
|
-
},
|
|
4847
|
-
|
|
4848
|
-
computed: {
|
|
4849
|
-
tooltipId: function tooltipId() {
|
|
4850
|
-
return 'el-tooltip-' + (0, _util.generateId)();
|
|
4851
|
-
}
|
|
4852
|
-
},
|
|
4853
|
-
beforeCreate: function beforeCreate() {
|
|
4854
|
-
var _this = this;
|
|
4855
|
-
|
|
4856
|
-
if (this.$isServer) return;
|
|
4857
|
-
|
|
4858
|
-
this.popperVM = new _vue2.default({
|
|
4859
|
-
data: { node: '' },
|
|
4860
|
-
render: function render(h) {
|
|
4861
|
-
return this.node;
|
|
4862
|
-
}
|
|
4863
|
-
}).$mount();
|
|
4864
|
-
|
|
4865
|
-
this.debounceClose = (0, _debounce2.default)(200, function () {
|
|
4866
|
-
return _this.handleClosePopper();
|
|
4867
|
-
});
|
|
4868
|
-
},
|
|
4869
|
-
render: function render(h) {
|
|
4870
|
-
var _this2 = this;
|
|
4871
|
-
|
|
4872
|
-
if (this.popperVM) {
|
|
4873
|
-
this.popperVM.node = h(
|
|
4874
|
-
'transition',
|
|
4875
|
-
{
|
|
4876
|
-
attrs: {
|
|
4877
|
-
name: this.transition
|
|
4878
|
-
},
|
|
4879
|
-
on: {
|
|
4880
|
-
'afterLeave': this.doDestroy
|
|
4881
|
-
}
|
|
4882
|
-
},
|
|
4883
|
-
[h(
|
|
4884
|
-
'div',
|
|
4885
|
-
{
|
|
4886
|
-
on: {
|
|
4887
|
-
'mouseleave': function mouseleave() {
|
|
4888
|
-
_this2.setExpectedState(false);_this2.debounceClose();
|
|
4889
|
-
},
|
|
4890
|
-
'mouseenter': function mouseenter() {
|
|
4891
|
-
_this2.setExpectedState(true);
|
|
4892
|
-
}
|
|
4893
|
-
},
|
|
4894
|
-
|
|
4895
|
-
ref: 'popper',
|
|
4896
|
-
attrs: { role: 'tooltip',
|
|
4897
|
-
id: this.tooltipId,
|
|
4898
|
-
'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
|
|
4899
|
-
},
|
|
4900
|
-
directives: [{
|
|
4901
|
-
name: 'show',
|
|
4902
|
-
value: !this.disabled && this.showPopper
|
|
4903
|
-
}],
|
|
4904
|
-
|
|
4905
|
-
'class': ['el-tooltip__popper', this.popperClass],
|
|
4906
|
-
style: this.maxWidth ? { maxWidth: this.maxWidth } : {} },
|
|
4907
|
-
[this.$slots.content || this.content]
|
|
4908
|
-
)]
|
|
4909
|
-
);
|
|
4910
|
-
}
|
|
4911
|
-
|
|
4912
|
-
if (!this.$slots.default || !this.$slots.default.length) return this.$slots.default;
|
|
5078
|
+
var _main = __webpack_require__(73);
|
|
4913
5079
|
|
|
4914
|
-
|
|
5080
|
+
var _main2 = _interopRequireDefault(_main);
|
|
4915
5081
|
|
|
4916
|
-
|
|
5082
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
4917
5083
|
|
|
4918
|
-
|
|
4919
|
-
|
|
5084
|
+
var Tooltip = _vue2.default.extend(_main2.default);
|
|
5085
|
+
var validPlacements = ['top', 'right', 'bottom', 'left'].reduce(function (arr, position) {
|
|
5086
|
+
arr.push(position + '-start', position, position + '-end');
|
|
5087
|
+
return arr;
|
|
5088
|
+
}, []);
|
|
4920
5089
|
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
5090
|
+
var destroyInstance = function destroyInstance(instance) {
|
|
5091
|
+
var el = instance.$el;
|
|
5092
|
+
el.parentNode.removeChild(el);
|
|
5093
|
+
instance.$destroy();
|
|
5094
|
+
};
|
|
4925
5095
|
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
this.$el.setAttribute('tabindex', 0);
|
|
4930
|
-
(0, _dom.on)(this.referenceElm, 'mouseenter', this.show);
|
|
4931
|
-
(0, _dom.on)(this.referenceElm, 'mouseleave', this.hide);
|
|
4932
|
-
(0, _dom.on)(this.referenceElm, 'focus', function () {
|
|
4933
|
-
if (!_this3.$slots.default || !_this3.$slots.default.length) {
|
|
4934
|
-
_this3.handleFocus();
|
|
4935
|
-
return;
|
|
4936
|
-
}
|
|
4937
|
-
var instance = _this3.$slots.default[0].componentInstance;
|
|
4938
|
-
if (instance && instance.focus) {
|
|
4939
|
-
instance.focus();
|
|
4940
|
-
} else {
|
|
4941
|
-
_this3.handleFocus();
|
|
4942
|
-
}
|
|
4943
|
-
});
|
|
4944
|
-
(0, _dom.on)(this.referenceElm, 'blur', this.handleBlur);
|
|
4945
|
-
(0, _dom.on)(this.referenceElm, 'click', this.removeFocusing);
|
|
4946
|
-
}
|
|
4947
|
-
},
|
|
5096
|
+
var bindUpdateHandler = function bindUpdateHandler(el, binding) {
|
|
5097
|
+
// when updating, destroy the previous instance
|
|
5098
|
+
if (el.$tooltipInstance) destroyInstance(el.$tooltipInstance);
|
|
4948
5099
|
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
(0, _dom.removeClass)(this.referenceElm, 'focusing');
|
|
4955
|
-
}
|
|
4956
|
-
}
|
|
4957
|
-
},
|
|
4958
|
-
methods: {
|
|
4959
|
-
show: function show() {
|
|
4960
|
-
this.setExpectedState(true);
|
|
4961
|
-
this.handleShowPopper();
|
|
4962
|
-
},
|
|
4963
|
-
hide: function hide() {
|
|
4964
|
-
this.setExpectedState(false);
|
|
4965
|
-
this.debounceClose();
|
|
4966
|
-
},
|
|
4967
|
-
handleFocus: function handleFocus() {
|
|
4968
|
-
this.focusing = true;
|
|
4969
|
-
this.show();
|
|
4970
|
-
},
|
|
4971
|
-
handleBlur: function handleBlur() {
|
|
4972
|
-
this.focusing = false;
|
|
4973
|
-
this.hide();
|
|
4974
|
-
},
|
|
4975
|
-
removeFocusing: function removeFocusing() {
|
|
4976
|
-
this.focusing = false;
|
|
4977
|
-
},
|
|
4978
|
-
concatClass: function concatClass(a, b) {
|
|
4979
|
-
if (a && a.indexOf(b) > -1) return a;
|
|
4980
|
-
return a ? b ? a + ' ' + b : a : b || '';
|
|
4981
|
-
},
|
|
4982
|
-
handleShowPopper: function handleShowPopper() {
|
|
4983
|
-
var _this4 = this;
|
|
5100
|
+
// prepare props
|
|
5101
|
+
var props = (0, _typeof3.default)(binding.value) === 'object' ? (0, _extends3.default)({ reference: el }, binding.value) : { reference: el, content: binding.value };
|
|
5102
|
+
var placement = validPlacements.find(function (placement) {
|
|
5103
|
+
return binding.arg === placement;
|
|
5104
|
+
});
|
|
4984
5105
|
|
|
4985
|
-
|
|
4986
|
-
clearTimeout(this.timeout);
|
|
4987
|
-
this.timeout = setTimeout(function () {
|
|
4988
|
-
_this4.showPopper = true;
|
|
4989
|
-
}, this.openDelay);
|
|
5106
|
+
if (placement && !Object.prototype.hasOwnProperty.call(props, 'placement')) props.placement = placement;
|
|
4990
5107
|
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
}, this.hideAfter);
|
|
4995
|
-
}
|
|
4996
|
-
},
|
|
4997
|
-
handleClosePopper: function handleClosePopper() {
|
|
4998
|
-
if (this.enterable && this.expectedState || this.manual) return;
|
|
4999
|
-
clearTimeout(this.timeout);
|
|
5108
|
+
// create instance and pass props
|
|
5109
|
+
var instance = new Tooltip();
|
|
5110
|
+
(0, _assign2.default)(instance, props);
|
|
5000
5111
|
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
this.showPopper = false;
|
|
5112
|
+
// mount
|
|
5113
|
+
instance.vm = instance.$mount();
|
|
5114
|
+
el.appendChild(instance.$el);
|
|
5005
5115
|
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
},
|
|
5010
|
-
setExpectedState: function setExpectedState(expectedState) {
|
|
5011
|
-
if (expectedState === false) {
|
|
5012
|
-
clearTimeout(this.timeoutPending);
|
|
5013
|
-
}
|
|
5014
|
-
this.expectedState = expectedState;
|
|
5015
|
-
}
|
|
5016
|
-
},
|
|
5116
|
+
// store reference to destroy in unbind/update
|
|
5117
|
+
el.$tooltipInstance = instance;
|
|
5118
|
+
};
|
|
5017
5119
|
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
(
|
|
5023
|
-
(0, _dom.off)(reference, 'blur', this.handleBlur);
|
|
5024
|
-
(0, _dom.off)(reference, 'click', this.removeFocusing);
|
|
5120
|
+
exports.default = {
|
|
5121
|
+
bind: bindUpdateHandler,
|
|
5122
|
+
update: bindUpdateHandler,
|
|
5123
|
+
unbind: function unbind(el) {
|
|
5124
|
+
if (el.$tooltipInstance) destroyInstance(el.$tooltipInstance);
|
|
5025
5125
|
}
|
|
5026
5126
|
};
|
|
5027
5127
|
|