byt-ui 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -74
- package/jsconfig.json +19 -19
- package/lib/byt-ui.common.js +182 -131
- package/lib/byt-ui.css +1 -1
- package/lib/byt-ui.umd.js +182 -131
- package/lib/byt-ui.umd.min.js +2 -2
- package/package.json +2 -2
- package/packages/common/modules/cookie.js +4 -4
- package/yarn-error.log +108 -0
package/lib/byt-ui.common.js
CHANGED
|
@@ -2899,7 +2899,7 @@ var DESCRIPTORS = __webpack_require__(19781);
|
|
|
2899
2899
|
var isArray = __webpack_require__(43157);
|
|
2900
2900
|
|
|
2901
2901
|
var $TypeError = TypeError;
|
|
2902
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2902
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
2903
2903
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2904
2904
|
|
|
2905
2905
|
// Safari < 13 does not throw an error in this case
|
|
@@ -2907,7 +2907,7 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
|
2907
2907
|
// makes no sense without proper strict mode support
|
|
2908
2908
|
if (this !== undefined) return true;
|
|
2909
2909
|
try {
|
|
2910
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2910
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
2911
2911
|
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2912
2912
|
} catch (error) {
|
|
2913
2913
|
return error instanceof TypeError;
|
|
@@ -2928,10 +2928,10 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
|
2928
2928
|
/***/ 84326:
|
|
2929
2929
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2930
2930
|
|
|
2931
|
-
var
|
|
2931
|
+
var uncurryThis = __webpack_require__(1702);
|
|
2932
2932
|
|
|
2933
|
-
var toString =
|
|
2934
|
-
var stringSlice =
|
|
2933
|
+
var toString = uncurryThis({}.toString);
|
|
2934
|
+
var stringSlice = uncurryThis(''.slice);
|
|
2935
2935
|
|
|
2936
2936
|
module.exports = function (it) {
|
|
2937
2937
|
return stringSlice(toString(it), 8, -1);
|
|
@@ -3034,7 +3034,7 @@ module.exports = function (O, key, value, options) {
|
|
|
3034
3034
|
|
|
3035
3035
|
var global = __webpack_require__(17854);
|
|
3036
3036
|
|
|
3037
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3037
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
3038
3038
|
var defineProperty = Object.defineProperty;
|
|
3039
3039
|
|
|
3040
3040
|
module.exports = function (key, value) {
|
|
@@ -3055,27 +3055,11 @@ var fails = __webpack_require__(47293);
|
|
|
3055
3055
|
|
|
3056
3056
|
// Detect IE8's incomplete defineProperty implementation
|
|
3057
3057
|
module.exports = !fails(function () {
|
|
3058
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3058
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
3059
3059
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
3060
3060
|
});
|
|
3061
3061
|
|
|
3062
3062
|
|
|
3063
|
-
/***/ }),
|
|
3064
|
-
|
|
3065
|
-
/***/ 4154:
|
|
3066
|
-
/***/ (function(module) {
|
|
3067
|
-
|
|
3068
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
3069
|
-
|
|
3070
|
-
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
3071
|
-
var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
3072
|
-
|
|
3073
|
-
module.exports = {
|
|
3074
|
-
all: documentAll,
|
|
3075
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
3076
|
-
};
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
3063
|
/***/ }),
|
|
3080
3064
|
|
|
3081
3065
|
/***/ 80317:
|
|
@@ -3251,7 +3235,7 @@ module.exports = function (exec) {
|
|
|
3251
3235
|
var fails = __webpack_require__(47293);
|
|
3252
3236
|
|
|
3253
3237
|
module.exports = !fails(function () {
|
|
3254
|
-
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
3238
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
3255
3239
|
var test = (function () { /* empty */ }).bind();
|
|
3256
3240
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
3257
3241
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -3281,7 +3265,7 @@ var DESCRIPTORS = __webpack_require__(19781);
|
|
|
3281
3265
|
var hasOwn = __webpack_require__(92597);
|
|
3282
3266
|
|
|
3283
3267
|
var FunctionPrototype = Function.prototype;
|
|
3284
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3268
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
3285
3269
|
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
|
|
3286
3270
|
|
|
3287
3271
|
var EXISTS = hasOwn(FunctionPrototype, 'name');
|
|
@@ -3298,38 +3282,25 @@ module.exports = {
|
|
|
3298
3282
|
|
|
3299
3283
|
/***/ }),
|
|
3300
3284
|
|
|
3301
|
-
/***/
|
|
3285
|
+
/***/ 1702:
|
|
3302
3286
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3303
3287
|
|
|
3304
3288
|
var NATIVE_BIND = __webpack_require__(34374);
|
|
3305
3289
|
|
|
3306
3290
|
var FunctionPrototype = Function.prototype;
|
|
3291
|
+
var bind = FunctionPrototype.bind;
|
|
3307
3292
|
var call = FunctionPrototype.call;
|
|
3308
|
-
var
|
|
3293
|
+
var uncurryThis = NATIVE_BIND && bind.bind(call, call);
|
|
3309
3294
|
|
|
3310
|
-
module.exports = NATIVE_BIND ?
|
|
3311
|
-
return
|
|
3295
|
+
module.exports = NATIVE_BIND ? function (fn) {
|
|
3296
|
+
return fn && uncurryThis(fn);
|
|
3297
|
+
} : function (fn) {
|
|
3298
|
+
return fn && function () {
|
|
3312
3299
|
return call.apply(fn, arguments);
|
|
3313
3300
|
};
|
|
3314
3301
|
};
|
|
3315
3302
|
|
|
3316
3303
|
|
|
3317
|
-
/***/ }),
|
|
3318
|
-
|
|
3319
|
-
/***/ 1702:
|
|
3320
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3321
|
-
|
|
3322
|
-
var classofRaw = __webpack_require__(84326);
|
|
3323
|
-
var uncurryThisRaw = __webpack_require__(40084);
|
|
3324
|
-
|
|
3325
|
-
module.exports = function (fn) {
|
|
3326
|
-
// Nashorn bug:
|
|
3327
|
-
// https://github.com/zloirock/core-js/issues/1128
|
|
3328
|
-
// https://github.com/zloirock/core-js/issues/1130
|
|
3329
|
-
if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn);
|
|
3330
|
-
};
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
3304
|
/***/ }),
|
|
3334
3305
|
|
|
3335
3306
|
/***/ 35005:
|
|
@@ -3374,7 +3345,7 @@ var check = function (it) {
|
|
|
3374
3345
|
|
|
3375
3346
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
3376
3347
|
module.exports =
|
|
3377
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
3348
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
3378
3349
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
3379
3350
|
check(typeof window == 'object' && window) ||
|
|
3380
3351
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -3396,7 +3367,7 @@ var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
|
|
3396
3367
|
|
|
3397
3368
|
// `HasOwnProperty` abstract operation
|
|
3398
3369
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
3399
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
3370
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
3400
3371
|
module.exports = Object.hasOwn || function hasOwn(it, key) {
|
|
3401
3372
|
return hasOwnProperty(toObject(it), key);
|
|
3402
3373
|
};
|
|
@@ -3421,7 +3392,7 @@ var createElement = __webpack_require__(80317);
|
|
|
3421
3392
|
|
|
3422
3393
|
// Thanks to IE8 for its funny defineProperty
|
|
3423
3394
|
module.exports = !DESCRIPTORS && !fails(function () {
|
|
3424
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3395
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
3425
3396
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
3426
3397
|
get: function () { return 7; }
|
|
3427
3398
|
}).a != 7;
|
|
@@ -3478,6 +3449,7 @@ module.exports = store.inspectSource;
|
|
|
3478
3449
|
|
|
3479
3450
|
var NATIVE_WEAK_MAP = __webpack_require__(94811);
|
|
3480
3451
|
var global = __webpack_require__(17854);
|
|
3452
|
+
var uncurryThis = __webpack_require__(1702);
|
|
3481
3453
|
var isObject = __webpack_require__(70111);
|
|
3482
3454
|
var createNonEnumerableProperty = __webpack_require__(68880);
|
|
3483
3455
|
var hasOwn = __webpack_require__(92597);
|
|
@@ -3505,22 +3477,20 @@ var getterFor = function (TYPE) {
|
|
|
3505
3477
|
|
|
3506
3478
|
if (NATIVE_WEAK_MAP || shared.state) {
|
|
3507
3479
|
var store = shared.state || (shared.state = new WeakMap());
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
store.set = store.set;
|
|
3512
|
-
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
3480
|
+
var wmget = uncurryThis(store.get);
|
|
3481
|
+
var wmhas = uncurryThis(store.has);
|
|
3482
|
+
var wmset = uncurryThis(store.set);
|
|
3513
3483
|
set = function (it, metadata) {
|
|
3514
|
-
if (store
|
|
3484
|
+
if (wmhas(store, it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);
|
|
3515
3485
|
metadata.facade = it;
|
|
3516
|
-
store
|
|
3486
|
+
wmset(store, it, metadata);
|
|
3517
3487
|
return metadata;
|
|
3518
3488
|
};
|
|
3519
3489
|
get = function (it) {
|
|
3520
|
-
return store
|
|
3490
|
+
return wmget(store, it) || {};
|
|
3521
3491
|
};
|
|
3522
3492
|
has = function (it) {
|
|
3523
|
-
return store
|
|
3493
|
+
return wmhas(store, it);
|
|
3524
3494
|
};
|
|
3525
3495
|
} else {
|
|
3526
3496
|
var STATE = sharedKey('state');
|
|
@@ -3557,7 +3527,7 @@ var classof = __webpack_require__(84326);
|
|
|
3557
3527
|
|
|
3558
3528
|
// `IsArray` abstract operation
|
|
3559
3529
|
// https://tc39.es/ecma262/#sec-isarray
|
|
3560
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
3530
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
|
3561
3531
|
module.exports = Array.isArray || function isArray(argument) {
|
|
3562
3532
|
return classof(argument) == 'Array';
|
|
3563
3533
|
};
|
|
@@ -3566,17 +3536,11 @@ module.exports = Array.isArray || function isArray(argument) {
|
|
|
3566
3536
|
/***/ }),
|
|
3567
3537
|
|
|
3568
3538
|
/***/ 60614:
|
|
3569
|
-
/***/ (function(module
|
|
3570
|
-
|
|
3571
|
-
var $documentAll = __webpack_require__(4154);
|
|
3572
|
-
|
|
3573
|
-
var documentAll = $documentAll.all;
|
|
3539
|
+
/***/ (function(module) {
|
|
3574
3540
|
|
|
3575
3541
|
// `IsCallable` abstract operation
|
|
3576
3542
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
3577
|
-
module.exports =
|
|
3578
|
-
return typeof argument == 'function' || argument === documentAll;
|
|
3579
|
-
} : function (argument) {
|
|
3543
|
+
module.exports = function (argument) {
|
|
3580
3544
|
return typeof argument == 'function';
|
|
3581
3545
|
};
|
|
3582
3546
|
|
|
@@ -3628,11 +3592,13 @@ module.exports = function (it) {
|
|
|
3628
3592
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3629
3593
|
|
|
3630
3594
|
var isCallable = __webpack_require__(60614);
|
|
3631
|
-
var $documentAll = __webpack_require__(4154);
|
|
3632
3595
|
|
|
3633
|
-
var documentAll =
|
|
3596
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
3634
3597
|
|
|
3635
|
-
|
|
3598
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
3599
|
+
var SPECIAL_DOCUMENT_ALL = typeof documentAll == 'undefined' && documentAll !== undefined;
|
|
3600
|
+
|
|
3601
|
+
module.exports = SPECIAL_DOCUMENT_ALL ? function (it) {
|
|
3636
3602
|
return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;
|
|
3637
3603
|
} : function (it) {
|
|
3638
3604
|
return typeof it == 'object' ? it !== null : isCallable(it);
|
|
@@ -3696,7 +3662,7 @@ var InternalStateModule = __webpack_require__(29909);
|
|
|
3696
3662
|
|
|
3697
3663
|
var enforceInternalState = InternalStateModule.enforce;
|
|
3698
3664
|
var getInternalState = InternalStateModule.get;
|
|
3699
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3665
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
3700
3666
|
var defineProperty = Object.defineProperty;
|
|
3701
3667
|
|
|
3702
3668
|
var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
|
|
@@ -3747,7 +3713,7 @@ var floor = Math.floor;
|
|
|
3747
3713
|
|
|
3748
3714
|
// `Math.trunc` method
|
|
3749
3715
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
3750
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
3716
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
3751
3717
|
module.exports = Math.trunc || function trunc(x) {
|
|
3752
3718
|
var n = +x;
|
|
3753
3719
|
return (n > 0 ? floor : ceil)(n);
|
|
@@ -3766,9 +3732,9 @@ var anObject = __webpack_require__(19670);
|
|
|
3766
3732
|
var toPropertyKey = __webpack_require__(34948);
|
|
3767
3733
|
|
|
3768
3734
|
var $TypeError = TypeError;
|
|
3769
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3735
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
3770
3736
|
var $defineProperty = Object.defineProperty;
|
|
3771
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3737
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
3772
3738
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
3773
3739
|
var ENUMERABLE = 'enumerable';
|
|
3774
3740
|
var CONFIGURABLE = 'configurable';
|
|
@@ -3818,7 +3784,7 @@ var toPropertyKey = __webpack_require__(34948);
|
|
|
3818
3784
|
var hasOwn = __webpack_require__(92597);
|
|
3819
3785
|
var IE8_DOM_DEFINE = __webpack_require__(64664);
|
|
3820
3786
|
|
|
3821
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3787
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
3822
3788
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
3823
3789
|
|
|
3824
3790
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -3845,7 +3811,7 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
|
3845
3811
|
|
|
3846
3812
|
// `Object.getOwnPropertyNames` method
|
|
3847
3813
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
3848
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
3814
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
3849
3815
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
3850
3816
|
return internalObjectKeys(O, hiddenKeys);
|
|
3851
3817
|
};
|
|
@@ -3856,7 +3822,7 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
|
3856
3822
|
/***/ 25181:
|
|
3857
3823
|
/***/ (function(__unused_webpack_module, exports) {
|
|
3858
3824
|
|
|
3859
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
3825
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
3860
3826
|
exports.f = Object.getOwnPropertySymbols;
|
|
3861
3827
|
|
|
3862
3828
|
|
|
@@ -3905,7 +3871,7 @@ module.exports = function (object, names) {
|
|
|
3905
3871
|
"use strict";
|
|
3906
3872
|
|
|
3907
3873
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
3908
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3874
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
3909
3875
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
3910
3876
|
|
|
3911
3877
|
// Nashorn ~ JDK8 bug
|
|
@@ -4019,10 +3985,10 @@ var store = __webpack_require__(5465);
|
|
|
4019
3985
|
(module.exports = function (key, value) {
|
|
4020
3986
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
4021
3987
|
})('versions', []).push({
|
|
4022
|
-
version: '3.
|
|
3988
|
+
version: '3.25.1',
|
|
4023
3989
|
mode: IS_PURE ? 'pure' : 'global',
|
|
4024
3990
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
4025
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
3991
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE',
|
|
4026
3992
|
source: 'https://github.com/zloirock/core-js'
|
|
4027
3993
|
});
|
|
4028
3994
|
|
|
@@ -4032,11 +3998,11 @@ var store = __webpack_require__(5465);
|
|
|
4032
3998
|
/***/ 36293:
|
|
4033
3999
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4034
4000
|
|
|
4035
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
4001
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
4036
4002
|
var V8_VERSION = __webpack_require__(7392);
|
|
4037
4003
|
var fails = __webpack_require__(47293);
|
|
4038
4004
|
|
|
4039
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
4005
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
4040
4006
|
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
4041
4007
|
var symbol = Symbol();
|
|
4042
4008
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
@@ -4213,7 +4179,7 @@ module.exports = function (key) {
|
|
|
4213
4179
|
/***/ 43307:
|
|
4214
4180
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4215
4181
|
|
|
4216
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
4182
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
4217
4183
|
var NATIVE_SYMBOL = __webpack_require__(36293);
|
|
4218
4184
|
|
|
4219
4185
|
module.exports = NATIVE_SYMBOL
|
|
@@ -4232,7 +4198,7 @@ var fails = __webpack_require__(47293);
|
|
|
4232
4198
|
// V8 ~ Chrome 36-
|
|
4233
4199
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
4234
4200
|
module.exports = DESCRIPTORS && fails(function () {
|
|
4235
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
4201
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
4236
4202
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
4237
4203
|
value: 42,
|
|
4238
4204
|
writable: false
|
|
@@ -4306,7 +4272,7 @@ var INCORRECT_TO_LENGTH = fails(function () {
|
|
|
4306
4272
|
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
4307
4273
|
var SILENT_ON_NON_WRITABLE_LENGTH = !function () {
|
|
4308
4274
|
try {
|
|
4309
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4275
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
4310
4276
|
Object.defineProperty([], 'length', { writable: false }).push();
|
|
4311
4277
|
} catch (error) {
|
|
4312
4278
|
return error instanceof TypeError;
|
|
@@ -85590,13 +85556,14 @@ var website = __webpack_require__(2411);
|
|
|
85590
85556
|
* @Description:
|
|
85591
85557
|
* @Author: 王国火
|
|
85592
85558
|
* @Date: 2022-10-18 12:37:03
|
|
85593
|
-
* @LastEditTime: 2022-
|
|
85559
|
+
* @LastEditTime: 2022-11-16 20:11:01
|
|
85594
85560
|
* @LastEditors: 王国火
|
|
85595
85561
|
*/
|
|
85596
85562
|
|
|
85597
85563
|
|
|
85598
85564
|
const getCookie = (key, context) => {
|
|
85599
|
-
const searchKey = `${website["default"].key}
|
|
85565
|
+
const searchKey = `${website["default"].key}-${key}`;
|
|
85566
|
+
|
|
85600
85567
|
if (context && context.req) {
|
|
85601
85568
|
if (context.req.headers.cookie) {
|
|
85602
85569
|
const arr = context.req.headers.cookie.split(';');
|
|
@@ -85612,13 +85579,13 @@ const getCookie = (key, context) => {
|
|
|
85612
85579
|
}
|
|
85613
85580
|
};
|
|
85614
85581
|
const setCookie = (key, value, expires = 7, path = '/') => {
|
|
85615
|
-
return js_cookie.set(`${website["default"].key}
|
|
85582
|
+
return js_cookie.set(`${website["default"].key}-${key}`, value, {
|
|
85616
85583
|
expires,
|
|
85617
85584
|
path
|
|
85618
85585
|
});
|
|
85619
85586
|
};
|
|
85620
85587
|
const removeCookie = (key, path = '/') => {
|
|
85621
|
-
return js_cookie.remove(key
|
|
85588
|
+
return js_cookie.remove(`${website["default"].key}-${key}`, {
|
|
85622
85589
|
path
|
|
85623
85590
|
});
|
|
85624
85591
|
};
|
|
@@ -85642,6 +85609,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
85642
85609
|
/* harmony import */ var _validate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(98564);
|
|
85643
85610
|
/* harmony import */ var _website__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2411);
|
|
85644
85611
|
|
|
85612
|
+
|
|
85645
85613
|
/*
|
|
85646
85614
|
* @Description:
|
|
85647
85615
|
* @Author: 王国火
|
|
@@ -85650,12 +85618,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
85650
85618
|
* @LastEditors: 王国火
|
|
85651
85619
|
*/
|
|
85652
85620
|
|
|
85621
|
+
//存储前缀 避免与同域的其它项目冲突
|
|
85653
85622
|
|
|
85654
|
-
//存储前缀 避免与同域的其它项目冲突
|
|
85655
85623
|
const keyName = _website__WEBPACK_IMPORTED_MODULE_2__["default"].key;
|
|
85656
85624
|
/**
|
|
85657
85625
|
* 存储localStorage
|
|
85658
85626
|
*/
|
|
85627
|
+
|
|
85659
85628
|
const setStore = (key, value, type = 0) => {
|
|
85660
85629
|
const name = `${keyName}-${key}`;
|
|
85661
85630
|
const obj = {
|
|
@@ -85664,6 +85633,7 @@ const setStore = (key, value, type = 0) => {
|
|
|
85664
85633
|
type: type,
|
|
85665
85634
|
datetime: new Date().getTime()
|
|
85666
85635
|
};
|
|
85636
|
+
|
|
85667
85637
|
if (type) {
|
|
85668
85638
|
window.sessionStorage.setItem(name, JSON.stringify(obj));
|
|
85669
85639
|
} else {
|
|
@@ -85679,14 +85649,17 @@ const getStore = (key, debug = false) => {
|
|
|
85679
85649
|
let obj = window.sessionStorage.getItem(name) || window.localStorage.getItem(name);
|
|
85680
85650
|
let content;
|
|
85681
85651
|
if ((0,_validate__WEBPACK_IMPORTED_MODULE_1__.validatenull)(obj)) return null;
|
|
85652
|
+
|
|
85682
85653
|
try {
|
|
85683
85654
|
obj = JSON.parse(obj);
|
|
85684
85655
|
} catch (e) {
|
|
85685
85656
|
return obj;
|
|
85686
85657
|
}
|
|
85658
|
+
|
|
85687
85659
|
if (debug) {
|
|
85688
85660
|
return obj;
|
|
85689
85661
|
}
|
|
85662
|
+
|
|
85690
85663
|
if (obj.dataType === 'string') {
|
|
85691
85664
|
content = obj.content;
|
|
85692
85665
|
} else if (obj.dataType === 'number') {
|
|
@@ -85696,22 +85669,25 @@ const getStore = (key, debug = false) => {
|
|
|
85696
85669
|
} else if (obj.dataType === 'object') {
|
|
85697
85670
|
content = obj.content;
|
|
85698
85671
|
}
|
|
85672
|
+
|
|
85699
85673
|
return content;
|
|
85700
85674
|
};
|
|
85701
85675
|
/**
|
|
85702
85676
|
* 删除localStorage
|
|
85703
85677
|
*/
|
|
85678
|
+
|
|
85704
85679
|
const removeStore = key => {
|
|
85705
85680
|
const name = `${keyName}-${key}`;
|
|
85706
85681
|
window.sessionStorage.removeItem(name);
|
|
85707
85682
|
window.localStorage.removeItem(name);
|
|
85708
85683
|
};
|
|
85709
|
-
|
|
85710
85684
|
/**
|
|
85711
85685
|
* 获取全部localStorage
|
|
85712
85686
|
*/
|
|
85687
|
+
|
|
85713
85688
|
const getAllStore = (type = 0) => {
|
|
85714
85689
|
const list = [];
|
|
85690
|
+
|
|
85715
85691
|
if (type) {
|
|
85716
85692
|
for (let i = 0; i <= window.sessionStorage.length; i++) {
|
|
85717
85693
|
list.push({
|
|
@@ -85732,12 +85708,13 @@ const getAllStore = (type = 0) => {
|
|
|
85732
85708
|
});
|
|
85733
85709
|
}
|
|
85734
85710
|
}
|
|
85711
|
+
|
|
85735
85712
|
return list;
|
|
85736
85713
|
};
|
|
85737
|
-
|
|
85738
85714
|
/**
|
|
85739
85715
|
* 清空全部localStorage
|
|
85740
85716
|
*/
|
|
85717
|
+
|
|
85741
85718
|
const clearStore = (type = 0) => {
|
|
85742
85719
|
if (type) {
|
|
85743
85720
|
window.sessionStorage.clear();
|
|
@@ -85780,35 +85757,35 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
85780
85757
|
function isExternal(path) {
|
|
85781
85758
|
return /^(https?:|mailto:|tel:)/.test(path);
|
|
85782
85759
|
}
|
|
85783
|
-
|
|
85784
85760
|
/**
|
|
85785
85761
|
* 邮箱
|
|
85786
85762
|
* @param {*} s
|
|
85787
85763
|
*/
|
|
85764
|
+
|
|
85788
85765
|
function isEmail(s) {
|
|
85789
85766
|
return /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test(s);
|
|
85790
85767
|
}
|
|
85791
|
-
|
|
85792
85768
|
/**
|
|
85793
85769
|
* 手机号码
|
|
85794
85770
|
* @param {*} s
|
|
85795
85771
|
*/
|
|
85772
|
+
|
|
85796
85773
|
function isMobile(s) {
|
|
85797
85774
|
return /^1[0-9]{10}$/.test(s);
|
|
85798
85775
|
}
|
|
85799
|
-
|
|
85800
85776
|
/**
|
|
85801
85777
|
* 电话号码
|
|
85802
85778
|
* @param {*} s
|
|
85803
85779
|
*/
|
|
85780
|
+
|
|
85804
85781
|
function isPhone(s) {
|
|
85805
85782
|
return /^([0-9]{3,4}-)?[0-9]{7,8}$/.test(s);
|
|
85806
85783
|
}
|
|
85807
|
-
|
|
85808
85784
|
/**
|
|
85809
85785
|
* URL地址
|
|
85810
85786
|
* @param {*} s
|
|
85811
85787
|
*/
|
|
85788
|
+
|
|
85812
85789
|
function isURL(s) {
|
|
85813
85790
|
return /^http[s]?:\/\/.*/.test(s);
|
|
85814
85791
|
}
|
|
@@ -85816,58 +85793,60 @@ function isvalidUsername(str) {
|
|
|
85816
85793
|
const valid_map = ['admin', 'editor'];
|
|
85817
85794
|
return valid_map.indexOf(str.trim()) >= 0;
|
|
85818
85795
|
}
|
|
85819
|
-
|
|
85820
85796
|
/* 合法uri */
|
|
85797
|
+
|
|
85821
85798
|
function validateURL(textval) {
|
|
85822
85799
|
const urlregex = /^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;
|
|
85823
85800
|
return urlregex.test(textval);
|
|
85824
85801
|
}
|
|
85825
|
-
|
|
85826
85802
|
/* 小写字母 */
|
|
85803
|
+
|
|
85827
85804
|
function validateLowerCase(str) {
|
|
85828
85805
|
const reg = /^[a-z]+$/;
|
|
85829
85806
|
return reg.test(str);
|
|
85830
85807
|
}
|
|
85831
|
-
|
|
85832
85808
|
/* 大写字母 */
|
|
85809
|
+
|
|
85833
85810
|
function validateUpperCase(str) {
|
|
85834
85811
|
const reg = /^[A-Z]+$/;
|
|
85835
85812
|
return reg.test(str);
|
|
85836
85813
|
}
|
|
85837
|
-
|
|
85838
85814
|
/* 大小写字母 */
|
|
85815
|
+
|
|
85839
85816
|
function validatAlphabets(str) {
|
|
85840
85817
|
const reg = /^[A-Za-z]+$/;
|
|
85841
85818
|
return reg.test(str);
|
|
85842
85819
|
}
|
|
85843
|
-
|
|
85844
85820
|
/* 验证pad还是pc */
|
|
85821
|
+
|
|
85845
85822
|
const vaildatePc = function () {
|
|
85846
85823
|
const userAgentInfo = navigator.userAgent;
|
|
85847
85824
|
const Agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];
|
|
85848
85825
|
let flag = true;
|
|
85826
|
+
|
|
85849
85827
|
for (var v = 0; v < Agents.length; v++) {
|
|
85850
85828
|
if (userAgentInfo.indexOf(Agents[v]) > 0) {
|
|
85851
85829
|
flag = false;
|
|
85852
85830
|
break;
|
|
85853
85831
|
}
|
|
85854
85832
|
}
|
|
85833
|
+
|
|
85855
85834
|
return flag;
|
|
85856
85835
|
};
|
|
85857
|
-
|
|
85858
85836
|
/**
|
|
85859
85837
|
* validate email
|
|
85860
85838
|
* @param email
|
|
85861
85839
|
* @returns {boolean}
|
|
85862
85840
|
*/
|
|
85841
|
+
|
|
85863
85842
|
function validateEmail(email) {
|
|
85864
85843
|
const re = /^(([^<>()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
85865
85844
|
return re.test(email);
|
|
85866
85845
|
}
|
|
85867
|
-
|
|
85868
85846
|
/**
|
|
85869
85847
|
* 判断身份证号码
|
|
85870
85848
|
*/
|
|
85849
|
+
|
|
85871
85850
|
function cardid(code) {
|
|
85872
85851
|
const list = [];
|
|
85873
85852
|
let result = true;
|
|
@@ -85909,6 +85888,7 @@ function cardid(code) {
|
|
|
85909
85888
|
82: '澳门',
|
|
85910
85889
|
91: '国外 '
|
|
85911
85890
|
};
|
|
85891
|
+
|
|
85912
85892
|
if (!validatenull(code)) {
|
|
85913
85893
|
if (code.length === 18) {
|
|
85914
85894
|
if (!code || !/(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(code)) {
|
|
@@ -85917,20 +85897,22 @@ function cardid(code) {
|
|
|
85917
85897
|
msg = '地址编码错误';
|
|
85918
85898
|
} else {
|
|
85919
85899
|
// 18位身份证需要验证最后一位校验位
|
|
85920
|
-
code = code.split('');
|
|
85921
|
-
// ∑(ai×Wi)(mod 11)
|
|
85900
|
+
code = code.split(''); // ∑(ai×Wi)(mod 11)
|
|
85922
85901
|
// 加权因子
|
|
85923
|
-
|
|
85924
|
-
// 校验位
|
|
85902
|
+
|
|
85903
|
+
var factor = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2]; // 校验位
|
|
85904
|
+
|
|
85925
85905
|
var parity = [1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2, 'x'];
|
|
85926
85906
|
var sum = 0;
|
|
85927
85907
|
var ai = 0;
|
|
85928
85908
|
var wi = 0;
|
|
85909
|
+
|
|
85929
85910
|
for (var i = 0; i < 17; i++) {
|
|
85930
85911
|
ai = code[i];
|
|
85931
85912
|
wi = factor[i];
|
|
85932
85913
|
sum += ai * wi;
|
|
85933
85914
|
}
|
|
85915
|
+
|
|
85934
85916
|
if (parity[sum % 11] !== code[17]) {
|
|
85935
85917
|
msg = '证件号码校验位错误';
|
|
85936
85918
|
} else {
|
|
@@ -85943,20 +85925,21 @@ function cardid(code) {
|
|
|
85943
85925
|
} else {
|
|
85944
85926
|
msg = '证件号码不能为空';
|
|
85945
85927
|
}
|
|
85928
|
+
|
|
85946
85929
|
list.push(result);
|
|
85947
85930
|
list.push(msg);
|
|
85948
85931
|
return list;
|
|
85949
85932
|
}
|
|
85950
|
-
|
|
85951
85933
|
/**
|
|
85952
85934
|
* 判断手机号码是否正确
|
|
85953
85935
|
*/
|
|
85936
|
+
|
|
85954
85937
|
function isvalidatemobile(phone) {
|
|
85955
85938
|
const list = [];
|
|
85956
85939
|
let result = true;
|
|
85957
85940
|
let msg = '';
|
|
85958
|
-
var isPhone = /^0\d{2,3}-?\d{7,8}$/;
|
|
85959
|
-
|
|
85941
|
+
var isPhone = /^0\d{2,3}-?\d{7,8}$/; // 增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678]
|
|
85942
|
+
|
|
85960
85943
|
if (!validatenull(phone)) {
|
|
85961
85944
|
if (phone.length === 11) {
|
|
85962
85945
|
if (isPhone.test(phone)) {
|
|
@@ -85970,20 +85953,21 @@ function isvalidatemobile(phone) {
|
|
|
85970
85953
|
} else {
|
|
85971
85954
|
msg = '手机号码不能为空';
|
|
85972
85955
|
}
|
|
85956
|
+
|
|
85973
85957
|
list.push(result);
|
|
85974
85958
|
list.push(msg);
|
|
85975
85959
|
return list;
|
|
85976
85960
|
}
|
|
85977
|
-
|
|
85978
85961
|
/**
|
|
85979
85962
|
* 判断手机号码是否正确(可以为空)
|
|
85980
85963
|
*/
|
|
85964
|
+
|
|
85981
85965
|
function isValidateNoneMobile(phone) {
|
|
85982
85966
|
const list = [];
|
|
85983
85967
|
let result = true;
|
|
85984
85968
|
let msg = '';
|
|
85985
|
-
var isPhone = /^0\d{2,3}-?\d{7,8}$/;
|
|
85986
|
-
|
|
85969
|
+
var isPhone = /^0\d{2,3}-?\d{7,8}$/; // 增加134 减少|1349[0-9]{7},增加181,增加145,增加17[678]
|
|
85970
|
+
|
|
85987
85971
|
if (!validatenull(phone)) {
|
|
85988
85972
|
if (phone.length === 11) {
|
|
85989
85973
|
if (isPhone.test(phone)) {
|
|
@@ -85997,58 +85981,65 @@ function isValidateNoneMobile(phone) {
|
|
|
85997
85981
|
} else {
|
|
85998
85982
|
result = false;
|
|
85999
85983
|
}
|
|
85984
|
+
|
|
86000
85985
|
list.push(result);
|
|
86001
85986
|
list.push(msg);
|
|
86002
85987
|
return list;
|
|
86003
85988
|
}
|
|
86004
|
-
|
|
86005
85989
|
/**
|
|
86006
85990
|
* 判断姓名是否正确
|
|
86007
85991
|
*/
|
|
85992
|
+
|
|
86008
85993
|
function validatename(name) {
|
|
86009
85994
|
var regName = /^[\u4e00-\u9fa5]{2,4}$/;
|
|
86010
85995
|
if (!regName.test(name)) return false;
|
|
86011
85996
|
return true;
|
|
86012
85997
|
}
|
|
86013
|
-
|
|
86014
85998
|
/**
|
|
86015
85999
|
* 判断是否为整数
|
|
86016
86000
|
*/
|
|
86001
|
+
|
|
86017
86002
|
function validatenum(num, type) {
|
|
86018
86003
|
let regName = /[^\d.]/g;
|
|
86004
|
+
|
|
86019
86005
|
if (type === 1) {
|
|
86020
86006
|
if (!regName.test(num)) return false;
|
|
86021
86007
|
} else if (type === 2) {
|
|
86022
86008
|
regName = /[^\d]/g;
|
|
86023
86009
|
if (!regName.test(num)) return false;
|
|
86024
86010
|
}
|
|
86011
|
+
|
|
86025
86012
|
return true;
|
|
86026
86013
|
}
|
|
86027
|
-
|
|
86028
86014
|
/**
|
|
86029
86015
|
* 判断是否为小数
|
|
86030
86016
|
*/
|
|
86017
|
+
|
|
86031
86018
|
function validatenumord(num, type) {
|
|
86032
86019
|
let regName = /[^\d.]/g;
|
|
86020
|
+
|
|
86033
86021
|
if (type === 1) {
|
|
86034
86022
|
if (!regName.test(num)) return false;
|
|
86035
86023
|
} else if (type === 2) {
|
|
86036
86024
|
regName = /[^\d.]/g;
|
|
86037
86025
|
if (!regName.test(num)) return false;
|
|
86038
86026
|
}
|
|
86027
|
+
|
|
86039
86028
|
return true;
|
|
86040
86029
|
}
|
|
86041
|
-
|
|
86042
86030
|
/**
|
|
86043
86031
|
* 判断是否为空
|
|
86044
86032
|
*/
|
|
86033
|
+
|
|
86045
86034
|
function validatenull(val) {
|
|
86046
86035
|
if (typeof val === 'boolean') {
|
|
86047
86036
|
return false;
|
|
86048
86037
|
}
|
|
86038
|
+
|
|
86049
86039
|
if (typeof val === 'number') {
|
|
86050
86040
|
return false;
|
|
86051
86041
|
}
|
|
86042
|
+
|
|
86052
86043
|
if (val instanceof Array) {
|
|
86053
86044
|
if (val.length === 0) return true;
|
|
86054
86045
|
} else if (val instanceof Object) {
|
|
@@ -86057,6 +86048,7 @@ function validatenull(val) {
|
|
|
86057
86048
|
if (val === 'null' || val == null || val === 'undefined' || val === undefined || val === '') return true;
|
|
86058
86049
|
return false;
|
|
86059
86050
|
}
|
|
86051
|
+
|
|
86060
86052
|
return false;
|
|
86061
86053
|
}
|
|
86062
86054
|
|
|
@@ -86082,6 +86074,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
86082
86074
|
smsLoginClient: 'app:app',
|
|
86083
86075
|
// 验证码登录的 client 信息
|
|
86084
86076
|
socialLoginClient: 'social:social' // 社交登录的 client 信息
|
|
86077
|
+
|
|
86085
86078
|
});
|
|
86086
86079
|
|
|
86087
86080
|
/***/ }),
|
|
@@ -120833,7 +120826,7 @@ function setup (options) {
|
|
|
120833
120826
|
return assign(setupDefaults, options)
|
|
120834
120827
|
}
|
|
120835
120828
|
|
|
120836
|
-
XEUtils.VERSION = '3.5.
|
|
120829
|
+
XEUtils.VERSION = '3.5.6'
|
|
120837
120830
|
XEUtils.mixin = mixin
|
|
120838
120831
|
XEUtils.setup = setup
|
|
120839
120832
|
|
|
@@ -126055,8 +126048,7 @@ function toArrayTree (array, options) {
|
|
|
126055
126048
|
var optData = opts.data
|
|
126056
126049
|
var result = []
|
|
126057
126050
|
var treeMap = {}
|
|
126058
|
-
var
|
|
126059
|
-
var id, treeData, parentId
|
|
126051
|
+
var idList, id, treeData, parentId
|
|
126060
126052
|
|
|
126061
126053
|
if (optSortKey) {
|
|
126062
126054
|
array = orderBy(clone(array), optSortKey)
|
|
@@ -126065,9 +126057,8 @@ function toArrayTree (array, options) {
|
|
|
126065
126057
|
}
|
|
126066
126058
|
}
|
|
126067
126059
|
|
|
126068
|
-
|
|
126069
|
-
|
|
126070
|
-
idsMap[id] = true
|
|
126060
|
+
idList = map(array, function (item) {
|
|
126061
|
+
return item[optKey]
|
|
126071
126062
|
})
|
|
126072
126063
|
|
|
126073
126064
|
each(array, function (item) {
|
|
@@ -126092,7 +126083,7 @@ function toArrayTree (array, options) {
|
|
|
126092
126083
|
}
|
|
126093
126084
|
|
|
126094
126085
|
if (!optStrict || (optStrict && !parentId)) {
|
|
126095
|
-
if (!
|
|
126086
|
+
if (!includes(idList, parentId)) {
|
|
126096
126087
|
result.push(treeData)
|
|
126097
126088
|
}
|
|
126098
126089
|
}
|
|
@@ -127155,7 +127146,8 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac
|
|
|
127155
127146
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/basic-view/index.vue?vue&type=template&id=0edabe78&scoped=true&
|
|
127156
127147
|
var render = function render() {
|
|
127157
127148
|
var _vm = this,
|
|
127158
|
-
|
|
127149
|
+
_c = _vm._self._c;
|
|
127150
|
+
|
|
127159
127151
|
return _c('div', {
|
|
127160
127152
|
staticClass: "basic-view"
|
|
127161
127153
|
}, [_vm.searchList.length ? _c('div', {
|
|
@@ -127289,12 +127281,14 @@ var render = function render() {
|
|
|
127289
127281
|
}
|
|
127290
127282
|
})], 1) : _vm._e()]);
|
|
127291
127283
|
};
|
|
127284
|
+
|
|
127292
127285
|
var staticRenderFns = [];
|
|
127293
127286
|
|
|
127294
127287
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/form-view/index.vue?vue&type=template&id=d9efa21c&scoped=true&
|
|
127295
127288
|
var form_viewvue_type_template_id_d9efa21c_scoped_true_render = function render() {
|
|
127296
127289
|
var _vm = this,
|
|
127297
|
-
|
|
127290
|
+
_c = _vm._self._c;
|
|
127291
|
+
|
|
127298
127292
|
return _c('el-form', {
|
|
127299
127293
|
ref: "form",
|
|
127300
127294
|
attrs: {
|
|
@@ -127403,6 +127397,7 @@ var form_viewvue_type_template_id_d9efa21c_scoped_true_render = function render(
|
|
|
127403
127397
|
}
|
|
127404
127398
|
}, [_vm._v("重置")])], 1)], 2);
|
|
127405
127399
|
};
|
|
127400
|
+
|
|
127406
127401
|
var form_viewvue_type_template_id_d9efa21c_scoped_true_staticRenderFns = [];
|
|
127407
127402
|
|
|
127408
127403
|
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
@@ -127414,6 +127409,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
127414
127409
|
* 通用表格组件
|
|
127415
127410
|
* @displayName FormView
|
|
127416
127411
|
*/
|
|
127412
|
+
|
|
127417
127413
|
/* harmony default export */ var form_viewvue_type_script_lang_js_ = ({
|
|
127418
127414
|
name: 'BytFormView',
|
|
127419
127415
|
props: {
|
|
@@ -127427,17 +127423,22 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
127427
127423
|
},
|
|
127428
127424
|
searchList: {
|
|
127429
127425
|
type: Array,
|
|
127426
|
+
|
|
127430
127427
|
default() {
|
|
127431
127428
|
return [];
|
|
127432
127429
|
}
|
|
127430
|
+
|
|
127433
127431
|
},
|
|
127434
127432
|
value: {
|
|
127435
127433
|
type: Object,
|
|
127434
|
+
|
|
127436
127435
|
default() {
|
|
127437
127436
|
return {};
|
|
127438
127437
|
}
|
|
127438
|
+
|
|
127439
127439
|
}
|
|
127440
127440
|
},
|
|
127441
|
+
|
|
127441
127442
|
data() {
|
|
127442
127443
|
return {
|
|
127443
127444
|
form: {},
|
|
@@ -127445,48 +127446,62 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
127445
127446
|
pickerOptions: {
|
|
127446
127447
|
shortcuts: [{
|
|
127447
127448
|
text: '最近一周',
|
|
127449
|
+
|
|
127448
127450
|
onClick(picker) {
|
|
127449
127451
|
const end = moment_default()().subtract(7, 'day').toDate();
|
|
127450
127452
|
const start = new Date();
|
|
127451
127453
|
picker.$emit('pick', [start, end]);
|
|
127452
127454
|
}
|
|
127455
|
+
|
|
127453
127456
|
}, {
|
|
127454
127457
|
text: '最近一个月',
|
|
127458
|
+
|
|
127455
127459
|
onClick(picker) {
|
|
127456
127460
|
const end = moment_default()().subtract(1, 'month').toDate();
|
|
127457
127461
|
const start = new Date();
|
|
127458
127462
|
picker.$emit('pick', [start, end]);
|
|
127459
127463
|
}
|
|
127464
|
+
|
|
127460
127465
|
}, {
|
|
127461
127466
|
text: '最近三个月',
|
|
127467
|
+
|
|
127462
127468
|
onClick(picker) {
|
|
127463
127469
|
const end = moment_default()().subtract(3, 'month').toDate();
|
|
127464
127470
|
const start = new Date();
|
|
127465
127471
|
picker.$emit('pick', [start, end]);
|
|
127466
127472
|
}
|
|
127473
|
+
|
|
127467
127474
|
}]
|
|
127468
127475
|
}
|
|
127469
127476
|
};
|
|
127470
127477
|
},
|
|
127478
|
+
|
|
127471
127479
|
components: {},
|
|
127472
127480
|
computed: {},
|
|
127481
|
+
|
|
127473
127482
|
mounted() {},
|
|
127483
|
+
|
|
127474
127484
|
methods: {
|
|
127475
127485
|
formateDate(type) {
|
|
127476
127486
|
// date、week 、month、year
|
|
127477
127487
|
switch (type) {
|
|
127478
127488
|
case 'date':
|
|
127479
127489
|
return 'yyyy-MM-dd';
|
|
127490
|
+
|
|
127480
127491
|
case 'month':
|
|
127481
127492
|
return 'yyyy-MM';
|
|
127493
|
+
|
|
127482
127494
|
case 'year':
|
|
127483
127495
|
return 'yyyy';
|
|
127496
|
+
|
|
127484
127497
|
case 'datetime':
|
|
127485
127498
|
return 'yyyy-MM-dd HH:mm:ss';
|
|
127499
|
+
|
|
127486
127500
|
default:
|
|
127487
127501
|
return 'yyyy-MM-dd';
|
|
127488
127502
|
}
|
|
127489
127503
|
},
|
|
127504
|
+
|
|
127490
127505
|
onSearch() {
|
|
127491
127506
|
/** 点击搜索
|
|
127492
127507
|
* @event search
|
|
@@ -127494,14 +127509,17 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
127494
127509
|
*/
|
|
127495
127510
|
this.$emit('search');
|
|
127496
127511
|
},
|
|
127512
|
+
|
|
127497
127513
|
onReset() {
|
|
127498
127514
|
this.form = {};
|
|
127499
127515
|
/** 点击重置
|
|
127500
127516
|
* @event reset
|
|
127501
127517
|
* @type {Event}
|
|
127502
127518
|
*/
|
|
127519
|
+
|
|
127503
127520
|
this.$emit('reset');
|
|
127504
127521
|
},
|
|
127522
|
+
|
|
127505
127523
|
validate() {
|
|
127506
127524
|
return new Promise(resolve => {
|
|
127507
127525
|
this.$refs.form.validate(v => {
|
|
@@ -127509,6 +127527,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
127509
127527
|
});
|
|
127510
127528
|
});
|
|
127511
127529
|
}
|
|
127530
|
+
|
|
127512
127531
|
},
|
|
127513
127532
|
watch: {
|
|
127514
127533
|
value: {
|
|
@@ -127517,6 +127536,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
127517
127536
|
this.form = Object.assign({}, this.form, val);
|
|
127518
127537
|
}
|
|
127519
127538
|
},
|
|
127539
|
+
|
|
127520
127540
|
immediate: true,
|
|
127521
127541
|
deep: true
|
|
127522
127542
|
},
|
|
@@ -127528,6 +127548,7 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
127528
127548
|
*/
|
|
127529
127549
|
this.$emit('input', val);
|
|
127530
127550
|
},
|
|
127551
|
+
|
|
127531
127552
|
deep: true
|
|
127532
127553
|
}
|
|
127533
127554
|
}
|
|
@@ -127661,6 +127682,7 @@ var component = normalizeComponent(
|
|
|
127661
127682
|
* @see {@link https://vxetable.cn/v3/#/table/base/basic}
|
|
127662
127683
|
* @see {@link https://element.eleme.cn/#/zh-CN/component/installation}
|
|
127663
127684
|
*/
|
|
127685
|
+
|
|
127664
127686
|
/* harmony default export */ var basic_viewvue_type_script_lang_js_ = ({
|
|
127665
127687
|
name: 'BytBaseView',
|
|
127666
127688
|
props: {
|
|
@@ -127669,44 +127691,57 @@ var component = normalizeComponent(
|
|
|
127669
127691
|
type: Number,
|
|
127670
127692
|
default: 80
|
|
127671
127693
|
},
|
|
127694
|
+
|
|
127672
127695
|
/** 搜索行内表单配置*/
|
|
127673
127696
|
searchList: {
|
|
127674
127697
|
type: Array,
|
|
127698
|
+
|
|
127675
127699
|
default() {
|
|
127676
127700
|
return [];
|
|
127677
127701
|
}
|
|
127702
|
+
|
|
127678
127703
|
},
|
|
127704
|
+
|
|
127679
127705
|
/** 调用表格数据请求的方法*/
|
|
127680
127706
|
fetch: {
|
|
127681
127707
|
type: Function,
|
|
127682
127708
|
default: () => {}
|
|
127683
127709
|
},
|
|
127710
|
+
|
|
127684
127711
|
/** 是否自动调用fetch请求,部分场景下不需要自动调用*/
|
|
127685
127712
|
autoLoad: {
|
|
127686
127713
|
type: Boolean,
|
|
127687
127714
|
default: true
|
|
127688
127715
|
},
|
|
127716
|
+
|
|
127689
127717
|
/** 表格数据*/
|
|
127690
127718
|
tableData: {
|
|
127691
127719
|
type: Array,
|
|
127692
127720
|
required: true,
|
|
127721
|
+
|
|
127693
127722
|
default() {
|
|
127694
127723
|
return [];
|
|
127695
127724
|
}
|
|
127725
|
+
|
|
127696
127726
|
},
|
|
127727
|
+
|
|
127697
127728
|
/** 表格列配置*/
|
|
127698
127729
|
columns: {
|
|
127699
127730
|
type: Array,
|
|
127700
127731
|
required: true,
|
|
127732
|
+
|
|
127701
127733
|
default() {
|
|
127702
127734
|
return [];
|
|
127703
127735
|
}
|
|
127736
|
+
|
|
127704
127737
|
},
|
|
127738
|
+
|
|
127705
127739
|
/** 分页配置,默认没有分页*/
|
|
127706
127740
|
pagination: {
|
|
127707
127741
|
type: [Boolean, Object],
|
|
127708
127742
|
default: false
|
|
127709
127743
|
},
|
|
127744
|
+
|
|
127710
127745
|
/**
|
|
127711
127746
|
* 整体配置是否单元格溢出显示省略号
|
|
127712
127747
|
* @values ellipsis, title, tooltip
|
|
@@ -127719,6 +127754,7 @@ var component = normalizeComponent(
|
|
|
127719
127754
|
components: {
|
|
127720
127755
|
FormView: form_view
|
|
127721
127756
|
},
|
|
127757
|
+
|
|
127722
127758
|
data() {
|
|
127723
127759
|
return {
|
|
127724
127760
|
searchForm: {},
|
|
@@ -127730,10 +127766,12 @@ var component = normalizeComponent(
|
|
|
127730
127766
|
}
|
|
127731
127767
|
};
|
|
127732
127768
|
},
|
|
127769
|
+
|
|
127733
127770
|
mounted() {
|
|
127734
127771
|
// 有些特殊情况需要手动请求列表数据
|
|
127735
127772
|
if (this.autoLoad) this.fetchData();
|
|
127736
127773
|
},
|
|
127774
|
+
|
|
127737
127775
|
methods: {
|
|
127738
127776
|
onSelectAllEvent(list) {
|
|
127739
127777
|
/** 多选框全选触发
|
|
@@ -127743,6 +127781,7 @@ var component = normalizeComponent(
|
|
|
127743
127781
|
*/
|
|
127744
127782
|
this.$emit('checkbox-all', list);
|
|
127745
127783
|
},
|
|
127784
|
+
|
|
127746
127785
|
onSelectChangeEvent(list) {
|
|
127747
127786
|
/** 多选框选择项变化触发
|
|
127748
127787
|
* @event checkbox-change
|
|
@@ -127751,6 +127790,7 @@ var component = normalizeComponent(
|
|
|
127751
127790
|
*/
|
|
127752
127791
|
this.$emit('checkbox-change', list);
|
|
127753
127792
|
},
|
|
127793
|
+
|
|
127754
127794
|
/**
|
|
127755
127795
|
* 初始化请求列表数据
|
|
127756
127796
|
* @param {params,pagination}
|
|
@@ -127770,6 +127810,7 @@ var component = normalizeComponent(
|
|
|
127770
127810
|
};
|
|
127771
127811
|
this.fetch(params);
|
|
127772
127812
|
},
|
|
127813
|
+
|
|
127773
127814
|
/**
|
|
127774
127815
|
* 搜索
|
|
127775
127816
|
* @param {params}
|
|
@@ -127778,6 +127819,7 @@ var component = normalizeComponent(
|
|
|
127778
127819
|
onSearch() {
|
|
127779
127820
|
this.fetchData();
|
|
127780
127821
|
},
|
|
127822
|
+
|
|
127781
127823
|
/**
|
|
127782
127824
|
* 刷新列表
|
|
127783
127825
|
* @param {params}
|
|
@@ -127787,6 +127829,7 @@ var component = normalizeComponent(
|
|
|
127787
127829
|
this.pageOpt.page = 1;
|
|
127788
127830
|
this.fetchData();
|
|
127789
127831
|
},
|
|
127832
|
+
|
|
127790
127833
|
/**
|
|
127791
127834
|
* 重置搜索条件
|
|
127792
127835
|
* @param {params}
|
|
@@ -127797,6 +127840,7 @@ var component = normalizeComponent(
|
|
|
127797
127840
|
this.searchForm = {};
|
|
127798
127841
|
this.fetchData();
|
|
127799
127842
|
},
|
|
127843
|
+
|
|
127800
127844
|
onSizeChange(size) {
|
|
127801
127845
|
this.pageOpt.pageSize = size;
|
|
127802
127846
|
this.pageOpt.page = 1;
|
|
@@ -127804,12 +127848,14 @@ var component = normalizeComponent(
|
|
|
127804
127848
|
this.fetchData();
|
|
127805
127849
|
});
|
|
127806
127850
|
},
|
|
127851
|
+
|
|
127807
127852
|
onPageChange(page) {
|
|
127808
127853
|
this.pageOpt.page = page;
|
|
127809
127854
|
this.$nextTick(() => {
|
|
127810
127855
|
this.fetchData();
|
|
127811
127856
|
});
|
|
127812
127857
|
},
|
|
127858
|
+
|
|
127813
127859
|
initForm(list) {
|
|
127814
127860
|
list.map(v => {
|
|
127815
127861
|
if (v.value || v.value == 0) {
|
|
@@ -127817,6 +127863,7 @@ var component = normalizeComponent(
|
|
|
127817
127863
|
}
|
|
127818
127864
|
});
|
|
127819
127865
|
}
|
|
127866
|
+
|
|
127820
127867
|
},
|
|
127821
127868
|
watch: {
|
|
127822
127869
|
pagination: {
|
|
@@ -127825,6 +127872,7 @@ var component = normalizeComponent(
|
|
|
127825
127872
|
this.pageOpt = Object.assign(this.pageOpt, val);
|
|
127826
127873
|
}
|
|
127827
127874
|
},
|
|
127875
|
+
|
|
127828
127876
|
immediate: true,
|
|
127829
127877
|
deep: true
|
|
127830
127878
|
},
|
|
@@ -127832,6 +127880,7 @@ var component = normalizeComponent(
|
|
|
127832
127880
|
handler(val) {
|
|
127833
127881
|
this.initForm(val);
|
|
127834
127882
|
},
|
|
127883
|
+
|
|
127835
127884
|
immediate: true,
|
|
127836
127885
|
deep: true
|
|
127837
127886
|
}
|
|
@@ -127887,10 +127936,13 @@ const components = [basic_view, form_view];
|
|
|
127887
127936
|
*/
|
|
127888
127937
|
// 动态引入
|
|
127889
127938
|
let conmmon = {};
|
|
127939
|
+
|
|
127890
127940
|
const requireContext = __webpack_require__(26745);
|
|
127941
|
+
|
|
127891
127942
|
requireContext.keys().map(key => {
|
|
127892
127943
|
const reg = /\w+/;
|
|
127893
127944
|
const k = key.match(reg)[0];
|
|
127945
|
+
|
|
127894
127946
|
if (requireContext(key).default) {
|
|
127895
127947
|
conmmon[k] = requireContext(key).default;
|
|
127896
127948
|
} else {
|
|
@@ -127914,13 +127966,12 @@ var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_co
|
|
|
127914
127966
|
* @LastEditTime: 2022-10-25 09:47:57
|
|
127915
127967
|
* @LastEditors: 王国火
|
|
127916
127968
|
*/
|
|
127969
|
+
//通用组件
|
|
127917
127970
|
|
|
127918
|
-
|
|
127919
|
-
|
|
127920
|
-
//公用方法
|
|
127971
|
+
//公用方法
|
|
127921
127972
|
|
|
127973
|
+
// 第三方依赖
|
|
127922
127974
|
|
|
127923
|
-
// 第三方依赖
|
|
127924
127975
|
|
|
127925
127976
|
|
|
127926
127977
|
|
|
@@ -127934,15 +127985,15 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().use((element_ui_common_de
|
|
|
127934
127985
|
const Cmps = {};
|
|
127935
127986
|
packages_components.map(component => {
|
|
127936
127987
|
Cmps[component.name] = component;
|
|
127937
|
-
});
|
|
127988
|
+
}); // install组件api
|
|
127938
127989
|
|
|
127939
|
-
// install组件api
|
|
127940
127990
|
const install = function (Vue) {
|
|
127941
127991
|
packages_components.map(component => {
|
|
127942
127992
|
Vue.component(component.name, component);
|
|
127943
127993
|
});
|
|
127944
127994
|
Vue.prototype.$byt = common;
|
|
127945
127995
|
};
|
|
127996
|
+
|
|
127946
127997
|
/* harmony default export */ var packages_0 = ({
|
|
127947
127998
|
install,
|
|
127948
127999
|
...Cmps,
|