@weitutech/by-components 1.1.80 → 1.1.81

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.
@@ -244,7 +244,7 @@ module.exports = /******/function (modules) {
244
244
  /***/
245
245
  }),
246
246
  /***/10: (/***/function (module, exports) {
247
- module.exports = __webpack_require__(1693);
247
+ module.exports = __webpack_require__(6455);
248
248
 
249
249
  /***/
250
250
  }),
@@ -4992,7 +4992,7 @@ module.exports = /******/function (modules) {
4992
4992
  /***/
4993
4993
  }),
4994
4994
  /***/10: (/***/function (module, exports) {
4995
- module.exports = __webpack_require__(1693);
4995
+ module.exports = __webpack_require__(6455);
4996
4996
 
4997
4997
  /***/
4998
4998
  }),
@@ -9127,1004 +9127,120 @@ exports.f = __webpack_require__(5872) ? Object.defineProperty : function defineP
9127
9127
 
9128
9128
  /***/ }),
9129
9129
 
9130
- /***/ 1693:
9131
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
9130
+ /***/ 1698:
9131
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
9132
9132
 
9133
- module.exports = /******/function (modules) {
9134
- // webpackBootstrap
9135
- /******/ // The module cache
9136
- /******/
9137
- var installedModules = {};
9138
- /******/
9139
- /******/ // The require function
9140
- /******/
9141
- function __nested_webpack_require_198__(moduleId) {
9142
- /******/
9143
- /******/ // Check if module is in cache
9144
- /******/if (installedModules[moduleId]) {
9145
- /******/return installedModules[moduleId].exports;
9146
- /******/
9147
- }
9148
- /******/ // Create a new module (and put it into the cache)
9149
- /******/
9150
- var module = installedModules[moduleId] = {
9151
- /******/i: moduleId,
9152
- /******/l: false,
9153
- /******/exports: {}
9154
- /******/
9155
- };
9156
- /******/
9157
- /******/ // Execute the module function
9158
- /******/
9159
- modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_198__);
9160
- /******/
9161
- /******/ // Flag the module as loaded
9162
- /******/
9163
- module.l = true;
9164
- /******/
9165
- /******/ // Return the exports of the module
9166
- /******/
9167
- return module.exports;
9168
- /******/
9169
- }
9170
- /******/
9171
- /******/
9172
- /******/ // expose the modules object (__webpack_modules__)
9173
- /******/
9174
- __nested_webpack_require_198__.m = modules;
9175
- /******/
9176
- /******/ // expose the module cache
9177
- /******/
9178
- __nested_webpack_require_198__.c = installedModules;
9179
- /******/
9180
- /******/ // define getter function for harmony exports
9181
- /******/
9182
- __nested_webpack_require_198__.d = function (exports, name, getter) {
9183
- /******/if (!__nested_webpack_require_198__.o(exports, name)) {
9184
- /******/Object.defineProperty(exports, name, {
9185
- enumerable: true,
9186
- get: getter
9187
- });
9188
- /******/
9189
- }
9190
- /******/
9191
- };
9192
- /******/
9193
- /******/ // define __esModule on exports
9194
- /******/
9195
- __nested_webpack_require_198__.r = function (exports) {
9196
- /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
9197
- /******/Object.defineProperty(exports, Symbol.toStringTag, {
9198
- value: 'Module'
9199
- });
9200
- /******/
9133
+ "use strict";
9134
+
9135
+ var $ = __webpack_require__(6518);
9136
+ var union = __webpack_require__(4204);
9137
+ var setMethodAcceptSetLike = __webpack_require__(4916);
9138
+
9139
+ // `Set.prototype.union` method
9140
+ // https://tc39.es/ecma262/#sec-set.prototype.union
9141
+ $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
9142
+ union: union
9143
+ });
9144
+
9145
+
9146
+ /***/ }),
9147
+
9148
+ /***/ 1701:
9149
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
9150
+
9151
+ "use strict";
9152
+
9153
+ var $ = __webpack_require__(6518);
9154
+ var call = __webpack_require__(9565);
9155
+ var aCallable = __webpack_require__(9306);
9156
+ var anObject = __webpack_require__(8551);
9157
+ var getIteratorDirect = __webpack_require__(1767);
9158
+ var createIteratorProxy = __webpack_require__(9462);
9159
+ var callWithSafeIterationClosing = __webpack_require__(6319);
9160
+ var iteratorClose = __webpack_require__(9539);
9161
+ var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
9162
+ var IS_PURE = __webpack_require__(6395);
9163
+
9164
+ var mapWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
9165
+
9166
+ var IteratorProxy = createIteratorProxy(function () {
9167
+ var iterator = this.iterator;
9168
+ var result = anObject(call(this.next, iterator));
9169
+ var done = this.done = !!result.done;
9170
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
9171
+ });
9172
+
9173
+ // `Iterator.prototype.map` method
9174
+ // https://tc39.es/ecma262/#sec-iterator.prototype.map
9175
+ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE || mapWithoutClosingOnEarlyError }, {
9176
+ map: function map(mapper) {
9177
+ anObject(this);
9178
+ try {
9179
+ aCallable(mapper);
9180
+ } catch (error) {
9181
+ iteratorClose(this, 'throw', error);
9201
9182
  }
9202
- /******/
9203
- Object.defineProperty(exports, '__esModule', {
9204
- value: true
9205
- });
9206
- /******/
9207
- };
9208
- /******/
9209
- /******/ // create a fake namespace object
9210
- /******/ // mode & 1: value is a module id, require it
9211
- /******/ // mode & 2: merge all properties of value into the ns
9212
- /******/ // mode & 4: return value when already ns object
9213
- /******/ // mode & 8|1: behave like require
9214
- /******/
9215
- __nested_webpack_require_198__.t = function (value, mode) {
9216
- /******/if (mode & 1) value = __nested_webpack_require_198__(value);
9217
- /******/
9218
- if (mode & 8) return value;
9219
- /******/
9220
- if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value;
9221
- /******/
9222
- var ns = Object.create(null);
9223
- /******/
9224
- __nested_webpack_require_198__.r(ns);
9225
- /******/
9226
- Object.defineProperty(ns, 'default', {
9227
- enumerable: true,
9228
- value: value
9229
- });
9230
- /******/
9231
- if (mode & 2 && typeof value != 'string') for (var key in value) __nested_webpack_require_198__.d(ns, key, function (key) {
9232
- return value[key];
9233
- }.bind(null, key));
9234
- /******/
9235
- return ns;
9236
- /******/
9237
- };
9238
- /******/
9239
- /******/ // getDefaultExport function for compatibility with non-harmony modules
9240
- /******/
9241
- __nested_webpack_require_198__.n = function (module) {
9242
- /******/var getter = module && module.__esModule ? /******/function getDefault() {
9243
- return module['default'];
9244
- } : /******/function getModuleExports() {
9245
- return module;
9246
- };
9247
- /******/
9248
- __nested_webpack_require_198__.d(getter, 'a', getter);
9249
- /******/
9250
- return getter;
9251
- /******/
9252
- };
9253
- /******/
9254
- /******/ // Object.prototype.hasOwnProperty.call
9255
- /******/
9256
- __nested_webpack_require_198__.o = function (object, property) {
9257
- return Object.prototype.hasOwnProperty.call(object, property);
9258
- };
9259
- /******/
9260
- /******/ // __webpack_public_path__
9261
- /******/
9262
- __nested_webpack_require_198__.p = "/dist/";
9263
- /******/
9264
- /******/
9265
- /******/ // Load entry module and return exports
9266
- /******/
9267
- return __nested_webpack_require_198__(__nested_webpack_require_198__.s = 75);
9268
- /******/
9269
- }
9270
- /************************************************************************/
9271
- /******/({
9272
- /***/0: (/***/function (module, __nested_webpack_exports__, __nested_webpack_require_4031__) {
9273
- "use strict";
9274
9183
 
9275
- /* harmony export (binding) */
9276
- __nested_webpack_require_4031__.d(__nested_webpack_exports__, "a", function () {
9277
- return normalizeComponent;
9184
+ if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);
9185
+
9186
+ return new IteratorProxy(getIteratorDirect(this), {
9187
+ mapper: mapper
9278
9188
  });
9279
- /* globals __VUE_SSR_CONTEXT__ */
9189
+ }
9190
+ });
9280
9191
 
9281
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
9282
- // This module is a runtime utility for cleaner component module output and will
9283
- // be included in the final webpack user bundle.
9284
9192
 
9285
- function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */
9286
- shadowMode /* vue-cli only */) {
9287
- // Vue.extend constructor export interop
9288
- var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports;
9193
+ /***/ }),
9289
9194
 
9290
- // render functions
9291
- if (render) {
9292
- options.render = render;
9293
- options.staticRenderFns = staticRenderFns;
9294
- options._compiled = true;
9295
- }
9195
+ /***/ 1767:
9196
+ /***/ (function(module) {
9296
9197
 
9297
- // functional template
9298
- if (functionalTemplate) {
9299
- options.functional = true;
9300
- }
9198
+ "use strict";
9301
9199
 
9302
- // scopedId
9303
- if (scopeId) {
9304
- options._scopeId = 'data-v-' + scopeId;
9305
- }
9306
- var hook;
9307
- if (moduleIdentifier) {
9308
- // server build
9309
- hook = function (context) {
9310
- // 2.3 injection
9311
- context = context ||
9312
- // cached call
9313
- this.$vnode && this.$vnode.ssrContext ||
9314
- // stateful
9315
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
9316
- // 2.2 with runInNewContext: true
9317
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
9318
- context = __VUE_SSR_CONTEXT__;
9319
- }
9320
- // inject component styles
9321
- if (injectStyles) {
9322
- injectStyles.call(this, context);
9323
- }
9324
- // register component module identifier for async chunk inferrence
9325
- if (context && context._registeredComponents) {
9326
- context._registeredComponents.add(moduleIdentifier);
9327
- }
9328
- };
9329
- // used by ssr in case component is cached and beforeCreate
9330
- // never gets called
9331
- options._ssrRegister = hook;
9332
- } else if (injectStyles) {
9333
- hook = shadowMode ? function () {
9334
- injectStyles.call(this, this.$root.$options.shadowRoot);
9335
- } : injectStyles;
9336
- }
9337
- if (hook) {
9338
- if (options.functional) {
9339
- // for template-only hot-reload because in that case the render fn doesn't
9340
- // go through the normalizer
9341
- options._injectStyles = hook;
9342
- // register for functioal component in vue file
9343
- var originalRender = options.render;
9344
- options.render = function renderWithStyleInjection(h, context) {
9345
- hook.call(context);
9346
- return originalRender(h, context);
9347
- };
9348
- } else {
9349
- // inject component registration as beforeCreate hook
9350
- var existing = options.beforeCreate;
9351
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
9352
- }
9353
- }
9354
- return {
9355
- exports: scriptExports,
9356
- options: options
9357
- };
9358
- }
9200
+ // `GetIteratorDirect(obj)` abstract operation
9201
+ // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
9202
+ module.exports = function (obj) {
9203
+ return {
9204
+ iterator: obj,
9205
+ next: obj.next,
9206
+ done: false
9207
+ };
9208
+ };
9359
9209
 
9360
- /***/
9361
- }),
9362
- /***/11: (/***/function (module, exports) {
9363
- module.exports = __webpack_require__(6153);
9364
9210
 
9365
- /***/
9366
- }),
9367
- /***/21: (/***/function (module, exports) {
9368
- module.exports = __webpack_require__(3210);
9211
+ /***/ }),
9369
9212
 
9370
- /***/
9371
- }),
9372
- /***/4: (/***/function (module, exports) {
9373
- module.exports = __webpack_require__(4978);
9213
+ /***/ 1806:
9214
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
9374
9215
 
9375
- /***/
9376
- }),
9377
- /***/75: (/***/function (module, __nested_webpack_exports__, __nested_webpack_require_7613__) {
9378
- "use strict";
9216
+ "use strict";
9379
9217
 
9380
- __nested_webpack_require_7613__.r(__nested_webpack_exports__);
9218
+ var $ = __webpack_require__(6518);
9219
+ var anObject = __webpack_require__(8551);
9220
+ var iterate = __webpack_require__(2652);
9221
+ var getIteratorDirect = __webpack_require__(1767);
9381
9222
 
9382
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=343dd774&
9383
- var render = function () {
9384
- var _vm = this;
9385
- var _h = _vm.$createElement;
9386
- var _c = _vm._self._c || _h;
9387
- return _c("div", {
9388
- class: [_vm.type === "textarea" ? "el-textarea" : "el-input", _vm.inputSize ? "el-input--" + _vm.inputSize : "", {
9389
- "is-disabled": _vm.inputDisabled,
9390
- "is-exceed": _vm.inputExceed,
9391
- "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
9392
- "el-input-group--append": _vm.$slots.append,
9393
- "el-input-group--prepend": _vm.$slots.prepend,
9394
- "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
9395
- "el-input--suffix": _vm.$slots.suffix || _vm.suffixIcon || _vm.clearable || _vm.showPassword
9396
- }],
9397
- on: {
9398
- mouseenter: function ($event) {
9399
- _vm.hovering = true;
9400
- },
9401
- mouseleave: function ($event) {
9402
- _vm.hovering = false;
9403
- }
9404
- }
9405
- }, [_vm.type !== "textarea" ? [_vm.$slots.prepend ? _c("div", {
9406
- staticClass: "el-input-group__prepend"
9407
- }, [_vm._t("prepend")], 2) : _vm._e(), _vm.type !== "textarea" ? _c("input", _vm._b({
9408
- ref: "input",
9409
- staticClass: "el-input__inner",
9410
- attrs: {
9411
- tabindex: _vm.tabindex,
9412
- type: _vm.showPassword ? _vm.passwordVisible ? "text" : "password" : _vm.type,
9413
- disabled: _vm.inputDisabled,
9414
- readonly: _vm.readonly,
9415
- autocomplete: _vm.autoComplete || _vm.autocomplete,
9416
- "aria-label": _vm.label
9417
- },
9418
- on: {
9419
- compositionstart: _vm.handleCompositionStart,
9420
- compositionupdate: _vm.handleCompositionUpdate,
9421
- compositionend: _vm.handleCompositionEnd,
9422
- input: _vm.handleInput,
9423
- focus: _vm.handleFocus,
9424
- blur: _vm.handleBlur,
9425
- change: _vm.handleChange
9426
- }
9427
- }, "input", _vm.$attrs, false)) : _vm._e(), _vm.$slots.prefix || _vm.prefixIcon ? _c("span", {
9428
- staticClass: "el-input__prefix"
9429
- }, [_vm._t("prefix"), _vm.prefixIcon ? _c("i", {
9430
- staticClass: "el-input__icon",
9431
- class: _vm.prefixIcon
9432
- }) : _vm._e()], 2) : _vm._e(), _vm.getSuffixVisible() ? _c("span", {
9433
- staticClass: "el-input__suffix"
9434
- }, [_c("span", {
9435
- staticClass: "el-input__suffix-inner"
9436
- }, [!_vm.showClear || !_vm.showPwdVisible || !_vm.isWordLimitVisible ? [_vm._t("suffix"), _vm.suffixIcon ? _c("i", {
9437
- staticClass: "el-input__icon",
9438
- class: _vm.suffixIcon
9439
- }) : _vm._e()] : _vm._e(), _vm.showClear ? _c("i", {
9440
- staticClass: "el-input__icon el-icon-circle-close el-input__clear",
9441
- on: {
9442
- mousedown: function ($event) {
9443
- $event.preventDefault();
9444
- },
9445
- click: _vm.clear
9446
- }
9447
- }) : _vm._e(), _vm.showPwdVisible ? _c("i", {
9448
- staticClass: "el-input__icon el-icon-view el-input__clear",
9449
- on: {
9450
- click: _vm.handlePasswordVisible
9451
- }
9452
- }) : _vm._e(), _vm.isWordLimitVisible ? _c("span", {
9453
- staticClass: "el-input__count"
9454
- }, [_c("span", {
9455
- staticClass: "el-input__count-inner"
9456
- }, [_vm._v("\n " + _vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit) + "\n ")])]) : _vm._e()], 2), _vm.validateState ? _c("i", {
9457
- staticClass: "el-input__icon",
9458
- class: ["el-input__validateIcon", _vm.validateIcon]
9459
- }) : _vm._e()]) : _vm._e(), _vm.$slots.append ? _c("div", {
9460
- staticClass: "el-input-group__append"
9461
- }, [_vm._t("append")], 2) : _vm._e()] : _c("textarea", _vm._b({
9462
- ref: "textarea",
9463
- staticClass: "el-textarea__inner",
9464
- style: _vm.textareaStyle,
9465
- attrs: {
9466
- tabindex: _vm.tabindex,
9467
- disabled: _vm.inputDisabled,
9468
- readonly: _vm.readonly,
9469
- autocomplete: _vm.autoComplete || _vm.autocomplete,
9470
- "aria-label": _vm.label
9471
- },
9472
- on: {
9473
- compositionstart: _vm.handleCompositionStart,
9474
- compositionupdate: _vm.handleCompositionUpdate,
9475
- compositionend: _vm.handleCompositionEnd,
9476
- input: _vm.handleInput,
9477
- focus: _vm.handleFocus,
9478
- blur: _vm.handleBlur,
9479
- change: _vm.handleChange
9480
- }
9481
- }, "textarea", _vm.$attrs, false)), _vm.isWordLimitVisible && _vm.type === "textarea" ? _c("span", {
9482
- staticClass: "el-input__count"
9483
- }, [_vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit))]) : _vm._e()], 2);
9484
- };
9485
- var staticRenderFns = [];
9486
- render._withStripped = true;
9223
+ var push = [].push;
9487
9224
 
9488
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=343dd774&
9225
+ // `Iterator.prototype.toArray` method
9226
+ // https://tc39.es/ecma262/#sec-iterator.prototype.toarray
9227
+ $({ target: 'Iterator', proto: true, real: true }, {
9228
+ toArray: function toArray() {
9229
+ var result = [];
9230
+ iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true });
9231
+ return result;
9232
+ }
9233
+ });
9489
9234
 
9490
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
9491
- var emitter_ = __nested_webpack_require_7613__(4);
9492
- var emitter_default = /*#__PURE__*/__nested_webpack_require_7613__.n(emitter_);
9493
9235
 
9494
- // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
9495
- var migrating_ = __nested_webpack_require_7613__(11);
9496
- var migrating_default = /*#__PURE__*/__nested_webpack_require_7613__.n(migrating_);
9236
+ /***/ }),
9497
9237
 
9498
- // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
9499
- var hiddenTextarea = void 0;
9500
- var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
9501
- var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
9502
- function calculateNodeStyling(targetElement) {
9503
- var style = window.getComputedStyle(targetElement);
9504
- var boxSizing = style.getPropertyValue('box-sizing');
9505
- var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
9506
- var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
9507
- var contextStyle = CONTEXT_STYLE.map(function (name) {
9508
- return name + ':' + style.getPropertyValue(name);
9509
- }).join(';');
9510
- return {
9511
- contextStyle: contextStyle,
9512
- paddingSize: paddingSize,
9513
- borderSize: borderSize,
9514
- boxSizing: boxSizing
9515
- };
9516
- }
9517
- function calcTextareaHeight(targetElement) {
9518
- var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
9519
- var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
9520
- if (!hiddenTextarea) {
9521
- hiddenTextarea = document.createElement('textarea');
9522
- document.body.appendChild(hiddenTextarea);
9523
- }
9524
- var _calculateNodeStyling = calculateNodeStyling(targetElement),
9525
- paddingSize = _calculateNodeStyling.paddingSize,
9526
- borderSize = _calculateNodeStyling.borderSize,
9527
- boxSizing = _calculateNodeStyling.boxSizing,
9528
- contextStyle = _calculateNodeStyling.contextStyle;
9529
- hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
9530
- hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
9531
- var height = hiddenTextarea.scrollHeight;
9532
- var result = {};
9533
- if (boxSizing === 'border-box') {
9534
- height = height + borderSize;
9535
- } else if (boxSizing === 'content-box') {
9536
- height = height - paddingSize;
9537
- }
9538
- hiddenTextarea.value = '';
9539
- var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
9540
- if (minRows !== null) {
9541
- var minHeight = singleRowHeight * minRows;
9542
- if (boxSizing === 'border-box') {
9543
- minHeight = minHeight + paddingSize + borderSize;
9544
- }
9545
- height = Math.max(minHeight, height);
9546
- result.minHeight = minHeight + 'px';
9547
- }
9548
- if (maxRows !== null) {
9549
- var maxHeight = singleRowHeight * maxRows;
9550
- if (boxSizing === 'border-box') {
9551
- maxHeight = maxHeight + paddingSize + borderSize;
9552
- }
9553
- height = Math.min(maxHeight, height);
9554
- }
9555
- result.height = height + 'px';
9556
- hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
9557
- hiddenTextarea = null;
9558
- return result;
9559
- }
9560
- ;
9561
- // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
9562
- var merge_ = __nested_webpack_require_7613__(9);
9563
- var merge_default = /*#__PURE__*/__nested_webpack_require_7613__.n(merge_);
9238
+ /***/ 1812:
9239
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
9564
9240
 
9565
- // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
9566
- var shared_ = __nested_webpack_require_7613__(21);
9567
-
9568
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js&
9569
- //
9570
- //
9571
- //
9572
- //
9573
- //
9574
- //
9575
- //
9576
- //
9577
- //
9578
- //
9579
- //
9580
- //
9581
- //
9582
- //
9583
- //
9584
- //
9585
- //
9586
- //
9587
- //
9588
- //
9589
- //
9590
- //
9591
- //
9592
- //
9593
- //
9594
- //
9595
- //
9596
- //
9597
- //
9598
- //
9599
- //
9600
- //
9601
- //
9602
- //
9603
- //
9604
- //
9605
- //
9606
- //
9607
- //
9608
- //
9609
- //
9610
- //
9611
- //
9612
- //
9613
- //
9614
- //
9615
- //
9616
- //
9617
- //
9618
- //
9619
- //
9620
- //
9621
- //
9622
- //
9623
- //
9624
- //
9625
- //
9626
- //
9627
- //
9628
- //
9629
- //
9630
- //
9631
- //
9632
- //
9633
- //
9634
- //
9635
- //
9636
- //
9637
- //
9638
- //
9639
- //
9640
- //
9641
- //
9642
- //
9643
- //
9644
- //
9645
- //
9646
- //
9647
- //
9648
- //
9649
- //
9650
- //
9651
- //
9652
- //
9653
- //
9654
- //
9655
- //
9656
- //
9657
- //
9658
- //
9659
- //
9660
- //
9661
- //
9662
- //
9663
- //
9664
- //
9665
- //
9666
- //
9667
- //
9668
- //
9669
- //
9670
- //
9671
- //
9672
- //
9673
- //
9674
- //
9675
- //
9676
- //
9677
- //
9678
-
9679
- /* harmony default export */
9680
- var inputvue_type_script_lang_js_ = {
9681
- name: 'ElInput',
9682
- componentName: 'ElInput',
9683
- mixins: [emitter_default.a, migrating_default.a],
9684
- inheritAttrs: false,
9685
- inject: {
9686
- elForm: {
9687
- default: ''
9688
- },
9689
- elFormItem: {
9690
- default: ''
9691
- }
9692
- },
9693
- data: function data() {
9694
- return {
9695
- textareaCalcStyle: {},
9696
- hovering: false,
9697
- focused: false,
9698
- isComposing: false,
9699
- passwordVisible: false
9700
- };
9701
- },
9702
- props: {
9703
- value: [String, Number],
9704
- size: String,
9705
- resize: String,
9706
- form: String,
9707
- disabled: Boolean,
9708
- readonly: Boolean,
9709
- type: {
9710
- type: String,
9711
- default: 'text'
9712
- },
9713
- autosize: {
9714
- type: [Boolean, Object],
9715
- default: false
9716
- },
9717
- autocomplete: {
9718
- type: String,
9719
- default: 'off'
9720
- },
9721
- /** @Deprecated in next major version */
9722
- autoComplete: {
9723
- type: String,
9724
- validator: function validator(val) {
9725
- false && 0;
9726
- return true;
9727
- }
9728
- },
9729
- validateEvent: {
9730
- type: Boolean,
9731
- default: true
9732
- },
9733
- suffixIcon: String,
9734
- prefixIcon: String,
9735
- label: String,
9736
- clearable: {
9737
- type: Boolean,
9738
- default: false
9739
- },
9740
- showPassword: {
9741
- type: Boolean,
9742
- default: false
9743
- },
9744
- showWordLimit: {
9745
- type: Boolean,
9746
- default: false
9747
- },
9748
- tabindex: String
9749
- },
9750
- computed: {
9751
- _elFormItemSize: function _elFormItemSize() {
9752
- return (this.elFormItem || {}).elFormItemSize;
9753
- },
9754
- validateState: function validateState() {
9755
- return this.elFormItem ? this.elFormItem.validateState : '';
9756
- },
9757
- needStatusIcon: function needStatusIcon() {
9758
- return this.elForm ? this.elForm.statusIcon : false;
9759
- },
9760
- validateIcon: function validateIcon() {
9761
- return {
9762
- validating: 'el-icon-loading',
9763
- success: 'el-icon-circle-check',
9764
- error: 'el-icon-circle-close'
9765
- }[this.validateState];
9766
- },
9767
- textareaStyle: function textareaStyle() {
9768
- return merge_default()({}, this.textareaCalcStyle, {
9769
- resize: this.resize
9770
- });
9771
- },
9772
- inputSize: function inputSize() {
9773
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
9774
- },
9775
- inputDisabled: function inputDisabled() {
9776
- return this.disabled || (this.elForm || {}).disabled;
9777
- },
9778
- nativeInputValue: function nativeInputValue() {
9779
- return this.value === null || this.value === undefined ? '' : String(this.value);
9780
- },
9781
- showClear: function showClear() {
9782
- return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
9783
- },
9784
- showPwdVisible: function showPwdVisible() {
9785
- return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
9786
- },
9787
- isWordLimitVisible: function isWordLimitVisible() {
9788
- return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
9789
- },
9790
- upperLimit: function upperLimit() {
9791
- return this.$attrs.maxlength;
9792
- },
9793
- textLength: function textLength() {
9794
- if (typeof this.value === 'number') {
9795
- return String(this.value).length;
9796
- }
9797
- return (this.value || '').length;
9798
- },
9799
- inputExceed: function inputExceed() {
9800
- // show exceed style if length of initial value greater then maxlength
9801
- return this.isWordLimitVisible && this.textLength > this.upperLimit;
9802
- }
9803
- },
9804
- watch: {
9805
- value: function value(val) {
9806
- this.$nextTick(this.resizeTextarea);
9807
- if (this.validateEvent) {
9808
- this.dispatch('ElFormItem', 'el.form.change', [val]);
9809
- }
9810
- },
9811
- // native input value is set explicitly
9812
- // do not use v-model / :value in template
9813
- // see: https://github.com/ElemeFE/element/issues/14521
9814
- nativeInputValue: function nativeInputValue() {
9815
- this.setNativeInputValue();
9816
- },
9817
- // when change between <input> and <textarea>,
9818
- // update DOM dependent value and styles
9819
- // https://github.com/ElemeFE/element/issues/14857
9820
- type: function type() {
9821
- var _this = this;
9822
- this.$nextTick(function () {
9823
- _this.setNativeInputValue();
9824
- _this.resizeTextarea();
9825
- _this.updateIconOffset();
9826
- });
9827
- }
9828
- },
9829
- methods: {
9830
- focus: function focus() {
9831
- this.getInput().focus();
9832
- },
9833
- blur: function blur() {
9834
- this.getInput().blur();
9835
- },
9836
- getMigratingConfig: function getMigratingConfig() {
9837
- return {
9838
- props: {
9839
- 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
9840
- 'on-icon-click': 'on-icon-click is removed.'
9841
- },
9842
- events: {
9843
- 'click': 'click is removed.'
9844
- }
9845
- };
9846
- },
9847
- handleBlur: function handleBlur(event) {
9848
- this.focused = false;
9849
- this.$emit('blur', event);
9850
- if (this.validateEvent) {
9851
- this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
9852
- }
9853
- },
9854
- select: function select() {
9855
- this.getInput().select();
9856
- },
9857
- resizeTextarea: function resizeTextarea() {
9858
- if (this.$isServer) return;
9859
- var autosize = this.autosize,
9860
- type = this.type;
9861
- if (type !== 'textarea') return;
9862
- if (!autosize) {
9863
- this.textareaCalcStyle = {
9864
- minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
9865
- };
9866
- return;
9867
- }
9868
- var minRows = autosize.minRows;
9869
- var maxRows = autosize.maxRows;
9870
- this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
9871
- },
9872
- setNativeInputValue: function setNativeInputValue() {
9873
- var input = this.getInput();
9874
- if (!input) return;
9875
- if (input.value === this.nativeInputValue) return;
9876
- input.value = this.nativeInputValue;
9877
- },
9878
- handleFocus: function handleFocus(event) {
9879
- this.focused = true;
9880
- this.$emit('focus', event);
9881
- },
9882
- handleCompositionStart: function handleCompositionStart(event) {
9883
- this.$emit('compositionstart', event);
9884
- this.isComposing = true;
9885
- },
9886
- handleCompositionUpdate: function handleCompositionUpdate(event) {
9887
- this.$emit('compositionupdate', event);
9888
- var text = event.target.value;
9889
- var lastCharacter = text[text.length - 1] || '';
9890
- this.isComposing = !Object(shared_["isKorean"])(lastCharacter);
9891
- },
9892
- handleCompositionEnd: function handleCompositionEnd(event) {
9893
- this.$emit('compositionend', event);
9894
- if (this.isComposing) {
9895
- this.isComposing = false;
9896
- this.handleInput(event);
9897
- }
9898
- },
9899
- handleInput: function handleInput(event) {
9900
- // should not emit input during composition
9901
- // see: https://github.com/ElemeFE/element/issues/10516
9902
- if (this.isComposing) return;
9903
-
9904
- // hack for https://github.com/ElemeFE/element/issues/8548
9905
- // should remove the following line when we don't support IE
9906
- if (event.target.value === this.nativeInputValue) return;
9907
- this.$emit('input', event.target.value);
9908
-
9909
- // ensure native input value is controlled
9910
- // see: https://github.com/ElemeFE/element/issues/12850
9911
- this.$nextTick(this.setNativeInputValue);
9912
- },
9913
- handleChange: function handleChange(event) {
9914
- this.$emit('change', event.target.value);
9915
- },
9916
- calcIconOffset: function calcIconOffset(place) {
9917
- var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
9918
- if (!elList.length) return;
9919
- var el = null;
9920
- for (var i = 0; i < elList.length; i++) {
9921
- if (elList[i].parentNode === this.$el) {
9922
- el = elList[i];
9923
- break;
9924
- }
9925
- }
9926
- if (!el) return;
9927
- var pendantMap = {
9928
- suffix: 'append',
9929
- prefix: 'prepend'
9930
- };
9931
- var pendant = pendantMap[place];
9932
- if (this.$slots[pendant]) {
9933
- el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
9934
- } else {
9935
- el.removeAttribute('style');
9936
- }
9937
- },
9938
- updateIconOffset: function updateIconOffset() {
9939
- this.calcIconOffset('prefix');
9940
- this.calcIconOffset('suffix');
9941
- },
9942
- clear: function clear() {
9943
- this.$emit('input', '');
9944
- this.$emit('change', '');
9945
- this.$emit('clear');
9946
- },
9947
- handlePasswordVisible: function handlePasswordVisible() {
9948
- var _this2 = this;
9949
- this.passwordVisible = !this.passwordVisible;
9950
- this.$nextTick(function () {
9951
- _this2.focus();
9952
- });
9953
- },
9954
- getInput: function getInput() {
9955
- return this.$refs.input || this.$refs.textarea;
9956
- },
9957
- getSuffixVisible: function getSuffixVisible() {
9958
- return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
9959
- }
9960
- },
9961
- created: function created() {
9962
- this.$on('inputSelect', this.select);
9963
- },
9964
- mounted: function mounted() {
9965
- this.setNativeInputValue();
9966
- this.resizeTextarea();
9967
- this.updateIconOffset();
9968
- },
9969
- updated: function updated() {
9970
- this.$nextTick(this.updateIconOffset);
9971
- }
9972
- };
9973
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js&
9974
- /* harmony default export */
9975
- var src_inputvue_type_script_lang_js_ = inputvue_type_script_lang_js_;
9976
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
9977
- var componentNormalizer = __nested_webpack_require_7613__(0);
9978
-
9979
- // CONCATENATED MODULE: ./packages/input/src/input.vue
9980
-
9981
- /* normalize component */
9982
-
9983
- var component = Object(componentNormalizer["a" /* default */])(src_inputvue_type_script_lang_js_, render, staticRenderFns, false, null, null, null);
9984
-
9985
- /* hot reload */
9986
- if (false) // removed by dead control flow
9987
- { var api; }
9988
- component.options.__file = "packages/input/src/input.vue";
9989
- /* harmony default export */
9990
- var input = component.exports;
9991
- // CONCATENATED MODULE: ./packages/input/index.js
9992
-
9993
- /* istanbul ignore next */
9994
- input.install = function (Vue) {
9995
- Vue.component(input.name, input);
9996
- };
9997
-
9998
- /* harmony default export */
9999
- var packages_input = __nested_webpack_exports__["default"] = input;
10000
-
10001
- /***/
10002
- }),
10003
- /***/9: (/***/function (module, exports) {
10004
- module.exports = __webpack_require__(2047);
10005
-
10006
- /***/
10007
- })
10008
-
10009
- /******/
10010
- });
10011
-
10012
- /***/ }),
10013
-
10014
- /***/ 1698:
10015
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
10016
-
10017
- "use strict";
10018
-
10019
- var $ = __webpack_require__(6518);
10020
- var union = __webpack_require__(4204);
10021
- var setMethodAcceptSetLike = __webpack_require__(4916);
10022
-
10023
- // `Set.prototype.union` method
10024
- // https://tc39.es/ecma262/#sec-set.prototype.union
10025
- $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
10026
- union: union
10027
- });
10028
-
10029
-
10030
- /***/ }),
10031
-
10032
- /***/ 1701:
10033
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
10034
-
10035
- "use strict";
10036
-
10037
- var $ = __webpack_require__(6518);
10038
- var call = __webpack_require__(9565);
10039
- var aCallable = __webpack_require__(9306);
10040
- var anObject = __webpack_require__(8551);
10041
- var getIteratorDirect = __webpack_require__(1767);
10042
- var createIteratorProxy = __webpack_require__(9462);
10043
- var callWithSafeIterationClosing = __webpack_require__(6319);
10044
- var iteratorClose = __webpack_require__(9539);
10045
- var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(4549);
10046
- var IS_PURE = __webpack_require__(6395);
10047
-
10048
- var mapWithoutClosingOnEarlyError = !IS_PURE && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
10049
-
10050
- var IteratorProxy = createIteratorProxy(function () {
10051
- var iterator = this.iterator;
10052
- var result = anObject(call(this.next, iterator));
10053
- var done = this.done = !!result.done;
10054
- if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
10055
- });
10056
-
10057
- // `Iterator.prototype.map` method
10058
- // https://tc39.es/ecma262/#sec-iterator.prototype.map
10059
- $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE || mapWithoutClosingOnEarlyError }, {
10060
- map: function map(mapper) {
10061
- anObject(this);
10062
- try {
10063
- aCallable(mapper);
10064
- } catch (error) {
10065
- iteratorClose(this, 'throw', error);
10066
- }
10067
-
10068
- if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper);
10069
-
10070
- return new IteratorProxy(getIteratorDirect(this), {
10071
- mapper: mapper
10072
- });
10073
- }
10074
- });
10075
-
10076
-
10077
- /***/ }),
10078
-
10079
- /***/ 1767:
10080
- /***/ (function(module) {
10081
-
10082
- "use strict";
10083
-
10084
- // `GetIteratorDirect(obj)` abstract operation
10085
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
10086
- module.exports = function (obj) {
10087
- return {
10088
- iterator: obj,
10089
- next: obj.next,
10090
- done: false
10091
- };
10092
- };
10093
-
10094
-
10095
- /***/ }),
10096
-
10097
- /***/ 1806:
10098
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
10099
-
10100
- "use strict";
10101
-
10102
- var $ = __webpack_require__(6518);
10103
- var anObject = __webpack_require__(8551);
10104
- var iterate = __webpack_require__(2652);
10105
- var getIteratorDirect = __webpack_require__(1767);
10106
-
10107
- var push = [].push;
10108
-
10109
- // `Iterator.prototype.toArray` method
10110
- // https://tc39.es/ecma262/#sec-iterator.prototype.toarray
10111
- $({ target: 'Iterator', proto: true, real: true }, {
10112
- toArray: function toArray() {
10113
- var result = [];
10114
- iterate(getIteratorDirect(anObject(this)), push, { that: result, IS_RECORD: true });
10115
- return result;
10116
- }
10117
- });
10118
-
10119
-
10120
- /***/ }),
10121
-
10122
- /***/ 1812:
10123
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
10124
-
10125
- //! moment.js locale configuration
10126
- //! locale : Scottish Gaelic [gd]
10127
- //! author : Jon Ashdown : https://github.com/jonashdown
9241
+ //! moment.js locale configuration
9242
+ //! locale : Scottish Gaelic [gd]
9243
+ //! author : Jon Ashdown : https://github.com/jonashdown
10128
9244
 
10129
9245
  ;
10130
9246
  (function (global, factory) {
@@ -18185,7 +17301,7 @@ __webpack_require__(4114);__webpack_require__(8111);__webpack_require__(1148);__
18185
17301
  /******/__nested_webpack_require_604__.n=function(module){/******/var getter=module&&module.__esModule?/******/function getDefault(){return module['default'];}:/******/function getModuleExports(){return module;};/******/__nested_webpack_require_604__.d(getter,'a',getter);/******/return getter;/******/};/******//******/// Object.prototype.hasOwnProperty.call
18186
17302
  /******/__nested_webpack_require_604__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};/******//******/// __webpack_public_path__
18187
17303
  /******/__nested_webpack_require_604__.p="/dist/";/******//******//******/// Load entry module and return exports
18188
- /******/return __nested_webpack_require_604__(__nested_webpack_require_604__.s=46);/******/}/************************************************************************//******/([(/* 0 *//***/function(module,exports){module.exports=__webpack_require__(7832);/***/}),(/* 1 *//***/function(module,exports){module.exports=__webpack_require__(9071);/***/}),(/* 2 *//***/function(module,exports){module.exports=__webpack_require__(6943);/***/}),(/* 3 *//***/function(module,exports){module.exports=__webpack_require__(4978);/***/}),(/* 4 *//***/function(module,exports){module.exports=__webpack_require__(9720);/***/}),(/* 5 *//***/function(module,exports){module.exports=__webpack_require__(6238);/***/}),(/* 6 *//***/function(module,exports){module.exports=__webpack_require__(9274);/***/}),(/* 7 *//***/function(module,exports){module.exports=__webpack_require__(2047);/***/}),(/* 8 *//***/function(module,exports){module.exports=__webpack_require__(1693);/***/}),(/* 9 *//***/function(module,exports){module.exports=__webpack_require__(6153);/***/}),(/* 10 *//***/function(module,exports){module.exports=__webpack_require__(128);/***/}),(/* 11 *//***/function(module,exports){module.exports=__webpack_require__(1325);/***/}),(/* 12 *//***/function(module,exports){module.exports=__webpack_require__(5680);/***/}),(/* 13 *//***/function(module,exports){module.exports=__webpack_require__(6966);/***/}),(/* 14 *//***/function(module,exports){module.exports=__webpack_require__(1032);/***/}),(/* 15 *//***/function(module,exports){module.exports=__webpack_require__(8298);/***/}),(/* 16 *//***/function(module,exports){module.exports=__webpack_require__(5830);/***/}),(/* 17 *//***/function(module,exports){module.exports=__webpack_require__(6098);/***/}),(/* 18 *//***/function(module,exports){module.exports=__webpack_require__(3223);/***/}),(/* 19 *//***/function(module,exports){module.exports=__webpack_require__(3210);/***/}),(/* 20 *//***/function(module,exports){module.exports=__webpack_require__(4919);/***/}),(/* 21 *//***/function(module,exports){module.exports=__webpack_require__(4371);/***/}),(/* 22 *//***/function(module,exports){module.exports=__webpack_require__(7909);/***/}),(/* 23 *//***/function(module,exports){module.exports=__webpack_require__(8284);/***/}),(/* 24 *//***/function(module,exports){module.exports=__webpack_require__(1860);/***/}),(/* 25 *//***/function(module,exports){module.exports=__webpack_require__(2766);/***/}),(/* 26 *//***/function(module,exports){module.exports=__webpack_require__(9966);/***/}),(/* 27 *//***/function(module,exports){module.exports=__webpack_require__(8751);/***/}),(/* 28 *//***/function(module,exports){module.exports=__webpack_require__(8881);/***/}),(/* 29 *//***/function(module,exports){module.exports=__webpack_require__(5727);/***/}),(/* 30 *//***/function(module,exports){module.exports=__webpack_require__(5849);/***/}),(/* 31 *//***/function(module,exports){module.exports=__webpack_require__(4580);/***/}),(/* 32 *//***/function(module,exports){module.exports=__webpack_require__(1614);/***/}),(/* 33 *//***/function(module,exports){module.exports=__webpack_require__(4411);/***/}),(/* 34 *//***/function(module,exports){module.exports=__webpack_require__(5994);/***/}),(/* 35 *//***/function(module,exports){module.exports=__webpack_require__(3530);/***/}),(/* 36 *//***/function(module,exports){module.exports=__webpack_require__(7520);/***/}),(/* 37 *//***/function(module,exports){module.exports=__webpack_require__(1177);/***/}),(/* 38 *//***/function(module,exports){module.exports=__webpack_require__(3552);/***/}),(/* 39 *//***/function(module,exports){module.exports=__webpack_require__(5793);/***/}),(/* 40 *//***/function(module,exports){module.exports=__webpack_require__(5851);/***/}),(/* 41 *//***/function(module,exports){module.exports=__webpack_require__(6374);/***/}),(/* 42 *//***/function(module,exports){module.exports=__webpack_require__(31);/***/}),(/* 43 *//***/function(module,exports){module.exports=__webpack_require__(9922);/***/}),(/* 44 *//***/function(module,exports){module.exports=__webpack_require__(1286);/***/}),(/* 45 *//***/function(module,exports){module.exports=__webpack_require__(2548);/***/}),(/* 46 *//***/function(module,exports,__nested_webpack_require_8292__){module.exports=__nested_webpack_require_8292__(47);/***/}),(/* 47 *//***/function(module,__nested_webpack_exports__,__nested_webpack_require_8410__){"use strict";__nested_webpack_require_8410__.r(__nested_webpack_exports__);// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=template&id=7274f267&
17304
+ /******/return __nested_webpack_require_604__(__nested_webpack_require_604__.s=46);/******/}/************************************************************************//******/([(/* 0 *//***/function(module,exports){module.exports=__webpack_require__(7832);/***/}),(/* 1 *//***/function(module,exports){module.exports=__webpack_require__(9071);/***/}),(/* 2 *//***/function(module,exports){module.exports=__webpack_require__(6943);/***/}),(/* 3 *//***/function(module,exports){module.exports=__webpack_require__(4978);/***/}),(/* 4 *//***/function(module,exports){module.exports=__webpack_require__(9720);/***/}),(/* 5 *//***/function(module,exports){module.exports=__webpack_require__(6238);/***/}),(/* 6 *//***/function(module,exports){module.exports=__webpack_require__(9274);/***/}),(/* 7 *//***/function(module,exports){module.exports=__webpack_require__(2047);/***/}),(/* 8 *//***/function(module,exports){module.exports=__webpack_require__(6455);/***/}),(/* 9 *//***/function(module,exports){module.exports=__webpack_require__(6153);/***/}),(/* 10 *//***/function(module,exports){module.exports=__webpack_require__(128);/***/}),(/* 11 *//***/function(module,exports){module.exports=__webpack_require__(1325);/***/}),(/* 12 *//***/function(module,exports){module.exports=__webpack_require__(5680);/***/}),(/* 13 *//***/function(module,exports){module.exports=__webpack_require__(6966);/***/}),(/* 14 *//***/function(module,exports){module.exports=__webpack_require__(1032);/***/}),(/* 15 *//***/function(module,exports){module.exports=__webpack_require__(8298);/***/}),(/* 16 *//***/function(module,exports){module.exports=__webpack_require__(5830);/***/}),(/* 17 *//***/function(module,exports){module.exports=__webpack_require__(6098);/***/}),(/* 18 *//***/function(module,exports){module.exports=__webpack_require__(3223);/***/}),(/* 19 *//***/function(module,exports){module.exports=__webpack_require__(3210);/***/}),(/* 20 *//***/function(module,exports){module.exports=__webpack_require__(4919);/***/}),(/* 21 *//***/function(module,exports){module.exports=__webpack_require__(4371);/***/}),(/* 22 *//***/function(module,exports){module.exports=__webpack_require__(7909);/***/}),(/* 23 *//***/function(module,exports){module.exports=__webpack_require__(8284);/***/}),(/* 24 *//***/function(module,exports){module.exports=__webpack_require__(1860);/***/}),(/* 25 *//***/function(module,exports){module.exports=__webpack_require__(2766);/***/}),(/* 26 *//***/function(module,exports){module.exports=__webpack_require__(9966);/***/}),(/* 27 *//***/function(module,exports){module.exports=__webpack_require__(8751);/***/}),(/* 28 *//***/function(module,exports){module.exports=__webpack_require__(8881);/***/}),(/* 29 *//***/function(module,exports){module.exports=__webpack_require__(5727);/***/}),(/* 30 *//***/function(module,exports){module.exports=__webpack_require__(5849);/***/}),(/* 31 *//***/function(module,exports){module.exports=__webpack_require__(4580);/***/}),(/* 32 *//***/function(module,exports){module.exports=__webpack_require__(1614);/***/}),(/* 33 *//***/function(module,exports){module.exports=__webpack_require__(4411);/***/}),(/* 34 *//***/function(module,exports){module.exports=__webpack_require__(5994);/***/}),(/* 35 *//***/function(module,exports){module.exports=__webpack_require__(3530);/***/}),(/* 36 *//***/function(module,exports){module.exports=__webpack_require__(7520);/***/}),(/* 37 *//***/function(module,exports){module.exports=__webpack_require__(1177);/***/}),(/* 38 *//***/function(module,exports){module.exports=__webpack_require__(3552);/***/}),(/* 39 *//***/function(module,exports){module.exports=__webpack_require__(5793);/***/}),(/* 40 *//***/function(module,exports){module.exports=__webpack_require__(5851);/***/}),(/* 41 *//***/function(module,exports){module.exports=__webpack_require__(6374);/***/}),(/* 42 *//***/function(module,exports){module.exports=__webpack_require__(31);/***/}),(/* 43 *//***/function(module,exports){module.exports=__webpack_require__(9922);/***/}),(/* 44 *//***/function(module,exports){module.exports=__webpack_require__(1286);/***/}),(/* 45 *//***/function(module,exports){module.exports=__webpack_require__(2548);/***/}),(/* 46 *//***/function(module,exports,__nested_webpack_require_8292__){module.exports=__nested_webpack_require_8292__(47);/***/}),(/* 47 *//***/function(module,__nested_webpack_exports__,__nested_webpack_require_8410__){"use strict";__nested_webpack_require_8410__.r(__nested_webpack_exports__);// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=template&id=7274f267&
18189
17305
  var pagervue_type_template_id_7274f267_render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("ul",{staticClass:"el-pager",on:{click:_vm.onPagerClick}},[_vm.pageCount>0?_c("li",{staticClass:"number",class:{active:_vm.currentPage===1,disabled:_vm.disabled}},[_vm._v("1")]):_vm._e(),_vm.showPrevMore?_c("li",{staticClass:"el-icon more btn-quickprev",class:[_vm.quickprevIconClass,{disabled:_vm.disabled}],on:{mouseenter:function($event){_vm.onMouseenter("left");},mouseleave:function($event){_vm.quickprevIconClass="el-icon-more";}}}):_vm._e(),_vm._l(_vm.pagers,function(pager){return _c("li",{key:pager,staticClass:"number",class:{active:_vm.currentPage===pager,disabled:_vm.disabled}},[_vm._v(_vm._s(pager))]);}),_vm.showNextMore?_c("li",{staticClass:"el-icon more btn-quicknext",class:[_vm.quicknextIconClass,{disabled:_vm.disabled}],on:{mouseenter:function($event){_vm.onMouseenter("right");},mouseleave:function($event){_vm.quicknextIconClass="el-icon-more";}}}):_vm._e(),_vm.pageCount>1?_c("li",{staticClass:"number",class:{active:_vm.currentPage===_vm.pageCount,disabled:_vm.disabled}},[_vm._v(_vm._s(_vm.pageCount))]):_vm._e()],2);};var staticRenderFns=[];pagervue_type_template_id_7274f267_render._withStripped=true;// CONCATENATED MODULE: ./packages/pagination/src/pager.vue?vue&type=template&id=7274f267&
18190
17306
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/pager.vue?vue&type=script&lang=js&
18191
17307
  //
@@ -35084,545 +34200,1429 @@ function object(rule, value, callback, source, options) {
35084
34200
  if (value !== undefined) {
35085
34201
  es_rule.type(rule, value, source, errors, options);
35086
34202
  }
35087
- }
35088
- callback(errors);
35089
- }
35090
- /* harmony default export */ var validator_object = (object);
35091
- ;// ./node_modules/async-validator/es/validator/enum.js
35092
-
35093
-
35094
- var enum_ENUM = 'enum';
35095
-
35096
- /**
35097
- * Validates an enumerable list.
35098
- *
35099
- * @param rule The validation rule.
35100
- * @param value The value of the field on the source object.
35101
- * @param callback The callback function.
35102
- * @param source The source object being validated.
35103
- * @param options The validation options.
35104
- * @param options.messages The validation messages.
35105
- */
35106
- function enum_enumerable(rule, value, callback, source, options) {
35107
- var errors = [];
35108
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
35109
- if (validate) {
35110
- if (isEmptyValue(value) && !rule.required) {
35111
- return callback();
34203
+ }
34204
+ callback(errors);
34205
+ }
34206
+ /* harmony default export */ var validator_object = (object);
34207
+ ;// ./node_modules/async-validator/es/validator/enum.js
34208
+
34209
+
34210
+ var enum_ENUM = 'enum';
34211
+
34212
+ /**
34213
+ * Validates an enumerable list.
34214
+ *
34215
+ * @param rule The validation rule.
34216
+ * @param value The value of the field on the source object.
34217
+ * @param callback The callback function.
34218
+ * @param source The source object being validated.
34219
+ * @param options The validation options.
34220
+ * @param options.messages The validation messages.
34221
+ */
34222
+ function enum_enumerable(rule, value, callback, source, options) {
34223
+ var errors = [];
34224
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
34225
+ if (validate) {
34226
+ if (isEmptyValue(value) && !rule.required) {
34227
+ return callback();
34228
+ }
34229
+ es_rule.required(rule, value, source, errors, options);
34230
+ if (value) {
34231
+ es_rule[enum_ENUM](rule, value, source, errors, options);
34232
+ }
34233
+ }
34234
+ callback(errors);
34235
+ }
34236
+ /* harmony default export */ var validator_enum = (enum_enumerable);
34237
+ ;// ./node_modules/async-validator/es/validator/pattern.js
34238
+
34239
+
34240
+
34241
+ /**
34242
+ * Validates a regular expression pattern.
34243
+ *
34244
+ * Performs validation when a rule only contains
34245
+ * a pattern property but is not declared as a string type.
34246
+ *
34247
+ * @param rule The validation rule.
34248
+ * @param value The value of the field on the source object.
34249
+ * @param callback The callback function.
34250
+ * @param source The source object being validated.
34251
+ * @param options The validation options.
34252
+ * @param options.messages The validation messages.
34253
+ */
34254
+ function validator_pattern_pattern(rule, value, callback, source, options) {
34255
+ var errors = [];
34256
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
34257
+ if (validate) {
34258
+ if (isEmptyValue(value, 'string') && !rule.required) {
34259
+ return callback();
34260
+ }
34261
+ es_rule.required(rule, value, source, errors, options);
34262
+ if (!isEmptyValue(value, 'string')) {
34263
+ es_rule.pattern(rule, value, source, errors, options);
34264
+ }
34265
+ }
34266
+ callback(errors);
34267
+ }
34268
+ /* harmony default export */ var validator_pattern = (validator_pattern_pattern);
34269
+ ;// ./node_modules/async-validator/es/validator/date.js
34270
+
34271
+
34272
+ function date(rule, value, callback, source, options) {
34273
+ // console.log('integer rule called %j', rule);
34274
+ var errors = [];
34275
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
34276
+ // console.log('validate on %s value', value);
34277
+ if (validate) {
34278
+ if (isEmptyValue(value) && !rule.required) {
34279
+ return callback();
34280
+ }
34281
+ es_rule.required(rule, value, source, errors, options);
34282
+ if (!isEmptyValue(value)) {
34283
+ var dateObject = void 0;
34284
+ if (typeof value === 'number') {
34285
+ dateObject = new Date(value);
34286
+ } else {
34287
+ dateObject = value;
34288
+ }
34289
+ es_rule.type(rule, dateObject, source, errors, options);
34290
+ if (dateObject) {
34291
+ es_rule.range(rule, dateObject.getTime(), source, errors, options);
34292
+ }
34293
+ }
34294
+ }
34295
+ callback(errors);
34296
+ }
34297
+ /* harmony default export */ var validator_date = (date);
34298
+ ;// ./node_modules/async-validator/es/validator/required.js
34299
+
34300
+
34301
+ function required_required(rule, value, callback, source, options) {
34302
+ var errors = [];
34303
+ var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : (0,helpers_typeof/* default */.A)(value);
34304
+ es_rule.required(rule, value, source, errors, options, type);
34305
+ callback(errors);
34306
+ }
34307
+ /* harmony default export */ var validator_required = (required_required);
34308
+ ;// ./node_modules/async-validator/es/validator/type.js
34309
+
34310
+
34311
+ function type_type(rule, value, callback, source, options) {
34312
+ var ruleType = rule.type;
34313
+ var errors = [];
34314
+ var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
34315
+ if (validate) {
34316
+ if (isEmptyValue(value, ruleType) && !rule.required) {
34317
+ return callback();
34318
+ }
34319
+ es_rule.required(rule, value, source, errors, options, ruleType);
34320
+ if (!isEmptyValue(value, ruleType)) {
34321
+ es_rule.type(rule, value, source, errors, options);
34322
+ }
34323
+ }
34324
+ callback(errors);
34325
+ }
34326
+ /* harmony default export */ var validator_type = (type_type);
34327
+ ;// ./node_modules/async-validator/es/validator/index.js
34328
+
34329
+
34330
+
34331
+
34332
+
34333
+
34334
+
34335
+
34336
+
34337
+
34338
+
34339
+
34340
+
34341
+
34342
+ /* harmony default export */ var es_validator = ({
34343
+ string: validator_string,
34344
+ method: validator_method,
34345
+ number: validator_number,
34346
+ boolean: validator_boolean,
34347
+ regexp: validator_regexp,
34348
+ integer: validator_integer,
34349
+ float: validator_float,
34350
+ array: validator_array,
34351
+ object: validator_object,
34352
+ 'enum': validator_enum,
34353
+ pattern: validator_pattern,
34354
+ date: validator_date,
34355
+ url: validator_type,
34356
+ hex: validator_type,
34357
+ email: validator_type,
34358
+ required: validator_required
34359
+ });
34360
+ ;// ./node_modules/async-validator/es/messages.js
34361
+ function newMessages() {
34362
+ return {
34363
+ 'default': 'Validation error on field %s',
34364
+ required: '%s is required',
34365
+ 'enum': '%s must be one of %s',
34366
+ whitespace: '%s cannot be empty',
34367
+ date: {
34368
+ format: '%s date %s is invalid for format %s',
34369
+ parse: '%s date could not be parsed, %s is invalid ',
34370
+ invalid: '%s date %s is invalid'
34371
+ },
34372
+ types: {
34373
+ string: '%s is not a %s',
34374
+ method: '%s is not a %s (function)',
34375
+ array: '%s is not an %s',
34376
+ object: '%s is not an %s',
34377
+ number: '%s is not a %s',
34378
+ date: '%s is not a %s',
34379
+ boolean: '%s is not a %s',
34380
+ integer: '%s is not an %s',
34381
+ float: '%s is not a %s',
34382
+ regexp: '%s is not a valid %s',
34383
+ email: '%s is not a valid %s',
34384
+ url: '%s is not a valid %s',
34385
+ hex: '%s is not a valid %s'
34386
+ },
34387
+ string: {
34388
+ len: '%s must be exactly %s characters',
34389
+ min: '%s must be at least %s characters',
34390
+ max: '%s cannot be longer than %s characters',
34391
+ range: '%s must be between %s and %s characters'
34392
+ },
34393
+ number: {
34394
+ len: '%s must equal %s',
34395
+ min: '%s cannot be less than %s',
34396
+ max: '%s cannot be greater than %s',
34397
+ range: '%s must be between %s and %s'
34398
+ },
34399
+ array: {
34400
+ len: '%s must be exactly %s in length',
34401
+ min: '%s cannot be less than %s in length',
34402
+ max: '%s cannot be greater than %s in length',
34403
+ range: '%s must be between %s and %s in length'
34404
+ },
34405
+ pattern: {
34406
+ mismatch: '%s value %s does not match pattern %s'
34407
+ },
34408
+ clone: function clone() {
34409
+ var cloned = JSON.parse(JSON.stringify(this));
34410
+ cloned.clone = this.clone;
34411
+ return cloned;
34412
+ }
34413
+ };
34414
+ }
34415
+ var messages_messages = newMessages();
34416
+ ;// ./node_modules/async-validator/es/index.js
34417
+
34418
+
34419
+
34420
+
34421
+
34422
+
34423
+
34424
+
34425
+
34426
+
34427
+ /**
34428
+ * Encapsulates a validation schema.
34429
+ *
34430
+ * @param descriptor An object declaring validation rules
34431
+ * for this schema.
34432
+ */
34433
+ function Schema(descriptor) {
34434
+ this.rules = null;
34435
+ this._messages = messages_messages;
34436
+ this.define(descriptor);
34437
+ }
34438
+ Schema.prototype = {
34439
+ messages: function messages(_messages) {
34440
+ if (_messages) {
34441
+ this._messages = deepMerge(newMessages(), _messages);
34442
+ }
34443
+ return this._messages;
34444
+ },
34445
+ define: function define(rules) {
34446
+ if (!rules) {
34447
+ throw new Error('Cannot configure a schema with no rules');
34448
+ }
34449
+ if ((typeof rules === 'undefined' ? 'undefined' : (0,helpers_typeof/* default */.A)(rules)) !== 'object' || Array.isArray(rules)) {
34450
+ throw new Error('Rules must be an object');
34451
+ }
34452
+ this.rules = {};
34453
+ var z = void 0;
34454
+ var item = void 0;
34455
+ for (z in rules) {
34456
+ if (rules.hasOwnProperty(z)) {
34457
+ item = rules[z];
34458
+ this.rules[z] = Array.isArray(item) ? item : [item];
34459
+ }
34460
+ }
34461
+ },
34462
+ validate: function validate(source_) {
34463
+ var _this = this;
34464
+ var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
34465
+ var oc = arguments[2];
34466
+ var source = source_;
34467
+ var options = o;
34468
+ var callback = oc;
34469
+ if (typeof options === 'function') {
34470
+ callback = options;
34471
+ options = {};
34472
+ }
34473
+ if (!this.rules || Object.keys(this.rules).length === 0) {
34474
+ if (callback) {
34475
+ callback();
34476
+ }
34477
+ return;
34478
+ }
34479
+ function complete(results) {
34480
+ var i = void 0;
34481
+ var field = void 0;
34482
+ var errors = [];
34483
+ var fields = {};
34484
+ function add(e) {
34485
+ if (Array.isArray(e)) {
34486
+ errors = errors.concat.apply(errors, e);
34487
+ } else {
34488
+ errors.push(e);
34489
+ }
34490
+ }
34491
+ for (i = 0; i < results.length; i++) {
34492
+ add(results[i]);
34493
+ }
34494
+ if (!errors.length) {
34495
+ errors = null;
34496
+ fields = null;
34497
+ } else {
34498
+ for (i = 0; i < errors.length; i++) {
34499
+ field = errors[i].field;
34500
+ fields[field] = fields[field] || [];
34501
+ fields[field].push(errors[i]);
34502
+ }
34503
+ }
34504
+ callback(errors, fields);
34505
+ }
34506
+ if (options.messages) {
34507
+ var messages = this.messages();
34508
+ if (messages === messages_messages) {
34509
+ messages = newMessages();
34510
+ }
34511
+ deepMerge(messages, options.messages);
34512
+ options.messages = messages;
34513
+ } else {
34514
+ options.messages = this.messages();
34515
+ }
34516
+ var arr = void 0;
34517
+ var value = void 0;
34518
+ var series = {};
34519
+ var keys = options.keys || Object.keys(this.rules);
34520
+ keys.forEach(function (z) {
34521
+ arr = _this.rules[z];
34522
+ value = source[z];
34523
+ arr.forEach(function (r) {
34524
+ var rule = r;
34525
+ if (typeof rule.transform === 'function') {
34526
+ if (source === source_) {
34527
+ source = (0,helpers_extends/* default */.A)({}, source);
34528
+ }
34529
+ value = source[z] = rule.transform(value);
34530
+ }
34531
+ if (typeof rule === 'function') {
34532
+ rule = {
34533
+ validator: rule
34534
+ };
34535
+ } else {
34536
+ rule = (0,helpers_extends/* default */.A)({}, rule);
34537
+ }
34538
+ rule.validator = _this.getValidationMethod(rule);
34539
+ rule.field = z;
34540
+ rule.fullField = rule.fullField || z;
34541
+ rule.type = _this.getType(rule);
34542
+ if (!rule.validator) {
34543
+ return;
34544
+ }
34545
+ series[z] = series[z] || [];
34546
+ series[z].push({
34547
+ rule: rule,
34548
+ value: value,
34549
+ source: source,
34550
+ field: z
34551
+ });
34552
+ });
34553
+ });
34554
+ var errorFields = {};
34555
+ asyncMap(series, options, function (data, doIt) {
34556
+ var rule = data.rule;
34557
+ var deep = (rule.type === 'object' || rule.type === 'array') && ((0,helpers_typeof/* default */.A)(rule.fields) === 'object' || (0,helpers_typeof/* default */.A)(rule.defaultField) === 'object');
34558
+ deep = deep && (rule.required || !rule.required && data.value);
34559
+ rule.field = data.field;
34560
+ function addFullfield(key, schema) {
34561
+ return (0,helpers_extends/* default */.A)({}, schema, {
34562
+ fullField: rule.fullField + '.' + key
34563
+ });
34564
+ }
34565
+ function cb() {
34566
+ var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
34567
+ var errors = e;
34568
+ if (!Array.isArray(errors)) {
34569
+ errors = [errors];
34570
+ }
34571
+ if (errors.length) {
34572
+ warning('async-validator:', errors);
34573
+ }
34574
+ if (errors.length && rule.message) {
34575
+ errors = [].concat(rule.message);
34576
+ }
34577
+ errors = errors.map(complementError(rule));
34578
+ if (options.first && errors.length) {
34579
+ errorFields[rule.field] = 1;
34580
+ return doIt(errors);
34581
+ }
34582
+ if (!deep) {
34583
+ doIt(errors);
34584
+ } else {
34585
+ // if rule is required but the target object
34586
+ // does not exist fail at the rule level and don't
34587
+ // go deeper
34588
+ if (rule.required && !data.value) {
34589
+ if (rule.message) {
34590
+ errors = [].concat(rule.message).map(complementError(rule));
34591
+ } else if (options.error) {
34592
+ errors = [options.error(rule, format(options.messages.required, rule.field))];
34593
+ } else {
34594
+ errors = [];
34595
+ }
34596
+ return doIt(errors);
34597
+ }
34598
+ var fieldsSchema = {};
34599
+ if (rule.defaultField) {
34600
+ for (var k in data.value) {
34601
+ if (data.value.hasOwnProperty(k)) {
34602
+ fieldsSchema[k] = rule.defaultField;
34603
+ }
34604
+ }
34605
+ }
34606
+ fieldsSchema = (0,helpers_extends/* default */.A)({}, fieldsSchema, data.rule.fields);
34607
+ for (var f in fieldsSchema) {
34608
+ if (fieldsSchema.hasOwnProperty(f)) {
34609
+ var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
34610
+ fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
34611
+ }
34612
+ }
34613
+ var schema = new Schema(fieldsSchema);
34614
+ schema.messages(options.messages);
34615
+ if (data.rule.options) {
34616
+ data.rule.options.messages = options.messages;
34617
+ data.rule.options.error = options.error;
34618
+ }
34619
+ schema.validate(data.value, data.rule.options || options, function (errs) {
34620
+ doIt(errs && errs.length ? errors.concat(errs) : errs);
34621
+ });
34622
+ }
34623
+ }
34624
+ var res = rule.validator(rule, data.value, cb, data.source, options);
34625
+ if (res && res.then) {
34626
+ res.then(function () {
34627
+ return cb();
34628
+ }, function (e) {
34629
+ return cb(e);
34630
+ });
34631
+ }
34632
+ }, function (results) {
34633
+ complete(results);
34634
+ });
34635
+ },
34636
+ getType: function getType(rule) {
34637
+ if (rule.type === undefined && rule.pattern instanceof RegExp) {
34638
+ rule.type = 'pattern';
34639
+ }
34640
+ if (typeof rule.validator !== 'function' && rule.type && !es_validator.hasOwnProperty(rule.type)) {
34641
+ throw new Error(format('Unknown rule type %s', rule.type));
35112
34642
  }
35113
- es_rule.required(rule, value, source, errors, options);
35114
- if (value) {
35115
- es_rule[enum_ENUM](rule, value, source, errors, options);
34643
+ return rule.type || 'string';
34644
+ },
34645
+ getValidationMethod: function getValidationMethod(rule) {
34646
+ if (typeof rule.validator === 'function') {
34647
+ return rule.validator;
35116
34648
  }
35117
- }
35118
- callback(errors);
35119
- }
35120
- /* harmony default export */ var validator_enum = (enum_enumerable);
35121
- ;// ./node_modules/async-validator/es/validator/pattern.js
35122
-
35123
-
35124
-
35125
- /**
35126
- * Validates a regular expression pattern.
35127
- *
35128
- * Performs validation when a rule only contains
35129
- * a pattern property but is not declared as a string type.
35130
- *
35131
- * @param rule The validation rule.
35132
- * @param value The value of the field on the source object.
35133
- * @param callback The callback function.
35134
- * @param source The source object being validated.
35135
- * @param options The validation options.
35136
- * @param options.messages The validation messages.
35137
- */
35138
- function validator_pattern_pattern(rule, value, callback, source, options) {
35139
- var errors = [];
35140
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
35141
- if (validate) {
35142
- if (isEmptyValue(value, 'string') && !rule.required) {
35143
- return callback();
34649
+ var keys = Object.keys(rule);
34650
+ var messageIndex = keys.indexOf('message');
34651
+ if (messageIndex !== -1) {
34652
+ keys.splice(messageIndex, 1);
35144
34653
  }
35145
- es_rule.required(rule, value, source, errors, options);
35146
- if (!isEmptyValue(value, 'string')) {
35147
- es_rule.pattern(rule, value, source, errors, options);
34654
+ if (keys.length === 1 && keys[0] === 'required') {
34655
+ return es_validator.required;
35148
34656
  }
34657
+ return es_validator[this.getType(rule)] || false;
35149
34658
  }
35150
- callback(errors);
35151
- }
35152
- /* harmony default export */ var validator_pattern = (validator_pattern_pattern);
35153
- ;// ./node_modules/async-validator/es/validator/date.js
35154
-
35155
-
35156
- function date(rule, value, callback, source, options) {
35157
- // console.log('integer rule called %j', rule);
35158
- var errors = [];
35159
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
35160
- // console.log('validate on %s value', value);
35161
- if (validate) {
35162
- if (isEmptyValue(value) && !rule.required) {
35163
- return callback();
35164
- }
35165
- es_rule.required(rule, value, source, errors, options);
35166
- if (!isEmptyValue(value)) {
35167
- var dateObject = void 0;
35168
- if (typeof value === 'number') {
35169
- dateObject = new Date(value);
35170
- } else {
35171
- dateObject = value;
35172
- }
35173
- es_rule.type(rule, dateObject, source, errors, options);
35174
- if (dateObject) {
35175
- es_rule.range(rule, dateObject.getTime(), source, errors, options);
35176
- }
35177
- }
34659
+ };
34660
+ Schema.register = function register(type, validator) {
34661
+ if (typeof validator !== 'function') {
34662
+ throw new Error('Cannot register a validator by type, validator is not a function');
35178
34663
  }
35179
- callback(errors);
35180
- }
35181
- /* harmony default export */ var validator_date = (date);
35182
- ;// ./node_modules/async-validator/es/validator/required.js
34664
+ es_validator[type] = validator;
34665
+ };
34666
+ Schema.messages = messages_messages;
34667
+ /* harmony default export */ var es = (Schema);
35183
34668
 
34669
+ /***/ }),
35184
34670
 
35185
- function required_required(rule, value, callback, source, options) {
35186
- var errors = [];
35187
- var type = Array.isArray(value) ? 'array' : typeof value === 'undefined' ? 'undefined' : (0,helpers_typeof/* default */.A)(value);
35188
- es_rule.required(rule, value, source, errors, options, type);
35189
- callback(errors);
35190
- }
35191
- /* harmony default export */ var validator_required = (required_required);
35192
- ;// ./node_modules/async-validator/es/validator/type.js
34671
+ /***/ 6395:
34672
+ /***/ (function(module) {
35193
34673
 
34674
+ "use strict";
34675
+
34676
+ module.exports = false;
35194
34677
 
35195
- function type_type(rule, value, callback, source, options) {
35196
- var ruleType = rule.type;
35197
- var errors = [];
35198
- var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
35199
- if (validate) {
35200
- if (isEmptyValue(value, ruleType) && !rule.required) {
35201
- return callback();
35202
- }
35203
- es_rule.required(rule, value, source, errors, options, ruleType);
35204
- if (!isEmptyValue(value, ruleType)) {
35205
- es_rule.type(rule, value, source, errors, options);
35206
- }
35207
- }
35208
- callback(errors);
35209
- }
35210
- /* harmony default export */ var validator_type = (type_type);
35211
- ;// ./node_modules/async-validator/es/validator/index.js
35212
34678
 
34679
+ /***/ }),
35213
34680
 
34681
+ /***/ 6436:
34682
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
35214
34683
 
34684
+ //! moment.js locale configuration
34685
+ //! locale : Portuguese (Brazil) [pt-br]
34686
+ //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
35215
34687
 
34688
+ ;
34689
+ (function (global, factory) {
34690
+ true ? factory(__webpack_require__(9618)) : 0;
34691
+ })(this, function (moment) {
34692
+ 'use strict';
35216
34693
 
34694
+ //! moment.js locale configuration
34695
+ var ptBr = moment.defineLocale('pt-br', {
34696
+ months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
34697
+ monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
34698
+ weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
34699
+ weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
34700
+ weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
34701
+ weekdaysParseExact: true,
34702
+ longDateFormat: {
34703
+ LT: 'HH:mm',
34704
+ LTS: 'HH:mm:ss',
34705
+ L: 'DD/MM/YYYY',
34706
+ LL: 'D [de] MMMM [de] YYYY',
34707
+ LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
34708
+ LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
34709
+ },
34710
+ calendar: {
34711
+ sameDay: '[Hoje às] LT',
34712
+ nextDay: '[Amanhã às] LT',
34713
+ nextWeek: 'dddd [às] LT',
34714
+ lastDay: '[Ontem às] LT',
34715
+ lastWeek: function () {
34716
+ return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
34717
+ : '[Última] dddd [às] LT'; // Monday - Friday
34718
+ },
34719
+ sameElse: 'L'
34720
+ },
34721
+ relativeTime: {
34722
+ future: 'em %s',
34723
+ past: 'há %s',
34724
+ s: 'poucos segundos',
34725
+ ss: '%d segundos',
34726
+ m: 'um minuto',
34727
+ mm: '%d minutos',
34728
+ h: 'uma hora',
34729
+ hh: '%d horas',
34730
+ d: 'um dia',
34731
+ dd: '%d dias',
34732
+ M: 'um mês',
34733
+ MM: '%d meses',
34734
+ y: 'um ano',
34735
+ yy: '%d anos'
34736
+ },
34737
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
34738
+ ordinal: '%dº',
34739
+ invalidDate: 'Data inválida'
34740
+ });
34741
+ return ptBr;
34742
+ });
35217
34743
 
34744
+ /***/ }),
35218
34745
 
34746
+ /***/ 6455:
34747
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
35219
34748
 
34749
+ module.exports = /******/function (modules) {
34750
+ // webpackBootstrap
34751
+ /******/ // The module cache
34752
+ /******/
34753
+ var installedModules = {};
34754
+ /******/
34755
+ /******/ // The require function
34756
+ /******/
34757
+ function __nested_webpack_require_198__(moduleId) {
34758
+ /******/
34759
+ /******/ // Check if module is in cache
34760
+ /******/if (installedModules[moduleId]) {
34761
+ /******/return installedModules[moduleId].exports;
34762
+ /******/
34763
+ }
34764
+ /******/ // Create a new module (and put it into the cache)
34765
+ /******/
34766
+ var module = installedModules[moduleId] = {
34767
+ /******/i: moduleId,
34768
+ /******/l: false,
34769
+ /******/exports: {}
34770
+ /******/
34771
+ };
34772
+ /******/
34773
+ /******/ // Execute the module function
34774
+ /******/
34775
+ modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_198__);
34776
+ /******/
34777
+ /******/ // Flag the module as loaded
34778
+ /******/
34779
+ module.l = true;
34780
+ /******/
34781
+ /******/ // Return the exports of the module
34782
+ /******/
34783
+ return module.exports;
34784
+ /******/
34785
+ }
34786
+ /******/
34787
+ /******/
34788
+ /******/ // expose the modules object (__webpack_modules__)
34789
+ /******/
34790
+ __nested_webpack_require_198__.m = modules;
34791
+ /******/
34792
+ /******/ // expose the module cache
34793
+ /******/
34794
+ __nested_webpack_require_198__.c = installedModules;
34795
+ /******/
34796
+ /******/ // define getter function for harmony exports
34797
+ /******/
34798
+ __nested_webpack_require_198__.d = function (exports, name, getter) {
34799
+ /******/if (!__nested_webpack_require_198__.o(exports, name)) {
34800
+ /******/Object.defineProperty(exports, name, {
34801
+ enumerable: true,
34802
+ get: getter
34803
+ });
34804
+ /******/
34805
+ }
34806
+ /******/
34807
+ };
34808
+ /******/
34809
+ /******/ // define __esModule on exports
34810
+ /******/
34811
+ __nested_webpack_require_198__.r = function (exports) {
34812
+ /******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
34813
+ /******/Object.defineProperty(exports, Symbol.toStringTag, {
34814
+ value: 'Module'
34815
+ });
34816
+ /******/
34817
+ }
34818
+ /******/
34819
+ Object.defineProperty(exports, '__esModule', {
34820
+ value: true
34821
+ });
34822
+ /******/
34823
+ };
34824
+ /******/
34825
+ /******/ // create a fake namespace object
34826
+ /******/ // mode & 1: value is a module id, require it
34827
+ /******/ // mode & 2: merge all properties of value into the ns
34828
+ /******/ // mode & 4: return value when already ns object
34829
+ /******/ // mode & 8|1: behave like require
34830
+ /******/
34831
+ __nested_webpack_require_198__.t = function (value, mode) {
34832
+ /******/if (mode & 1) value = __nested_webpack_require_198__(value);
34833
+ /******/
34834
+ if (mode & 8) return value;
34835
+ /******/
34836
+ if (mode & 4 && typeof value === 'object' && value && value.__esModule) return value;
34837
+ /******/
34838
+ var ns = Object.create(null);
34839
+ /******/
34840
+ __nested_webpack_require_198__.r(ns);
34841
+ /******/
34842
+ Object.defineProperty(ns, 'default', {
34843
+ enumerable: true,
34844
+ value: value
34845
+ });
34846
+ /******/
34847
+ if (mode & 2 && typeof value != 'string') for (var key in value) __nested_webpack_require_198__.d(ns, key, function (key) {
34848
+ return value[key];
34849
+ }.bind(null, key));
34850
+ /******/
34851
+ return ns;
34852
+ /******/
34853
+ };
34854
+ /******/
34855
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
34856
+ /******/
34857
+ __nested_webpack_require_198__.n = function (module) {
34858
+ /******/var getter = module && module.__esModule ? /******/function getDefault() {
34859
+ return module['default'];
34860
+ } : /******/function getModuleExports() {
34861
+ return module;
34862
+ };
34863
+ /******/
34864
+ __nested_webpack_require_198__.d(getter, 'a', getter);
34865
+ /******/
34866
+ return getter;
34867
+ /******/
34868
+ };
34869
+ /******/
34870
+ /******/ // Object.prototype.hasOwnProperty.call
34871
+ /******/
34872
+ __nested_webpack_require_198__.o = function (object, property) {
34873
+ return Object.prototype.hasOwnProperty.call(object, property);
34874
+ };
34875
+ /******/
34876
+ /******/ // __webpack_public_path__
34877
+ /******/
34878
+ __nested_webpack_require_198__.p = "/dist/";
34879
+ /******/
34880
+ /******/
34881
+ /******/ // Load entry module and return exports
34882
+ /******/
34883
+ return __nested_webpack_require_198__(__nested_webpack_require_198__.s = 75);
34884
+ /******/
34885
+ }
34886
+ /************************************************************************/
34887
+ /******/({
34888
+ /***/0: (/***/function (module, __nested_webpack_exports__, __nested_webpack_require_4031__) {
34889
+ "use strict";
35220
34890
 
34891
+ /* harmony export (binding) */
34892
+ __nested_webpack_require_4031__.d(__nested_webpack_exports__, "a", function () {
34893
+ return normalizeComponent;
34894
+ });
34895
+ /* globals __VUE_SSR_CONTEXT__ */
35221
34896
 
34897
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
34898
+ // This module is a runtime utility for cleaner component module output and will
34899
+ // be included in the final webpack user bundle.
35222
34900
 
34901
+ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, /* server only */
34902
+ shadowMode /* vue-cli only */) {
34903
+ // Vue.extend constructor export interop
34904
+ var options = typeof scriptExports === 'function' ? scriptExports.options : scriptExports;
35223
34905
 
34906
+ // render functions
34907
+ if (render) {
34908
+ options.render = render;
34909
+ options.staticRenderFns = staticRenderFns;
34910
+ options._compiled = true;
34911
+ }
35224
34912
 
34913
+ // functional template
34914
+ if (functionalTemplate) {
34915
+ options.functional = true;
34916
+ }
35225
34917
 
35226
- /* harmony default export */ var es_validator = ({
35227
- string: validator_string,
35228
- method: validator_method,
35229
- number: validator_number,
35230
- boolean: validator_boolean,
35231
- regexp: validator_regexp,
35232
- integer: validator_integer,
35233
- float: validator_float,
35234
- array: validator_array,
35235
- object: validator_object,
35236
- 'enum': validator_enum,
35237
- pattern: validator_pattern,
35238
- date: validator_date,
35239
- url: validator_type,
35240
- hex: validator_type,
35241
- email: validator_type,
35242
- required: validator_required
35243
- });
35244
- ;// ./node_modules/async-validator/es/messages.js
35245
- function newMessages() {
35246
- return {
35247
- 'default': 'Validation error on field %s',
35248
- required: '%s is required',
35249
- 'enum': '%s must be one of %s',
35250
- whitespace: '%s cannot be empty',
35251
- date: {
35252
- format: '%s date %s is invalid for format %s',
35253
- parse: '%s date could not be parsed, %s is invalid ',
35254
- invalid: '%s date %s is invalid'
35255
- },
35256
- types: {
35257
- string: '%s is not a %s',
35258
- method: '%s is not a %s (function)',
35259
- array: '%s is not an %s',
35260
- object: '%s is not an %s',
35261
- number: '%s is not a %s',
35262
- date: '%s is not a %s',
35263
- boolean: '%s is not a %s',
35264
- integer: '%s is not an %s',
35265
- float: '%s is not a %s',
35266
- regexp: '%s is not a valid %s',
35267
- email: '%s is not a valid %s',
35268
- url: '%s is not a valid %s',
35269
- hex: '%s is not a valid %s'
35270
- },
35271
- string: {
35272
- len: '%s must be exactly %s characters',
35273
- min: '%s must be at least %s characters',
35274
- max: '%s cannot be longer than %s characters',
35275
- range: '%s must be between %s and %s characters'
35276
- },
35277
- number: {
35278
- len: '%s must equal %s',
35279
- min: '%s cannot be less than %s',
35280
- max: '%s cannot be greater than %s',
35281
- range: '%s must be between %s and %s'
35282
- },
35283
- array: {
35284
- len: '%s must be exactly %s in length',
35285
- min: '%s cannot be less than %s in length',
35286
- max: '%s cannot be greater than %s in length',
35287
- range: '%s must be between %s and %s in length'
35288
- },
35289
- pattern: {
35290
- mismatch: '%s value %s does not match pattern %s'
35291
- },
35292
- clone: function clone() {
35293
- var cloned = JSON.parse(JSON.stringify(this));
35294
- cloned.clone = this.clone;
35295
- return cloned;
35296
- }
35297
- };
35298
- }
35299
- var messages_messages = newMessages();
35300
- ;// ./node_modules/async-validator/es/index.js
34918
+ // scopedId
34919
+ if (scopeId) {
34920
+ options._scopeId = 'data-v-' + scopeId;
34921
+ }
34922
+ var hook;
34923
+ if (moduleIdentifier) {
34924
+ // server build
34925
+ hook = function (context) {
34926
+ // 2.3 injection
34927
+ context = context ||
34928
+ // cached call
34929
+ this.$vnode && this.$vnode.ssrContext ||
34930
+ // stateful
34931
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
34932
+ // 2.2 with runInNewContext: true
34933
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
34934
+ context = __VUE_SSR_CONTEXT__;
34935
+ }
34936
+ // inject component styles
34937
+ if (injectStyles) {
34938
+ injectStyles.call(this, context);
34939
+ }
34940
+ // register component module identifier for async chunk inferrence
34941
+ if (context && context._registeredComponents) {
34942
+ context._registeredComponents.add(moduleIdentifier);
34943
+ }
34944
+ };
34945
+ // used by ssr in case component is cached and beforeCreate
34946
+ // never gets called
34947
+ options._ssrRegister = hook;
34948
+ } else if (injectStyles) {
34949
+ hook = shadowMode ? function () {
34950
+ injectStyles.call(this, this.$root.$options.shadowRoot);
34951
+ } : injectStyles;
34952
+ }
34953
+ if (hook) {
34954
+ if (options.functional) {
34955
+ // for template-only hot-reload because in that case the render fn doesn't
34956
+ // go through the normalizer
34957
+ options._injectStyles = hook;
34958
+ // register for functioal component in vue file
34959
+ var originalRender = options.render;
34960
+ options.render = function renderWithStyleInjection(h, context) {
34961
+ hook.call(context);
34962
+ return originalRender(h, context);
34963
+ };
34964
+ } else {
34965
+ // inject component registration as beforeCreate hook
34966
+ var existing = options.beforeCreate;
34967
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
34968
+ }
34969
+ }
34970
+ return {
34971
+ exports: scriptExports,
34972
+ options: options
34973
+ };
34974
+ }
35301
34975
 
34976
+ /***/
34977
+ }),
34978
+ /***/11: (/***/function (module, exports) {
34979
+ module.exports = __webpack_require__(6153);
35302
34980
 
34981
+ /***/
34982
+ }),
34983
+ /***/21: (/***/function (module, exports) {
34984
+ module.exports = __webpack_require__(3210);
35303
34985
 
34986
+ /***/
34987
+ }),
34988
+ /***/4: (/***/function (module, exports) {
34989
+ module.exports = __webpack_require__(4978);
35304
34990
 
34991
+ /***/
34992
+ }),
34993
+ /***/75: (/***/function (module, __nested_webpack_exports__, __nested_webpack_require_7613__) {
34994
+ "use strict";
35305
34995
 
34996
+ __nested_webpack_require_7613__.r(__nested_webpack_exports__);
35306
34997
 
34998
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=343dd774&
34999
+ var render = function () {
35000
+ var _vm = this;
35001
+ var _h = _vm.$createElement;
35002
+ var _c = _vm._self._c || _h;
35003
+ return _c("div", {
35004
+ class: [_vm.type === "textarea" ? "el-textarea" : "el-input", _vm.inputSize ? "el-input--" + _vm.inputSize : "", {
35005
+ "is-disabled": _vm.inputDisabled,
35006
+ "is-exceed": _vm.inputExceed,
35007
+ "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
35008
+ "el-input-group--append": _vm.$slots.append,
35009
+ "el-input-group--prepend": _vm.$slots.prepend,
35010
+ "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
35011
+ "el-input--suffix": _vm.$slots.suffix || _vm.suffixIcon || _vm.clearable || _vm.showPassword
35012
+ }],
35013
+ on: {
35014
+ mouseenter: function ($event) {
35015
+ _vm.hovering = true;
35016
+ },
35017
+ mouseleave: function ($event) {
35018
+ _vm.hovering = false;
35019
+ }
35020
+ }
35021
+ }, [_vm.type !== "textarea" ? [_vm.$slots.prepend ? _c("div", {
35022
+ staticClass: "el-input-group__prepend"
35023
+ }, [_vm._t("prepend")], 2) : _vm._e(), _vm.type !== "textarea" ? _c("input", _vm._b({
35024
+ ref: "input",
35025
+ staticClass: "el-input__inner",
35026
+ attrs: {
35027
+ tabindex: _vm.tabindex,
35028
+ type: _vm.showPassword ? _vm.passwordVisible ? "text" : "password" : _vm.type,
35029
+ disabled: _vm.inputDisabled,
35030
+ readonly: _vm.readonly,
35031
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
35032
+ "aria-label": _vm.label
35033
+ },
35034
+ on: {
35035
+ compositionstart: _vm.handleCompositionStart,
35036
+ compositionupdate: _vm.handleCompositionUpdate,
35037
+ compositionend: _vm.handleCompositionEnd,
35038
+ input: _vm.handleInput,
35039
+ focus: _vm.handleFocus,
35040
+ blur: _vm.handleBlur,
35041
+ change: _vm.handleChange
35042
+ }
35043
+ }, "input", _vm.$attrs, false)) : _vm._e(), _vm.$slots.prefix || _vm.prefixIcon ? _c("span", {
35044
+ staticClass: "el-input__prefix"
35045
+ }, [_vm._t("prefix"), _vm.prefixIcon ? _c("i", {
35046
+ staticClass: "el-input__icon",
35047
+ class: _vm.prefixIcon
35048
+ }) : _vm._e()], 2) : _vm._e(), _vm.getSuffixVisible() ? _c("span", {
35049
+ staticClass: "el-input__suffix"
35050
+ }, [_c("span", {
35051
+ staticClass: "el-input__suffix-inner"
35052
+ }, [!_vm.showClear || !_vm.showPwdVisible || !_vm.isWordLimitVisible ? [_vm._t("suffix"), _vm.suffixIcon ? _c("i", {
35053
+ staticClass: "el-input__icon",
35054
+ class: _vm.suffixIcon
35055
+ }) : _vm._e()] : _vm._e(), _vm.showClear ? _c("i", {
35056
+ staticClass: "el-input__icon el-icon-circle-close el-input__clear",
35057
+ on: {
35058
+ mousedown: function ($event) {
35059
+ $event.preventDefault();
35060
+ },
35061
+ click: _vm.clear
35062
+ }
35063
+ }) : _vm._e(), _vm.showPwdVisible ? _c("i", {
35064
+ staticClass: "el-input__icon el-icon-view el-input__clear",
35065
+ on: {
35066
+ click: _vm.handlePasswordVisible
35067
+ }
35068
+ }) : _vm._e(), _vm.isWordLimitVisible ? _c("span", {
35069
+ staticClass: "el-input__count"
35070
+ }, [_c("span", {
35071
+ staticClass: "el-input__count-inner"
35072
+ }, [_vm._v("\n " + _vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit) + "\n ")])]) : _vm._e()], 2), _vm.validateState ? _c("i", {
35073
+ staticClass: "el-input__icon",
35074
+ class: ["el-input__validateIcon", _vm.validateIcon]
35075
+ }) : _vm._e()]) : _vm._e(), _vm.$slots.append ? _c("div", {
35076
+ staticClass: "el-input-group__append"
35077
+ }, [_vm._t("append")], 2) : _vm._e()] : _c("textarea", _vm._b({
35078
+ ref: "textarea",
35079
+ staticClass: "el-textarea__inner",
35080
+ style: _vm.textareaStyle,
35081
+ attrs: {
35082
+ tabindex: _vm.tabindex,
35083
+ disabled: _vm.inputDisabled,
35084
+ readonly: _vm.readonly,
35085
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
35086
+ "aria-label": _vm.label
35087
+ },
35088
+ on: {
35089
+ compositionstart: _vm.handleCompositionStart,
35090
+ compositionupdate: _vm.handleCompositionUpdate,
35091
+ compositionend: _vm.handleCompositionEnd,
35092
+ input: _vm.handleInput,
35093
+ focus: _vm.handleFocus,
35094
+ blur: _vm.handleBlur,
35095
+ change: _vm.handleChange
35096
+ }
35097
+ }, "textarea", _vm.$attrs, false)), _vm.isWordLimitVisible && _vm.type === "textarea" ? _c("span", {
35098
+ staticClass: "el-input__count"
35099
+ }, [_vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit))]) : _vm._e()], 2);
35100
+ };
35101
+ var staticRenderFns = [];
35102
+ render._withStripped = true;
35307
35103
 
35104
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=343dd774&
35308
35105
 
35106
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
35107
+ var emitter_ = __nested_webpack_require_7613__(4);
35108
+ var emitter_default = /*#__PURE__*/__nested_webpack_require_7613__.n(emitter_);
35309
35109
 
35110
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
35111
+ var migrating_ = __nested_webpack_require_7613__(11);
35112
+ var migrating_default = /*#__PURE__*/__nested_webpack_require_7613__.n(migrating_);
35310
35113
 
35311
- /**
35312
- * Encapsulates a validation schema.
35313
- *
35314
- * @param descriptor An object declaring validation rules
35315
- * for this schema.
35316
- */
35317
- function Schema(descriptor) {
35318
- this.rules = null;
35319
- this._messages = messages_messages;
35320
- this.define(descriptor);
35321
- }
35322
- Schema.prototype = {
35323
- messages: function messages(_messages) {
35324
- if (_messages) {
35325
- this._messages = deepMerge(newMessages(), _messages);
35326
- }
35327
- return this._messages;
35328
- },
35329
- define: function define(rules) {
35330
- if (!rules) {
35331
- throw new Error('Cannot configure a schema with no rules');
35332
- }
35333
- if ((typeof rules === 'undefined' ? 'undefined' : (0,helpers_typeof/* default */.A)(rules)) !== 'object' || Array.isArray(rules)) {
35334
- throw new Error('Rules must be an object');
35114
+ // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
35115
+ var hiddenTextarea = void 0;
35116
+ var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
35117
+ var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
35118
+ function calculateNodeStyling(targetElement) {
35119
+ var style = window.getComputedStyle(targetElement);
35120
+ var boxSizing = style.getPropertyValue('box-sizing');
35121
+ var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
35122
+ var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
35123
+ var contextStyle = CONTEXT_STYLE.map(function (name) {
35124
+ return name + ':' + style.getPropertyValue(name);
35125
+ }).join(';');
35126
+ return {
35127
+ contextStyle: contextStyle,
35128
+ paddingSize: paddingSize,
35129
+ borderSize: borderSize,
35130
+ boxSizing: boxSizing
35131
+ };
35335
35132
  }
35336
- this.rules = {};
35337
- var z = void 0;
35338
- var item = void 0;
35339
- for (z in rules) {
35340
- if (rules.hasOwnProperty(z)) {
35341
- item = rules[z];
35342
- this.rules[z] = Array.isArray(item) ? item : [item];
35133
+ function calcTextareaHeight(targetElement) {
35134
+ var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
35135
+ var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
35136
+ if (!hiddenTextarea) {
35137
+ hiddenTextarea = document.createElement('textarea');
35138
+ document.body.appendChild(hiddenTextarea);
35343
35139
  }
35344
- }
35345
- },
35346
- validate: function validate(source_) {
35347
- var _this = this;
35348
- var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
35349
- var oc = arguments[2];
35350
- var source = source_;
35351
- var options = o;
35352
- var callback = oc;
35353
- if (typeof options === 'function') {
35354
- callback = options;
35355
- options = {};
35356
- }
35357
- if (!this.rules || Object.keys(this.rules).length === 0) {
35358
- if (callback) {
35359
- callback();
35140
+ var _calculateNodeStyling = calculateNodeStyling(targetElement),
35141
+ paddingSize = _calculateNodeStyling.paddingSize,
35142
+ borderSize = _calculateNodeStyling.borderSize,
35143
+ boxSizing = _calculateNodeStyling.boxSizing,
35144
+ contextStyle = _calculateNodeStyling.contextStyle;
35145
+ hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
35146
+ hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
35147
+ var height = hiddenTextarea.scrollHeight;
35148
+ var result = {};
35149
+ if (boxSizing === 'border-box') {
35150
+ height = height + borderSize;
35151
+ } else if (boxSizing === 'content-box') {
35152
+ height = height - paddingSize;
35360
35153
  }
35361
- return;
35362
- }
35363
- function complete(results) {
35364
- var i = void 0;
35365
- var field = void 0;
35366
- var errors = [];
35367
- var fields = {};
35368
- function add(e) {
35369
- if (Array.isArray(e)) {
35370
- errors = errors.concat.apply(errors, e);
35371
- } else {
35372
- errors.push(e);
35154
+ hiddenTextarea.value = '';
35155
+ var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
35156
+ if (minRows !== null) {
35157
+ var minHeight = singleRowHeight * minRows;
35158
+ if (boxSizing === 'border-box') {
35159
+ minHeight = minHeight + paddingSize + borderSize;
35373
35160
  }
35161
+ height = Math.max(minHeight, height);
35162
+ result.minHeight = minHeight + 'px';
35374
35163
  }
35375
- for (i = 0; i < results.length; i++) {
35376
- add(results[i]);
35377
- }
35378
- if (!errors.length) {
35379
- errors = null;
35380
- fields = null;
35381
- } else {
35382
- for (i = 0; i < errors.length; i++) {
35383
- field = errors[i].field;
35384
- fields[field] = fields[field] || [];
35385
- fields[field].push(errors[i]);
35164
+ if (maxRows !== null) {
35165
+ var maxHeight = singleRowHeight * maxRows;
35166
+ if (boxSizing === 'border-box') {
35167
+ maxHeight = maxHeight + paddingSize + borderSize;
35386
35168
  }
35169
+ height = Math.min(maxHeight, height);
35387
35170
  }
35388
- callback(errors, fields);
35389
- }
35390
- if (options.messages) {
35391
- var messages = this.messages();
35392
- if (messages === messages_messages) {
35393
- messages = newMessages();
35394
- }
35395
- deepMerge(messages, options.messages);
35396
- options.messages = messages;
35397
- } else {
35398
- options.messages = this.messages();
35171
+ result.height = height + 'px';
35172
+ hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
35173
+ hiddenTextarea = null;
35174
+ return result;
35399
35175
  }
35400
- var arr = void 0;
35401
- var value = void 0;
35402
- var series = {};
35403
- var keys = options.keys || Object.keys(this.rules);
35404
- keys.forEach(function (z) {
35405
- arr = _this.rules[z];
35406
- value = source[z];
35407
- arr.forEach(function (r) {
35408
- var rule = r;
35409
- if (typeof rule.transform === 'function') {
35410
- if (source === source_) {
35411
- source = (0,helpers_extends/* default */.A)({}, source);
35176
+ ;
35177
+ // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
35178
+ var merge_ = __nested_webpack_require_7613__(9);
35179
+ var merge_default = /*#__PURE__*/__nested_webpack_require_7613__.n(merge_);
35180
+
35181
+ // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
35182
+ var shared_ = __nested_webpack_require_7613__(21);
35183
+
35184
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js&
35185
+ //
35186
+ //
35187
+ //
35188
+ //
35189
+ //
35190
+ //
35191
+ //
35192
+ //
35193
+ //
35194
+ //
35195
+ //
35196
+ //
35197
+ //
35198
+ //
35199
+ //
35200
+ //
35201
+ //
35202
+ //
35203
+ //
35204
+ //
35205
+ //
35206
+ //
35207
+ //
35208
+ //
35209
+ //
35210
+ //
35211
+ //
35212
+ //
35213
+ //
35214
+ //
35215
+ //
35216
+ //
35217
+ //
35218
+ //
35219
+ //
35220
+ //
35221
+ //
35222
+ //
35223
+ //
35224
+ //
35225
+ //
35226
+ //
35227
+ //
35228
+ //
35229
+ //
35230
+ //
35231
+ //
35232
+ //
35233
+ //
35234
+ //
35235
+ //
35236
+ //
35237
+ //
35238
+ //
35239
+ //
35240
+ //
35241
+ //
35242
+ //
35243
+ //
35244
+ //
35245
+ //
35246
+ //
35247
+ //
35248
+ //
35249
+ //
35250
+ //
35251
+ //
35252
+ //
35253
+ //
35254
+ //
35255
+ //
35256
+ //
35257
+ //
35258
+ //
35259
+ //
35260
+ //
35261
+ //
35262
+ //
35263
+ //
35264
+ //
35265
+ //
35266
+ //
35267
+ //
35268
+ //
35269
+ //
35270
+ //
35271
+ //
35272
+ //
35273
+ //
35274
+ //
35275
+ //
35276
+ //
35277
+ //
35278
+ //
35279
+ //
35280
+ //
35281
+ //
35282
+ //
35283
+ //
35284
+ //
35285
+ //
35286
+ //
35287
+ //
35288
+ //
35289
+ //
35290
+ //
35291
+ //
35292
+ //
35293
+ //
35294
+
35295
+ /* harmony default export */
35296
+ var inputvue_type_script_lang_js_ = {
35297
+ name: 'ElInput',
35298
+ componentName: 'ElInput',
35299
+ mixins: [emitter_default.a, migrating_default.a],
35300
+ inheritAttrs: false,
35301
+ inject: {
35302
+ elForm: {
35303
+ default: ''
35304
+ },
35305
+ elFormItem: {
35306
+ default: ''
35307
+ }
35308
+ },
35309
+ data: function data() {
35310
+ return {
35311
+ textareaCalcStyle: {},
35312
+ hovering: false,
35313
+ focused: false,
35314
+ isComposing: false,
35315
+ passwordVisible: false
35316
+ };
35317
+ },
35318
+ props: {
35319
+ value: [String, Number],
35320
+ size: String,
35321
+ resize: String,
35322
+ form: String,
35323
+ disabled: Boolean,
35324
+ readonly: Boolean,
35325
+ type: {
35326
+ type: String,
35327
+ default: 'text'
35328
+ },
35329
+ autosize: {
35330
+ type: [Boolean, Object],
35331
+ default: false
35332
+ },
35333
+ autocomplete: {
35334
+ type: String,
35335
+ default: 'off'
35336
+ },
35337
+ /** @Deprecated in next major version */
35338
+ autoComplete: {
35339
+ type: String,
35340
+ validator: function validator(val) {
35341
+ false && 0;
35342
+ return true;
35343
+ }
35344
+ },
35345
+ validateEvent: {
35346
+ type: Boolean,
35347
+ default: true
35348
+ },
35349
+ suffixIcon: String,
35350
+ prefixIcon: String,
35351
+ label: String,
35352
+ clearable: {
35353
+ type: Boolean,
35354
+ default: false
35355
+ },
35356
+ showPassword: {
35357
+ type: Boolean,
35358
+ default: false
35359
+ },
35360
+ showWordLimit: {
35361
+ type: Boolean,
35362
+ default: false
35363
+ },
35364
+ tabindex: String
35365
+ },
35366
+ computed: {
35367
+ _elFormItemSize: function _elFormItemSize() {
35368
+ return (this.elFormItem || {}).elFormItemSize;
35369
+ },
35370
+ validateState: function validateState() {
35371
+ return this.elFormItem ? this.elFormItem.validateState : '';
35372
+ },
35373
+ needStatusIcon: function needStatusIcon() {
35374
+ return this.elForm ? this.elForm.statusIcon : false;
35375
+ },
35376
+ validateIcon: function validateIcon() {
35377
+ return {
35378
+ validating: 'el-icon-loading',
35379
+ success: 'el-icon-circle-check',
35380
+ error: 'el-icon-circle-close'
35381
+ }[this.validateState];
35382
+ },
35383
+ textareaStyle: function textareaStyle() {
35384
+ return merge_default()({}, this.textareaCalcStyle, {
35385
+ resize: this.resize
35386
+ });
35387
+ },
35388
+ inputSize: function inputSize() {
35389
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
35390
+ },
35391
+ inputDisabled: function inputDisabled() {
35392
+ return this.disabled || (this.elForm || {}).disabled;
35393
+ },
35394
+ nativeInputValue: function nativeInputValue() {
35395
+ return this.value === null || this.value === undefined ? '' : String(this.value);
35396
+ },
35397
+ showClear: function showClear() {
35398
+ return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
35399
+ },
35400
+ showPwdVisible: function showPwdVisible() {
35401
+ return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
35402
+ },
35403
+ isWordLimitVisible: function isWordLimitVisible() {
35404
+ return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
35405
+ },
35406
+ upperLimit: function upperLimit() {
35407
+ return this.$attrs.maxlength;
35408
+ },
35409
+ textLength: function textLength() {
35410
+ if (typeof this.value === 'number') {
35411
+ return String(this.value).length;
35412
35412
  }
35413
- value = source[z] = rule.transform(value);
35414
- }
35415
- if (typeof rule === 'function') {
35416
- rule = {
35417
- validator: rule
35418
- };
35419
- } else {
35420
- rule = (0,helpers_extends/* default */.A)({}, rule);
35421
- }
35422
- rule.validator = _this.getValidationMethod(rule);
35423
- rule.field = z;
35424
- rule.fullField = rule.fullField || z;
35425
- rule.type = _this.getType(rule);
35426
- if (!rule.validator) {
35427
- return;
35428
- }
35429
- series[z] = series[z] || [];
35430
- series[z].push({
35431
- rule: rule,
35432
- value: value,
35433
- source: source,
35434
- field: z
35435
- });
35436
- });
35437
- });
35438
- var errorFields = {};
35439
- asyncMap(series, options, function (data, doIt) {
35440
- var rule = data.rule;
35441
- var deep = (rule.type === 'object' || rule.type === 'array') && ((0,helpers_typeof/* default */.A)(rule.fields) === 'object' || (0,helpers_typeof/* default */.A)(rule.defaultField) === 'object');
35442
- deep = deep && (rule.required || !rule.required && data.value);
35443
- rule.field = data.field;
35444
- function addFullfield(key, schema) {
35445
- return (0,helpers_extends/* default */.A)({}, schema, {
35446
- fullField: rule.fullField + '.' + key
35447
- });
35448
- }
35449
- function cb() {
35450
- var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
35451
- var errors = e;
35452
- if (!Array.isArray(errors)) {
35453
- errors = [errors];
35454
- }
35455
- if (errors.length) {
35456
- warning('async-validator:', errors);
35457
- }
35458
- if (errors.length && rule.message) {
35459
- errors = [].concat(rule.message);
35413
+ return (this.value || '').length;
35414
+ },
35415
+ inputExceed: function inputExceed() {
35416
+ // show exceed style if length of initial value greater then maxlength
35417
+ return this.isWordLimitVisible && this.textLength > this.upperLimit;
35460
35418
  }
35461
- errors = errors.map(complementError(rule));
35462
- if (options.first && errors.length) {
35463
- errorFields[rule.field] = 1;
35464
- return doIt(errors);
35419
+ },
35420
+ watch: {
35421
+ value: function value(val) {
35422
+ this.$nextTick(this.resizeTextarea);
35423
+ if (this.validateEvent) {
35424
+ this.dispatch('ElFormItem', 'el.form.change', [val]);
35425
+ }
35426
+ },
35427
+ // native input value is set explicitly
35428
+ // do not use v-model / :value in template
35429
+ // see: https://github.com/ElemeFE/element/issues/14521
35430
+ nativeInputValue: function nativeInputValue() {
35431
+ this.setNativeInputValue();
35432
+ },
35433
+ // when change between <input> and <textarea>,
35434
+ // update DOM dependent value and styles
35435
+ // https://github.com/ElemeFE/element/issues/14857
35436
+ type: function type() {
35437
+ var _this = this;
35438
+ this.$nextTick(function () {
35439
+ _this.setNativeInputValue();
35440
+ _this.resizeTextarea();
35441
+ _this.updateIconOffset();
35442
+ });
35465
35443
  }
35466
- if (!deep) {
35467
- doIt(errors);
35468
- } else {
35469
- // if rule is required but the target object
35470
- // does not exist fail at the rule level and don't
35471
- // go deeper
35472
- if (rule.required && !data.value) {
35473
- if (rule.message) {
35474
- errors = [].concat(rule.message).map(complementError(rule));
35475
- } else if (options.error) {
35476
- errors = [options.error(rule, format(options.messages.required, rule.field))];
35477
- } else {
35478
- errors = [];
35444
+ },
35445
+ methods: {
35446
+ focus: function focus() {
35447
+ this.getInput().focus();
35448
+ },
35449
+ blur: function blur() {
35450
+ this.getInput().blur();
35451
+ },
35452
+ getMigratingConfig: function getMigratingConfig() {
35453
+ return {
35454
+ props: {
35455
+ 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
35456
+ 'on-icon-click': 'on-icon-click is removed.'
35457
+ },
35458
+ events: {
35459
+ 'click': 'click is removed.'
35479
35460
  }
35480
- return doIt(errors);
35461
+ };
35462
+ },
35463
+ handleBlur: function handleBlur(event) {
35464
+ this.focused = false;
35465
+ this.$emit('blur', event);
35466
+ if (this.validateEvent) {
35467
+ this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
35481
35468
  }
35482
- var fieldsSchema = {};
35483
- if (rule.defaultField) {
35484
- for (var k in data.value) {
35485
- if (data.value.hasOwnProperty(k)) {
35486
- fieldsSchema[k] = rule.defaultField;
35487
- }
35488
- }
35469
+ },
35470
+ select: function select() {
35471
+ this.getInput().select();
35472
+ },
35473
+ resizeTextarea: function resizeTextarea() {
35474
+ if (this.$isServer) return;
35475
+ var autosize = this.autosize,
35476
+ type = this.type;
35477
+ if (type !== 'textarea') return;
35478
+ if (!autosize) {
35479
+ this.textareaCalcStyle = {
35480
+ minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
35481
+ };
35482
+ return;
35489
35483
  }
35490
- fieldsSchema = (0,helpers_extends/* default */.A)({}, fieldsSchema, data.rule.fields);
35491
- for (var f in fieldsSchema) {
35492
- if (fieldsSchema.hasOwnProperty(f)) {
35493
- var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
35494
- fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
35484
+ var minRows = autosize.minRows;
35485
+ var maxRows = autosize.maxRows;
35486
+ this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
35487
+ },
35488
+ setNativeInputValue: function setNativeInputValue() {
35489
+ var input = this.getInput();
35490
+ if (!input) return;
35491
+ if (input.value === this.nativeInputValue) return;
35492
+ input.value = this.nativeInputValue;
35493
+ },
35494
+ handleFocus: function handleFocus(event) {
35495
+ this.focused = true;
35496
+ this.$emit('focus', event);
35497
+ },
35498
+ handleCompositionStart: function handleCompositionStart(event) {
35499
+ this.$emit('compositionstart', event);
35500
+ this.isComposing = true;
35501
+ },
35502
+ handleCompositionUpdate: function handleCompositionUpdate(event) {
35503
+ this.$emit('compositionupdate', event);
35504
+ var text = event.target.value;
35505
+ var lastCharacter = text[text.length - 1] || '';
35506
+ this.isComposing = !Object(shared_["isKorean"])(lastCharacter);
35507
+ },
35508
+ handleCompositionEnd: function handleCompositionEnd(event) {
35509
+ this.$emit('compositionend', event);
35510
+ if (this.isComposing) {
35511
+ this.isComposing = false;
35512
+ this.handleInput(event);
35513
+ }
35514
+ },
35515
+ handleInput: function handleInput(event) {
35516
+ // should not emit input during composition
35517
+ // see: https://github.com/ElemeFE/element/issues/10516
35518
+ if (this.isComposing) return;
35519
+
35520
+ // hack for https://github.com/ElemeFE/element/issues/8548
35521
+ // should remove the following line when we don't support IE
35522
+ if (event.target.value === this.nativeInputValue) return;
35523
+ this.$emit('input', event.target.value);
35524
+
35525
+ // ensure native input value is controlled
35526
+ // see: https://github.com/ElemeFE/element/issues/12850
35527
+ this.$nextTick(this.setNativeInputValue);
35528
+ },
35529
+ handleChange: function handleChange(event) {
35530
+ this.$emit('change', event.target.value);
35531
+ },
35532
+ calcIconOffset: function calcIconOffset(place) {
35533
+ var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
35534
+ if (!elList.length) return;
35535
+ var el = null;
35536
+ for (var i = 0; i < elList.length; i++) {
35537
+ if (elList[i].parentNode === this.$el) {
35538
+ el = elList[i];
35539
+ break;
35495
35540
  }
35496
35541
  }
35497
- var schema = new Schema(fieldsSchema);
35498
- schema.messages(options.messages);
35499
- if (data.rule.options) {
35500
- data.rule.options.messages = options.messages;
35501
- data.rule.options.error = options.error;
35542
+ if (!el) return;
35543
+ var pendantMap = {
35544
+ suffix: 'append',
35545
+ prefix: 'prepend'
35546
+ };
35547
+ var pendant = pendantMap[place];
35548
+ if (this.$slots[pendant]) {
35549
+ el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
35550
+ } else {
35551
+ el.removeAttribute('style');
35502
35552
  }
35503
- schema.validate(data.value, data.rule.options || options, function (errs) {
35504
- doIt(errs && errs.length ? errors.concat(errs) : errs);
35553
+ },
35554
+ updateIconOffset: function updateIconOffset() {
35555
+ this.calcIconOffset('prefix');
35556
+ this.calcIconOffset('suffix');
35557
+ },
35558
+ clear: function clear() {
35559
+ this.$emit('input', '');
35560
+ this.$emit('change', '');
35561
+ this.$emit('clear');
35562
+ },
35563
+ handlePasswordVisible: function handlePasswordVisible() {
35564
+ var _this2 = this;
35565
+ this.passwordVisible = !this.passwordVisible;
35566
+ this.$nextTick(function () {
35567
+ _this2.focus();
35505
35568
  });
35569
+ },
35570
+ getInput: function getInput() {
35571
+ return this.$refs.input || this.$refs.textarea;
35572
+ },
35573
+ getSuffixVisible: function getSuffixVisible() {
35574
+ return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
35506
35575
  }
35576
+ },
35577
+ created: function created() {
35578
+ this.$on('inputSelect', this.select);
35579
+ },
35580
+ mounted: function mounted() {
35581
+ this.setNativeInputValue();
35582
+ this.resizeTextarea();
35583
+ this.updateIconOffset();
35584
+ },
35585
+ updated: function updated() {
35586
+ this.$nextTick(this.updateIconOffset);
35507
35587
  }
35508
- var res = rule.validator(rule, data.value, cb, data.source, options);
35509
- if (res && res.then) {
35510
- res.then(function () {
35511
- return cb();
35512
- }, function (e) {
35513
- return cb(e);
35514
- });
35515
- }
35516
- }, function (results) {
35517
- complete(results);
35518
- });
35519
- },
35520
- getType: function getType(rule) {
35521
- if (rule.type === undefined && rule.pattern instanceof RegExp) {
35522
- rule.type = 'pattern';
35523
- }
35524
- if (typeof rule.validator !== 'function' && rule.type && !es_validator.hasOwnProperty(rule.type)) {
35525
- throw new Error(format('Unknown rule type %s', rule.type));
35526
- }
35527
- return rule.type || 'string';
35528
- },
35529
- getValidationMethod: function getValidationMethod(rule) {
35530
- if (typeof rule.validator === 'function') {
35531
- return rule.validator;
35532
- }
35533
- var keys = Object.keys(rule);
35534
- var messageIndex = keys.indexOf('message');
35535
- if (messageIndex !== -1) {
35536
- keys.splice(messageIndex, 1);
35537
- }
35538
- if (keys.length === 1 && keys[0] === 'required') {
35539
- return es_validator.required;
35540
- }
35541
- return es_validator[this.getType(rule)] || false;
35542
- }
35543
- };
35544
- Schema.register = function register(type, validator) {
35545
- if (typeof validator !== 'function') {
35546
- throw new Error('Cannot register a validator by type, validator is not a function');
35547
- }
35548
- es_validator[type] = validator;
35549
- };
35550
- Schema.messages = messages_messages;
35551
- /* harmony default export */ var es = (Schema);
35552
-
35553
- /***/ }),
35588
+ };
35589
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js&
35590
+ /* harmony default export */
35591
+ var src_inputvue_type_script_lang_js_ = inputvue_type_script_lang_js_;
35592
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
35593
+ var componentNormalizer = __nested_webpack_require_7613__(0);
35554
35594
 
35555
- /***/ 6395:
35556
- /***/ (function(module) {
35595
+ // CONCATENATED MODULE: ./packages/input/src/input.vue
35557
35596
 
35558
- "use strict";
35597
+ /* normalize component */
35559
35598
 
35560
- module.exports = false;
35599
+ var component = Object(componentNormalizer["a" /* default */])(src_inputvue_type_script_lang_js_, render, staticRenderFns, false, null, null, null);
35561
35600
 
35601
+ /* hot reload */
35602
+ if (false) // removed by dead control flow
35603
+ { var api; }
35604
+ component.options.__file = "packages/input/src/input.vue";
35605
+ /* harmony default export */
35606
+ var input = component.exports;
35607
+ // CONCATENATED MODULE: ./packages/input/index.js
35562
35608
 
35563
- /***/ }),
35609
+ /* istanbul ignore next */
35610
+ input.install = function (Vue) {
35611
+ Vue.component(input.name, input);
35612
+ };
35564
35613
 
35565
- /***/ 6436:
35566
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
35614
+ /* harmony default export */
35615
+ var packages_input = __nested_webpack_exports__["default"] = input;
35567
35616
 
35568
- //! moment.js locale configuration
35569
- //! locale : Portuguese (Brazil) [pt-br]
35570
- //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
35617
+ /***/
35618
+ }),
35619
+ /***/9: (/***/function (module, exports) {
35620
+ module.exports = __webpack_require__(2047);
35571
35621
 
35572
- ;
35573
- (function (global, factory) {
35574
- true ? factory(__webpack_require__(9618)) : 0;
35575
- })(this, function (moment) {
35576
- 'use strict';
35622
+ /***/
35623
+ })
35577
35624
 
35578
- //! moment.js locale configuration
35579
- var ptBr = moment.defineLocale('pt-br', {
35580
- months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
35581
- monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
35582
- weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
35583
- weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
35584
- weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
35585
- weekdaysParseExact: true,
35586
- longDateFormat: {
35587
- LT: 'HH:mm',
35588
- LTS: 'HH:mm:ss',
35589
- L: 'DD/MM/YYYY',
35590
- LL: 'D [de] MMMM [de] YYYY',
35591
- LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
35592
- LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
35593
- },
35594
- calendar: {
35595
- sameDay: '[Hoje às] LT',
35596
- nextDay: '[Amanhã às] LT',
35597
- nextWeek: 'dddd [às] LT',
35598
- lastDay: '[Ontem às] LT',
35599
- lastWeek: function () {
35600
- return this.day() === 0 || this.day() === 6 ? '[Último] dddd [às] LT' // Saturday + Sunday
35601
- : '[Última] dddd [às] LT'; // Monday - Friday
35602
- },
35603
- sameElse: 'L'
35604
- },
35605
- relativeTime: {
35606
- future: 'em %s',
35607
- past: 'há %s',
35608
- s: 'poucos segundos',
35609
- ss: '%d segundos',
35610
- m: 'um minuto',
35611
- mm: '%d minutos',
35612
- h: 'uma hora',
35613
- hh: '%d horas',
35614
- d: 'um dia',
35615
- dd: '%d dias',
35616
- M: 'um mês',
35617
- MM: '%d meses',
35618
- y: 'um ano',
35619
- yy: '%d anos'
35620
- },
35621
- dayOfMonthOrdinalParse: /\d{1,2}º/,
35622
- ordinal: '%dº',
35623
- invalidDate: 'Data inválida'
35624
- });
35625
- return ptBr;
35625
+ /******/
35626
35626
  });
35627
35627
 
35628
35628
  /***/ }),
@@ -62414,8 +62414,8 @@ var table_component = normalizeComponent(
62414
62414
  )
62415
62415
 
62416
62416
  /* harmony default export */ var table = (table_component.exports);
62417
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/form.vue?vue&type=template&id=5e8c5b90&scoped=true
62418
- var formvue_type_template_id_5e8c5b90_scoped_true_render = function render() {
62417
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/form.vue?vue&type=template&id=acf332a6&scoped=true
62418
+ var formvue_type_template_id_acf332a6_scoped_true_render = function render() {
62419
62419
  var _vm = this,
62420
62420
  _c = _vm._self._c;
62421
62421
  return _c('div', {
@@ -62544,7 +62544,13 @@ var formvue_type_template_id_5e8c5b90_scoped_true_render = function render() {
62544
62544
  "suffixInputOptions": item.suffixInputOptions,
62545
62545
  "showSuffixBatchInput": item.showSuffixBatchInput,
62546
62546
  "suffixBatchInputPopoverTitle": item.suffixBatchInputPopoverTitle,
62547
- "suffixBatchInputPopoverWidth": item.suffixBatchInputPopoverWidth
62547
+ "suffixBatchInputPopoverWidth": item.suffixBatchInputPopoverWidth,
62548
+ "enhancedAllOptions": item.enhancedAllOptions || [],
62549
+ "enhancedTitleKey": item.enhancedTitleKey || 'name',
62550
+ "enhancedDescriptionKey": item.enhancedDescriptionKey || 'mobile',
62551
+ "enhancedDisabledKey": item.enhancedDisabledKey || 'status',
62552
+ "enhancedDisabledCanSelect": item.enhancedDisabledCanSelect || false,
62553
+ "enhancedCollapseTags": item.enhancedCollapseTags || false
62548
62554
  },
62549
62555
  on: {
62550
62556
  "update:suffixInputValue": function ($event) {
@@ -62558,6 +62564,9 @@ var formvue_type_template_id_5e8c5b90_scoped_true_render = function render() {
62558
62564
  },
62559
62565
  "suffix-input-change": function ($event) {
62560
62566
  return _vm.handleSuffixInputChange($event, item);
62567
+ },
62568
+ "search": function ($event) {
62569
+ return _vm.handleEnhancedSearch($event, item);
62561
62570
  }
62562
62571
  }
62563
62572
  }, 'by-common-selector', item.otherOptions || {}, false))] : item.type === 'batchQuerySelector' ? [_c('by-batch-query-selector', _vm._b({
@@ -62767,7 +62776,7 @@ var formvue_type_template_id_5e8c5b90_scoped_true_render = function render() {
62767
62776
  staticClass: "footer"
62768
62777
  }, [_vm._t("footer")], 2)], 1);
62769
62778
  };
62770
- var formvue_type_template_id_5e8c5b90_scoped_true_staticRenderFns = [];
62779
+ var formvue_type_template_id_acf332a6_scoped_true_staticRenderFns = [];
62771
62780
 
62772
62781
  ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/comps/pair-number-input.vue?vue&type=template&id=604235f6
62773
62782
  var pair_number_inputvue_type_template_id_604235f6_render = function render() {
@@ -63067,14 +63076,14 @@ var custom_date_picker_component = normalizeComponent(
63067
63076
  )
63068
63077
 
63069
63078
  /* harmony default export */ var custom_date_picker = (custom_date_picker_component.exports);
63070
- ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common-selector/ByCommonSelector.vue?vue&type=template&id=1b8642c2
63071
- var ByCommonSelectorvue_type_template_id_1b8642c2_render = function render() {
63079
+ ;// ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d802f52-vue-loader-template"}!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common-selector/ByCommonSelector.vue?vue&type=template&id=2c9d1694
63080
+ var ByCommonSelectorvue_type_template_id_2c9d1694_render = function render() {
63072
63081
  var _vm = this,
63073
63082
  _c = _vm._self._c;
63074
63083
  return _c('div', {
63075
63084
  staticClass: "by_selector_container",
63076
63085
  class: {
63077
- 'by_align-center': _vm.type !== 'select' && !_vm.open
63086
+ 'by_align-center': _vm.type !== 'select' && _vm.type !== 'enhancedSelect' && !_vm.open
63078
63087
  }
63079
63088
  }, [_vm.type === 'select' ? _c('el-select', _vm._b({
63080
63089
  attrs: {
@@ -63105,6 +63114,47 @@ var ByCommonSelectorvue_type_template_id_1b8642c2_render = function render() {
63105
63114
  "disabled": item.status === 0
63106
63115
  }
63107
63116
  });
63117
+ }), 1) : _vm.type === 'enhancedSelect' ? _c('el-select', _vm._b({
63118
+ attrs: {
63119
+ "filterable": "",
63120
+ "clearable": "",
63121
+ "remote": "",
63122
+ "multiple": _vm.multiple,
63123
+ "collapse-tags": _vm.multiple && _vm.enhancedCollapseTags,
63124
+ "remote-method": _vm.getResult,
63125
+ "loading": _vm.loading,
63126
+ "placeholder": _vm.placeholder
63127
+ },
63128
+ on: {
63129
+ "change": _vm.selected,
63130
+ "visible-change": _vm.handleVisibleChange
63131
+ },
63132
+ model: {
63133
+ value: _vm.selectedValue,
63134
+ callback: function ($$v) {
63135
+ _vm.selectedValue = $$v;
63136
+ },
63137
+ expression: "selectedValue"
63138
+ }
63139
+ }, 'el-select', _vm.$attrs, false), _vm._l(_vm.enhancedDataList, function (item, index) {
63140
+ return _c('el-option', {
63141
+ key: index,
63142
+ attrs: {
63143
+ "label": _vm.enhancedDescriptionDisplay ? item[_vm.enhancedTitleKey] + ' ' + item[_vm.enhancedDescriptionKey] : item[_vm.enhancedTitleKey],
63144
+ "value": item.id,
63145
+ "disabled": !_vm.enhancedDisabledCanSelect && item[_vm.enhancedDisabledKey] === 0
63146
+ }
63147
+ }, [_c('span', {
63148
+ staticClass: "enhanced-option-left",
63149
+ class: {
63150
+ 'enhanced-disabled': item[_vm.enhancedDisabledKey] === 0
63151
+ }
63152
+ }, [_vm._v(_vm._s(item[_vm.enhancedTitleKey]))]), _vm.enhancedDescriptionDisplay ? _c('span', {
63153
+ staticClass: "enhanced-option-right",
63154
+ class: {
63155
+ 'enhanced-disabled': item[_vm.enhancedDisabledKey] === 0
63156
+ }
63157
+ }, [_vm._v(_vm._s(item[_vm.enhancedDescriptionKey]))]) : _vm._e()]);
63108
63158
  }), 1) : [!_vm.hiddenAllOptions ? _c('el-checkbox', {
63109
63159
  class: ['by_selected_all', {
63110
63160
  'by_border-transparent': _vm.type !== 'border'
@@ -63452,7 +63502,7 @@ var ByCommonSelectorvue_type_template_id_1b8642c2_render = function render() {
63452
63502
  return _vm.handlePageChange(_vm.currentPage + 1);
63453
63503
  }
63454
63504
  }
63455
- }, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.needExpand && !_vm.forceNoExpand ? _c('el-button', {
63505
+ }, [_vm._v(" 下一页 ")])], 1) : _vm._e()], 1)])], _vm.type !== 'select' && _vm.type !== 'enhancedSelect' && _vm.needExpand && !_vm.forceNoExpand ? _c('el-button', {
63456
63506
  staticClass: "by_openShrink",
63457
63507
  attrs: {
63458
63508
  "type": "text",
@@ -63461,7 +63511,7 @@ var ByCommonSelectorvue_type_template_id_1b8642c2_render = function render() {
63461
63511
  on: {
63462
63512
  "click": _vm.showList
63463
63513
  }
63464
- }, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && !_vm.needExpand && !_vm.forceNoExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
63514
+ }, [_vm._v(" " + _vm._s(_vm.needShowLoading && _vm.loading ? '加载中...' : _vm.open ? '收起' : '展开') + " ")]) : _vm._e(), _vm.type !== 'select' && _vm.type !== 'enhancedSelect' && !_vm.needExpand && !_vm.forceNoExpand && _vm.needShowLoading && _vm.loading ? _c('el-button', {
63465
63515
  staticClass: "by_openShrink",
63466
63516
  attrs: {
63467
63517
  "type": "text",
@@ -63469,7 +63519,7 @@ var ByCommonSelectorvue_type_template_id_1b8642c2_render = function render() {
63469
63519
  }
63470
63520
  }, [_vm._v(" 加载中... ")]) : _vm._e()], 2);
63471
63521
  };
63472
- var ByCommonSelectorvue_type_template_id_1b8642c2_staticRenderFns = [];
63522
+ var ByCommonSelectorvue_type_template_id_2c9d1694_staticRenderFns = [];
63473
63523
 
63474
63524
  ;// ./node_modules/pinyin-pro/dist/index.mjs
63475
63525
 
@@ -73765,7 +73815,11 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
73765
73815
  default: ''
73766
73816
  },
73767
73817
  /**
73768
- * 选择器类型 border | checkbox | select(default)
73818
+ * 选择器类型
73819
+ * border
73820
+ * checkbox
73821
+ * select (默认)
73822
+ * enhancedSelect
73769
73823
  */
73770
73824
  type: {
73771
73825
  type: String,
@@ -73806,7 +73860,12 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
73806
73860
  */
73807
73861
  placeholder: {
73808
73862
  type: String,
73809
- default: '请选择'
73863
+ default() {
73864
+ if (this.type === 'enhancedSelect') {
73865
+ return '请输入用户名,手机号搜索';
73866
+ }
73867
+ return '请选择';
73868
+ }
73810
73869
  },
73811
73870
  /**
73812
73871
  * 选择器大小
@@ -73854,7 +73913,7 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
73854
73913
  type: Boolean,
73855
73914
  default: false
73856
73915
  },
73857
- // ***************** 后置输入框相关
73916
+ // ********************************** 后置输入框相关 **********************************
73858
73917
  /**
73859
73918
  * 是否显示后置输入框
73860
73919
  */
@@ -73911,6 +73970,61 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
73911
73970
  suffixBatchInputPopoverWidth: {
73912
73971
  type: [String, Number],
73913
73972
  default: '300'
73973
+ },
73974
+ // ********************************** 增强下拉选择器相关 **********************************
73975
+ /**
73976
+ * 增强下拉选择器中,所有选项数据
73977
+ * @description 该属性是用于默认回显时查找数据,并非用于展示下拉选项
73978
+ * 必填,否则会影响默认回显
73979
+ */
73980
+ enhancedAllOptions: {
73981
+ type: Array,
73982
+ default: () => []
73983
+ },
73984
+ /**
73985
+ * 增强下拉选择器中,选项的title字段
73986
+ */
73987
+ enhancedTitleKey: {
73988
+ type: String,
73989
+ default: 'name'
73990
+ },
73991
+ /**
73992
+ * 增强下拉选择器中,选项的description字段
73993
+ */
73994
+ enhancedDescriptionKey: {
73995
+ type: String,
73996
+ default: 'mobile'
73997
+ },
73998
+ /**
73999
+ * 增强下拉选择器中,选项的禁用字段名(置灰的字段)
74000
+ */
74001
+ enhancedDisabledKey: {
74002
+ type: String,
74003
+ default: 'status'
74004
+ },
74005
+ /**
74006
+ * 增强下拉选择器中,选项的description字段是否
74007
+ * true: 显示 标题 + 描述 (如: 何其灿 13063048088)
74008
+ * false: 只显示 标题
74009
+ */
74010
+ enhancedDescriptionDisplay: {
74011
+ type: Boolean,
74012
+ default: true
74013
+ },
74014
+ /**
74015
+ * 增强下拉选择器中,多选时是否折叠标签
74016
+ */
74017
+ enhancedCollapseTags: {
74018
+ type: Boolean,
74019
+ default: false
74020
+ },
74021
+ /**
74022
+ * 增强下拉选择器中,禁用的值是否可选
74023
+ * 是:禁用只是置灰,依然可选; 否:置灰并不可选中
74024
+ */
74025
+ enhancedDisabledCanSelect: {
74026
+ type: Boolean,
74027
+ default: false
73914
74028
  }
73915
74029
  },
73916
74030
  data() {
@@ -73943,7 +74057,13 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
73943
74057
 
73944
74058
  popoverVisible: false,
73945
74059
  // 批量输入按钮的弹窗是否显示
73946
- batchInputContent: '' // 批量输入的内容
74060
+ batchInputContent: '',
74061
+ // 批量输入的内容
74062
+
74063
+ // enhancedSelect 相关数据
74064
+ allData: new Map(),
74065
+ // 缓存所有数据
74066
+ enhancedSelectOpened: false // 标记 enhancedSelect 是否已经打开过
73947
74067
  };
73948
74068
  },
73949
74069
  computed: {
@@ -73955,10 +74075,43 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
73955
74075
  },
73956
74076
  optionsList() {
73957
74077
  return this.dataList;
74078
+ },
74079
+ enhancedDataList() {
74080
+ if (this.type !== 'enhancedSelect') {
74081
+ return this.dataList;
74082
+ }
74083
+
74084
+ // 只有在未打开过的情况下,如果有默认值且 dataList 为空,则从 enhancedAllOptions 中查找默认选项
74085
+ if (!this.enhancedSelectOpened && this.value !== undefined && this.value !== null && this.value !== '' && this.dataList.length === 0) {
74086
+ if (this.multiple) {
74087
+ // 多选情况:value 是数组
74088
+ if (Array.isArray(this.value) && this.value.length > 0) {
74089
+ const defaultItems = this.enhancedAllOptions.filter(option => this.value.includes(option.id) || this.value.includes(Number(option.id)) || this.value.includes(0) && option.id === 0);
74090
+ return defaultItems;
74091
+ }
74092
+ } else {
74093
+ // 单选情况:value 是单个值
74094
+ if (this.value !== '') {
74095
+ const defaultItem = this.enhancedAllOptions.find(option => option.id === this.value || option.id === Number(this.value) || this.value === 0 && option.id === 0);
74096
+ return defaultItem ? [defaultItem] : [];
74097
+ }
74098
+ }
74099
+ }
74100
+ return this.dataList;
73958
74101
  }
73959
74102
  },
73960
74103
  watch: {
73961
74104
  value(value) {
74105
+ if (this.type === 'enhancedSelect') {
74106
+ this.selectedValue = value;
74107
+ // 如果数据已经加载,立即处理默认值
74108
+ if (this.allData.size > 0) {
74109
+ this.$nextTick(() => {
74110
+ this.handleEnhancedSelectDefaultValue();
74111
+ });
74112
+ }
74113
+ return;
74114
+ }
73962
74115
  if (this.type === 'select') {
73963
74116
  this.selectedValue = value;
73964
74117
 
@@ -73984,6 +74137,25 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
73984
74137
  },
73985
74138
  options: {
73986
74139
  handler(newOptions, oldOptions) {
74140
+ // enhancedSelect 类型的特殊处理
74141
+ if (this.type === 'enhancedSelect') {
74142
+ this.dataList = newOptions;
74143
+ // 更新缓存
74144
+ this.allData.clear();
74145
+ newOptions.forEach(item => {
74146
+ this.allData.set(item.id, item);
74147
+ });
74148
+ // 数据更新后,自动关闭加载状态
74149
+ this.loading = false;
74150
+
74151
+ // 数据加载完成后,重新处理默认值
74152
+ this.$nextTick(() => {
74153
+ this.handleEnhancedSelectDefaultValue();
74154
+ });
74155
+ return;
74156
+ }
74157
+
74158
+ // 其他类型的处理
73987
74159
  if (!this.loadOptions) {
73988
74160
  this.localOptions = [...this.options];
73989
74161
 
@@ -74040,6 +74212,11 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74040
74212
  }
74041
74213
  },
74042
74214
  mounted() {
74215
+ // 验证 enhancedSelect 类型是否提供了 enhancedAllOptions
74216
+ if (this.type === 'enhancedSelect' && (!this.enhancedAllOptions || this.enhancedAllOptions.length === 0)) {
74217
+ console.error('[ByCommonSelector] enhancedSelect 类型需要提供 enhancedAllOptions 属性用于默认值回显');
74218
+ }
74219
+
74043
74220
  // 在组件挂载后,检查是否需要展开按钮
74044
74221
  this.$nextTick(() => {
74045
74222
  this.checkNeedExpand();
@@ -74120,7 +74297,7 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74120
74297
  // 检查是否需要展开按钮
74121
74298
  checkNeedExpand() {
74122
74299
  var _this$$el;
74123
- if (this.type === 'select' || this.forceNoExpand) {
74300
+ if (this.type === 'select' || this.type === 'enhancedSelect' || this.forceNoExpand) {
74124
74301
  this.needExpand = false;
74125
74302
  return;
74126
74303
  }
@@ -74203,6 +74380,10 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74203
74380
  this.$nextTick(() => {
74204
74381
  this.checkNeedExpand();
74205
74382
  this.scheduleExpandCheck();
74383
+ // 异步加载数据后,重新处理默认值(仅 enhancedSelect)
74384
+ if (this.type === 'enhancedSelect') {
74385
+ this.handleEnhancedSelectDefaultValue();
74386
+ }
74206
74387
  });
74207
74388
  } else {
74208
74389
  // console.error('loadOptions函数返回值必须是数组')
@@ -74216,6 +74397,16 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74216
74397
  }
74217
74398
  },
74218
74399
  initData() {
74400
+ // enhancedSelect 类型的特殊处理
74401
+ if (this.type === 'enhancedSelect') {
74402
+ this.dataList = this.options;
74403
+ this.selectedValue = this.value;
74404
+ // 缓存所有数据
74405
+ this.options.forEach(item => {
74406
+ this.allData.set(item.id, item);
74407
+ });
74408
+ return;
74409
+ }
74219
74410
  this.dataList = [...this.localOptions];
74220
74411
  this.buildLatterList();
74221
74412
  // 修复:使用严格比较,避免0值被误判为空
@@ -74274,7 +74465,7 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74274
74465
  },
74275
74466
  // 构建A~Z字母列表
74276
74467
  buildLatterList() {
74277
- if (this.type === 'select') {
74468
+ if (this.type === 'select' || this.type === 'enhancedSelect') {
74278
74469
  this.dataList = [...this.localOptions];
74279
74470
  } else {
74280
74471
  // 如果启用了showSearchBar,确保每个选项都有initial字段
@@ -74366,7 +74557,44 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74366
74557
  this.handlePageChange(1);
74367
74558
  },
74368
74559
  selected(value) {
74369
- // 在多选模式下,value是数组;在单选模式下,确保使用selectedValue而不是布尔值
74560
+ // enhancedSelect 类型的特殊处理
74561
+ if (this.type === 'enhancedSelect') {
74562
+ let obj = null;
74563
+ if (this.multiple) {
74564
+ obj = [];
74565
+ // 修复:优先从 enhancedAllOptions 中查找,确保多选时能正确获取对象数组
74566
+ if (Array.isArray(value) && value.length > 0) {
74567
+ // 从 enhancedAllOptions 中查找所有匹配的选项
74568
+ const items = this.enhancedAllOptions.filter(option => value.includes(option.id) || value.includes(Number(option.id)) || value.includes(0) && option.id === 0);
74569
+ obj = items;
74570
+ }
74571
+ } else {
74572
+ obj = {};
74573
+ if (value !== undefined && value !== null && value !== '') {
74574
+ // 优先从 enhancedAllOptions 中查找
74575
+ const item = this.enhancedAllOptions.find(option => option.id === value || option.id === Number(value) || value === 0 && option.id === 0);
74576
+ if (item) {
74577
+ obj[this.enhancedDescriptionKey] = item[this.enhancedDescriptionKey];
74578
+ obj[this.enhancedTitleKey] = item[this.enhancedTitleKey];
74579
+ obj.id = item.id;
74580
+ } else {
74581
+ // 如果从 enhancedAllOptions 中找不到,再从 dataList 中查找
74582
+ this.dataList.forEach(item => {
74583
+ if (value === item.id || value === 0 && item.id === 0) {
74584
+ obj[this.enhancedDescriptionKey] = item[this.enhancedDescriptionKey];
74585
+ obj[this.enhancedTitleKey] = item[this.enhancedTitleKey];
74586
+ obj.id = item.id;
74587
+ }
74588
+ });
74589
+ }
74590
+ } else {
74591
+ obj = null;
74592
+ }
74593
+ }
74594
+ this.$emit('input', value);
74595
+ this.$emit('change', obj);
74596
+ return;
74597
+ }
74370
74598
  if (this.multiple) {
74371
74599
  if (Array.isArray(value)) {
74372
74600
  this.selectedValue = value.filter(v => typeof v !== 'boolean');
@@ -74449,6 +74677,60 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74449
74677
  this.localSuffixInputValue = value;
74450
74678
  this.$emit('suffix-input-change', value);
74451
74679
  this.$emit('update:suffixInputValue', value);
74680
+ },
74681
+ // ******************** enhancedSelect 相关方法 ********************
74682
+ getResult(q) {
74683
+ // 设置加载状态
74684
+ this.loading = true;
74685
+
74686
+ // 触发外部搜索事件,让外部控制数据
74687
+ this.$emit('search', q);
74688
+
74689
+ // 返回 Promise 以满足 remote 的要求
74690
+ return Promise.resolve();
74691
+ },
74692
+ handleEnhancedSelectDefaultValue() {
74693
+ // console.log('001:this.value ==:', this.value)
74694
+ // console.log('002:this.enhancedAllOptions ==:', this.enhancedAllOptions)
74695
+ // 针对 enhancedSelect 类型处理默认值
74696
+ if (this.value !== undefined && this.value !== null && this.value !== '') {
74697
+ // 确保默认值能正确显示
74698
+ this.selectedValue = this.value;
74699
+ if (this.multiple) {
74700
+ // 多选情况:value 是数组
74701
+ if (Array.isArray(this.value) && this.value.length > 0) {
74702
+ // 在 enhancedAllOptions 数组中查找所有对应的选项
74703
+ const items = this.enhancedAllOptions.filter(option => this.value.includes(option.id) || this.value.includes(Number(option.id)) || this.value.includes(0) && option.id === 0);
74704
+ if (items.length > 0) {
74705
+ this.$emit('input', this.value);
74706
+ this.$emit('change', items);
74707
+ }
74708
+ }
74709
+ } else {
74710
+ // 单选情况:value 是单个值
74711
+ // 在 enhancedAllOptions 数组中查找对应的选项
74712
+ const item = this.enhancedAllOptions.find(option => option.id === this.value || option.id === Number(this.value) || this.value === 0 && option.id === 0);
74713
+ if (item) {
74714
+ let obj = {};
74715
+ obj[this.enhancedDescriptionKey] = item[this.enhancedDescriptionKey];
74716
+ obj[this.enhancedTitleKey] = item[this.enhancedTitleKey];
74717
+ obj.id = item.id;
74718
+ this.$emit('input', this.value);
74719
+ this.$emit('change', obj);
74720
+ }
74721
+ }
74722
+ }
74723
+ },
74724
+ handleVisibleChange(visible) {
74725
+ if (this.type === 'enhancedSelect') {
74726
+ if (visible) {
74727
+ // 标记已经打开过
74728
+ this.enhancedSelectOpened = true;
74729
+ // 当下拉框打开时,清空搜索结果
74730
+ this.dataList = [];
74731
+ this.$emit('search', ''); // 触发清空搜索
74732
+ }
74733
+ }
74452
74734
  }
74453
74735
  }
74454
74736
  });
@@ -74464,8 +74746,8 @@ const allOptionsNames = ['全部', '全选', '所有', '全部选项', 'All', 'a
74464
74746
  ;
74465
74747
  var ByCommonSelector_component = normalizeComponent(
74466
74748
  common_selector_ByCommonSelectorvue_type_script_lang_js,
74467
- ByCommonSelectorvue_type_template_id_1b8642c2_render,
74468
- ByCommonSelectorvue_type_template_id_1b8642c2_staticRenderFns,
74749
+ ByCommonSelectorvue_type_template_id_2c9d1694_render,
74750
+ ByCommonSelectorvue_type_template_id_2c9d1694_staticRenderFns,
74469
74751
  false,
74470
74752
  null,
74471
74753
  null,
@@ -75404,15 +75686,22 @@ var BatchQuerySelector_component = normalizeComponent(
75404
75686
  ...event,
75405
75687
  item
75406
75688
  });
75689
+ },
75690
+ // 增强选择器搜索事件处理
75691
+ handleEnhancedSearch(query, item) {
75692
+ this.$emit('enhanced-search', {
75693
+ query,
75694
+ item
75695
+ });
75407
75696
  }
75408
75697
  }
75409
75698
  });
75410
75699
  ;// ./src/components/form/form.vue?vue&type=script&lang=js
75411
75700
  /* harmony default export */ var form_formvue_type_script_lang_js = (formvue_type_script_lang_js);
75412
- ;// ./node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/form.vue?vue&type=style&index=0&id=5e8c5b90&prod&lang=scss&scoped=true
75701
+ ;// ./node_modules/@vue/cli-service/node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/@vue/cli-service/node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/cache-loader/dist/cjs.js??ruleSet[0].use[0]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/form.vue?vue&type=style&index=0&id=acf332a6&prod&lang=scss&scoped=true
75413
75702
  // extracted by mini-css-extract-plugin
75414
75703
 
75415
- ;// ./src/components/form/form.vue?vue&type=style&index=0&id=5e8c5b90&prod&lang=scss&scoped=true
75704
+ ;// ./src/components/form/form.vue?vue&type=style&index=0&id=acf332a6&prod&lang=scss&scoped=true
75416
75705
 
75417
75706
  ;// ./src/components/form/form.vue
75418
75707
 
@@ -75425,11 +75714,11 @@ var BatchQuerySelector_component = normalizeComponent(
75425
75714
 
75426
75715
  var form_component = normalizeComponent(
75427
75716
  form_formvue_type_script_lang_js,
75428
- formvue_type_template_id_5e8c5b90_scoped_true_render,
75429
- formvue_type_template_id_5e8c5b90_scoped_true_staticRenderFns,
75717
+ formvue_type_template_id_acf332a6_scoped_true_render,
75718
+ formvue_type_template_id_acf332a6_scoped_true_staticRenderFns,
75430
75719
  false,
75431
75720
  null,
75432
- "5e8c5b90",
75721
+ "acf332a6",
75433
75722
  null
75434
75723
 
75435
75724
  )