@ant-design/pro-components 2.3.19 → 2.3.21

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.
@@ -10285,1460 +10285,6 @@ module.exports = merge;
10285
10285
 
10286
10286
  /***/ }),
10287
10287
 
10288
- /***/ 8493:
10289
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
10290
-
10291
- /**
10292
- * lodash (Custom Build) <https://lodash.com/>
10293
- * Build: `lodash modularize exports="npm" -o ./`
10294
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
10295
- * Released under MIT license <https://lodash.com/license>
10296
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
10297
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
10298
- */
10299
-
10300
- /** Used as the size to enable large array optimizations. */
10301
- var LARGE_ARRAY_SIZE = 200;
10302
-
10303
- /** Used to stand-in for `undefined` hash values. */
10304
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
10305
-
10306
- /** Used as references for various `Number` constants. */
10307
- var INFINITY = 1 / 0,
10308
- MAX_SAFE_INTEGER = 9007199254740991;
10309
-
10310
- /** `Object#toString` result references. */
10311
- var argsTag = '[object Arguments]',
10312
- funcTag = '[object Function]',
10313
- genTag = '[object GeneratorFunction]',
10314
- symbolTag = '[object Symbol]';
10315
-
10316
- /**
10317
- * Used to match `RegExp`
10318
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
10319
- */
10320
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
10321
-
10322
- /** Used to detect host constructors (Safari). */
10323
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
10324
-
10325
- /** Used to detect unsigned integer values. */
10326
- var reIsUint = /^(?:0|[1-9]\d*)$/;
10327
-
10328
- /** Detect free variable `global` from Node.js. */
10329
- var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
10330
-
10331
- /** Detect free variable `self`. */
10332
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
10333
-
10334
- /** Used as a reference to the global object. */
10335
- var root = freeGlobal || freeSelf || Function('return this')();
10336
-
10337
- /**
10338
- * A faster alternative to `Function#apply`, this function invokes `func`
10339
- * with the `this` binding of `thisArg` and the arguments of `args`.
10340
- *
10341
- * @private
10342
- * @param {Function} func The function to invoke.
10343
- * @param {*} thisArg The `this` binding of `func`.
10344
- * @param {Array} args The arguments to invoke `func` with.
10345
- * @returns {*} Returns the result of `func`.
10346
- */
10347
- function apply(func, thisArg, args) {
10348
- switch (args.length) {
10349
- case 0:
10350
- return func.call(thisArg);
10351
- case 1:
10352
- return func.call(thisArg, args[0]);
10353
- case 2:
10354
- return func.call(thisArg, args[0], args[1]);
10355
- case 3:
10356
- return func.call(thisArg, args[0], args[1], args[2]);
10357
- }
10358
- return func.apply(thisArg, args);
10359
- }
10360
-
10361
- /**
10362
- * A specialized version of `_.includes` for arrays without support for
10363
- * specifying an index to search from.
10364
- *
10365
- * @private
10366
- * @param {Array} [array] The array to inspect.
10367
- * @param {*} target The value to search for.
10368
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
10369
- */
10370
- function arrayIncludes(array, value) {
10371
- var length = array ? array.length : 0;
10372
- return !!length && baseIndexOf(array, value, 0) > -1;
10373
- }
10374
-
10375
- /**
10376
- * This function is like `arrayIncludes` except that it accepts a comparator.
10377
- *
10378
- * @private
10379
- * @param {Array} [array] The array to inspect.
10380
- * @param {*} target The value to search for.
10381
- * @param {Function} comparator The comparator invoked per element.
10382
- * @returns {boolean} Returns `true` if `target` is found, else `false`.
10383
- */
10384
- function arrayIncludesWith(array, value, comparator) {
10385
- var index = -1,
10386
- length = array ? array.length : 0;
10387
- while (++index < length) {
10388
- if (comparator(value, array[index])) {
10389
- return true;
10390
- }
10391
- }
10392
- return false;
10393
- }
10394
-
10395
- /**
10396
- * A specialized version of `_.map` for arrays without support for iteratee
10397
- * shorthands.
10398
- *
10399
- * @private
10400
- * @param {Array} [array] The array to iterate over.
10401
- * @param {Function} iteratee The function invoked per iteration.
10402
- * @returns {Array} Returns the new mapped array.
10403
- */
10404
- function arrayMap(array, iteratee) {
10405
- var index = -1,
10406
- length = array ? array.length : 0,
10407
- result = Array(length);
10408
- while (++index < length) {
10409
- result[index] = iteratee(array[index], index, array);
10410
- }
10411
- return result;
10412
- }
10413
-
10414
- /**
10415
- * Appends the elements of `values` to `array`.
10416
- *
10417
- * @private
10418
- * @param {Array} array The array to modify.
10419
- * @param {Array} values The values to append.
10420
- * @returns {Array} Returns `array`.
10421
- */
10422
- function arrayPush(array, values) {
10423
- var index = -1,
10424
- length = values.length,
10425
- offset = array.length;
10426
- while (++index < length) {
10427
- array[offset + index] = values[index];
10428
- }
10429
- return array;
10430
- }
10431
-
10432
- /**
10433
- * The base implementation of `_.findIndex` and `_.findLastIndex` without
10434
- * support for iteratee shorthands.
10435
- *
10436
- * @private
10437
- * @param {Array} array The array to inspect.
10438
- * @param {Function} predicate The function invoked per iteration.
10439
- * @param {number} fromIndex The index to search from.
10440
- * @param {boolean} [fromRight] Specify iterating from right to left.
10441
- * @returns {number} Returns the index of the matched value, else `-1`.
10442
- */
10443
- function baseFindIndex(array, predicate, fromIndex, fromRight) {
10444
- var length = array.length,
10445
- index = fromIndex + (fromRight ? 1 : -1);
10446
- while (fromRight ? index-- : ++index < length) {
10447
- if (predicate(array[index], index, array)) {
10448
- return index;
10449
- }
10450
- }
10451
- return -1;
10452
- }
10453
-
10454
- /**
10455
- * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
10456
- *
10457
- * @private
10458
- * @param {Array} array The array to inspect.
10459
- * @param {*} value The value to search for.
10460
- * @param {number} fromIndex The index to search from.
10461
- * @returns {number} Returns the index of the matched value, else `-1`.
10462
- */
10463
- function baseIndexOf(array, value, fromIndex) {
10464
- if (value !== value) {
10465
- return baseFindIndex(array, baseIsNaN, fromIndex);
10466
- }
10467
- var index = fromIndex - 1,
10468
- length = array.length;
10469
- while (++index < length) {
10470
- if (array[index] === value) {
10471
- return index;
10472
- }
10473
- }
10474
- return -1;
10475
- }
10476
-
10477
- /**
10478
- * The base implementation of `_.isNaN` without support for number objects.
10479
- *
10480
- * @private
10481
- * @param {*} value The value to check.
10482
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
10483
- */
10484
- function baseIsNaN(value) {
10485
- return value !== value;
10486
- }
10487
-
10488
- /**
10489
- * The base implementation of `_.times` without support for iteratee shorthands
10490
- * or max array length checks.
10491
- *
10492
- * @private
10493
- * @param {number} n The number of times to invoke `iteratee`.
10494
- * @param {Function} iteratee The function invoked per iteration.
10495
- * @returns {Array} Returns the array of results.
10496
- */
10497
- function baseTimes(n, iteratee) {
10498
- var index = -1,
10499
- result = Array(n);
10500
- while (++index < n) {
10501
- result[index] = iteratee(index);
10502
- }
10503
- return result;
10504
- }
10505
-
10506
- /**
10507
- * The base implementation of `_.unary` without support for storing metadata.
10508
- *
10509
- * @private
10510
- * @param {Function} func The function to cap arguments for.
10511
- * @returns {Function} Returns the new capped function.
10512
- */
10513
- function baseUnary(func) {
10514
- return function (value) {
10515
- return func(value);
10516
- };
10517
- }
10518
-
10519
- /**
10520
- * Checks if a cache value for `key` exists.
10521
- *
10522
- * @private
10523
- * @param {Object} cache The cache to query.
10524
- * @param {string} key The key of the entry to check.
10525
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10526
- */
10527
- function cacheHas(cache, key) {
10528
- return cache.has(key);
10529
- }
10530
-
10531
- /**
10532
- * Gets the value at `key` of `object`.
10533
- *
10534
- * @private
10535
- * @param {Object} [object] The object to query.
10536
- * @param {string} key The key of the property to get.
10537
- * @returns {*} Returns the property value.
10538
- */
10539
- function getValue(object, key) {
10540
- return object == null ? undefined : object[key];
10541
- }
10542
-
10543
- /**
10544
- * Checks if `value` is a host object in IE < 9.
10545
- *
10546
- * @private
10547
- * @param {*} value The value to check.
10548
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
10549
- */
10550
- function isHostObject(value) {
10551
- // Many host objects are `Object` objects that can coerce to strings
10552
- // despite having improperly defined `toString` methods.
10553
- var result = false;
10554
- if (value != null && typeof value.toString != 'function') {
10555
- try {
10556
- result = !!(value + '');
10557
- } catch (e) {}
10558
- }
10559
- return result;
10560
- }
10561
-
10562
- /**
10563
- * Creates a unary function that invokes `func` with its argument transformed.
10564
- *
10565
- * @private
10566
- * @param {Function} func The function to wrap.
10567
- * @param {Function} transform The argument transform.
10568
- * @returns {Function} Returns the new function.
10569
- */
10570
- function overArg(func, transform) {
10571
- return function (arg) {
10572
- return func(transform(arg));
10573
- };
10574
- }
10575
-
10576
- /** Used for built-in method references. */
10577
- var arrayProto = Array.prototype,
10578
- funcProto = Function.prototype,
10579
- objectProto = Object.prototype;
10580
-
10581
- /** Used to detect overreaching core-js shims. */
10582
- var coreJsData = root['__core-js_shared__'];
10583
-
10584
- /** Used to detect methods masquerading as native. */
10585
- var maskSrcKey = function () {
10586
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
10587
- return uid ? 'Symbol(src)_1.' + uid : '';
10588
- }();
10589
-
10590
- /** Used to resolve the decompiled source of functions. */
10591
- var funcToString = funcProto.toString;
10592
-
10593
- /** Used to check objects for own properties. */
10594
- var hasOwnProperty = objectProto.hasOwnProperty;
10595
-
10596
- /**
10597
- * Used to resolve the
10598
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
10599
- * of values.
10600
- */
10601
- var objectToString = objectProto.toString;
10602
-
10603
- /** Used to detect if a method is native. */
10604
- var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
10605
-
10606
- /** Built-in value references. */
10607
- var Symbol = root.Symbol,
10608
- getPrototype = overArg(Object.getPrototypeOf, Object),
10609
- propertyIsEnumerable = objectProto.propertyIsEnumerable,
10610
- splice = arrayProto.splice,
10611
- spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
10612
-
10613
- /* Built-in method references for those with the same name as other `lodash` methods. */
10614
- var nativeGetSymbols = Object.getOwnPropertySymbols,
10615
- nativeMax = Math.max;
10616
-
10617
- /* Built-in method references that are verified to be native. */
10618
- var Map = getNative(root, 'Map'),
10619
- nativeCreate = getNative(Object, 'create');
10620
-
10621
- /**
10622
- * Creates a hash object.
10623
- *
10624
- * @private
10625
- * @constructor
10626
- * @param {Array} [entries] The key-value pairs to cache.
10627
- */
10628
- function Hash(entries) {
10629
- var index = -1,
10630
- length = entries ? entries.length : 0;
10631
- this.clear();
10632
- while (++index < length) {
10633
- var entry = entries[index];
10634
- this.set(entry[0], entry[1]);
10635
- }
10636
- }
10637
-
10638
- /**
10639
- * Removes all key-value entries from the hash.
10640
- *
10641
- * @private
10642
- * @name clear
10643
- * @memberOf Hash
10644
- */
10645
- function hashClear() {
10646
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
10647
- }
10648
-
10649
- /**
10650
- * Removes `key` and its value from the hash.
10651
- *
10652
- * @private
10653
- * @name delete
10654
- * @memberOf Hash
10655
- * @param {Object} hash The hash to modify.
10656
- * @param {string} key The key of the value to remove.
10657
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
10658
- */
10659
- function hashDelete(key) {
10660
- return this.has(key) && delete this.__data__[key];
10661
- }
10662
-
10663
- /**
10664
- * Gets the hash value for `key`.
10665
- *
10666
- * @private
10667
- * @name get
10668
- * @memberOf Hash
10669
- * @param {string} key The key of the value to get.
10670
- * @returns {*} Returns the entry value.
10671
- */
10672
- function hashGet(key) {
10673
- var data = this.__data__;
10674
- if (nativeCreate) {
10675
- var result = data[key];
10676
- return result === HASH_UNDEFINED ? undefined : result;
10677
- }
10678
- return hasOwnProperty.call(data, key) ? data[key] : undefined;
10679
- }
10680
-
10681
- /**
10682
- * Checks if a hash value for `key` exists.
10683
- *
10684
- * @private
10685
- * @name has
10686
- * @memberOf Hash
10687
- * @param {string} key The key of the entry to check.
10688
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10689
- */
10690
- function hashHas(key) {
10691
- var data = this.__data__;
10692
- return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
10693
- }
10694
-
10695
- /**
10696
- * Sets the hash `key` to `value`.
10697
- *
10698
- * @private
10699
- * @name set
10700
- * @memberOf Hash
10701
- * @param {string} key The key of the value to set.
10702
- * @param {*} value The value to set.
10703
- * @returns {Object} Returns the hash instance.
10704
- */
10705
- function hashSet(key, value) {
10706
- var data = this.__data__;
10707
- data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;
10708
- return this;
10709
- }
10710
-
10711
- // Add methods to `Hash`.
10712
- Hash.prototype.clear = hashClear;
10713
- Hash.prototype['delete'] = hashDelete;
10714
- Hash.prototype.get = hashGet;
10715
- Hash.prototype.has = hashHas;
10716
- Hash.prototype.set = hashSet;
10717
-
10718
- /**
10719
- * Creates an list cache object.
10720
- *
10721
- * @private
10722
- * @constructor
10723
- * @param {Array} [entries] The key-value pairs to cache.
10724
- */
10725
- function ListCache(entries) {
10726
- var index = -1,
10727
- length = entries ? entries.length : 0;
10728
- this.clear();
10729
- while (++index < length) {
10730
- var entry = entries[index];
10731
- this.set(entry[0], entry[1]);
10732
- }
10733
- }
10734
-
10735
- /**
10736
- * Removes all key-value entries from the list cache.
10737
- *
10738
- * @private
10739
- * @name clear
10740
- * @memberOf ListCache
10741
- */
10742
- function listCacheClear() {
10743
- this.__data__ = [];
10744
- }
10745
-
10746
- /**
10747
- * Removes `key` and its value from the list cache.
10748
- *
10749
- * @private
10750
- * @name delete
10751
- * @memberOf ListCache
10752
- * @param {string} key The key of the value to remove.
10753
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
10754
- */
10755
- function listCacheDelete(key) {
10756
- var data = this.__data__,
10757
- index = assocIndexOf(data, key);
10758
- if (index < 0) {
10759
- return false;
10760
- }
10761
- var lastIndex = data.length - 1;
10762
- if (index == lastIndex) {
10763
- data.pop();
10764
- } else {
10765
- splice.call(data, index, 1);
10766
- }
10767
- return true;
10768
- }
10769
-
10770
- /**
10771
- * Gets the list cache value for `key`.
10772
- *
10773
- * @private
10774
- * @name get
10775
- * @memberOf ListCache
10776
- * @param {string} key The key of the value to get.
10777
- * @returns {*} Returns the entry value.
10778
- */
10779
- function listCacheGet(key) {
10780
- var data = this.__data__,
10781
- index = assocIndexOf(data, key);
10782
- return index < 0 ? undefined : data[index][1];
10783
- }
10784
-
10785
- /**
10786
- * Checks if a list cache value for `key` exists.
10787
- *
10788
- * @private
10789
- * @name has
10790
- * @memberOf ListCache
10791
- * @param {string} key The key of the entry to check.
10792
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10793
- */
10794
- function listCacheHas(key) {
10795
- return assocIndexOf(this.__data__, key) > -1;
10796
- }
10797
-
10798
- /**
10799
- * Sets the list cache `key` to `value`.
10800
- *
10801
- * @private
10802
- * @name set
10803
- * @memberOf ListCache
10804
- * @param {string} key The key of the value to set.
10805
- * @param {*} value The value to set.
10806
- * @returns {Object} Returns the list cache instance.
10807
- */
10808
- function listCacheSet(key, value) {
10809
- var data = this.__data__,
10810
- index = assocIndexOf(data, key);
10811
- if (index < 0) {
10812
- data.push([key, value]);
10813
- } else {
10814
- data[index][1] = value;
10815
- }
10816
- return this;
10817
- }
10818
-
10819
- // Add methods to `ListCache`.
10820
- ListCache.prototype.clear = listCacheClear;
10821
- ListCache.prototype['delete'] = listCacheDelete;
10822
- ListCache.prototype.get = listCacheGet;
10823
- ListCache.prototype.has = listCacheHas;
10824
- ListCache.prototype.set = listCacheSet;
10825
-
10826
- /**
10827
- * Creates a map cache object to store key-value pairs.
10828
- *
10829
- * @private
10830
- * @constructor
10831
- * @param {Array} [entries] The key-value pairs to cache.
10832
- */
10833
- function MapCache(entries) {
10834
- var index = -1,
10835
- length = entries ? entries.length : 0;
10836
- this.clear();
10837
- while (++index < length) {
10838
- var entry = entries[index];
10839
- this.set(entry[0], entry[1]);
10840
- }
10841
- }
10842
-
10843
- /**
10844
- * Removes all key-value entries from the map.
10845
- *
10846
- * @private
10847
- * @name clear
10848
- * @memberOf MapCache
10849
- */
10850
- function mapCacheClear() {
10851
- this.__data__ = {
10852
- 'hash': new Hash(),
10853
- 'map': new (Map || ListCache)(),
10854
- 'string': new Hash()
10855
- };
10856
- }
10857
-
10858
- /**
10859
- * Removes `key` and its value from the map.
10860
- *
10861
- * @private
10862
- * @name delete
10863
- * @memberOf MapCache
10864
- * @param {string} key The key of the value to remove.
10865
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
10866
- */
10867
- function mapCacheDelete(key) {
10868
- return getMapData(this, key)['delete'](key);
10869
- }
10870
-
10871
- /**
10872
- * Gets the map value for `key`.
10873
- *
10874
- * @private
10875
- * @name get
10876
- * @memberOf MapCache
10877
- * @param {string} key The key of the value to get.
10878
- * @returns {*} Returns the entry value.
10879
- */
10880
- function mapCacheGet(key) {
10881
- return getMapData(this, key).get(key);
10882
- }
10883
-
10884
- /**
10885
- * Checks if a map value for `key` exists.
10886
- *
10887
- * @private
10888
- * @name has
10889
- * @memberOf MapCache
10890
- * @param {string} key The key of the entry to check.
10891
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
10892
- */
10893
- function mapCacheHas(key) {
10894
- return getMapData(this, key).has(key);
10895
- }
10896
-
10897
- /**
10898
- * Sets the map `key` to `value`.
10899
- *
10900
- * @private
10901
- * @name set
10902
- * @memberOf MapCache
10903
- * @param {string} key The key of the value to set.
10904
- * @param {*} value The value to set.
10905
- * @returns {Object} Returns the map cache instance.
10906
- */
10907
- function mapCacheSet(key, value) {
10908
- getMapData(this, key).set(key, value);
10909
- return this;
10910
- }
10911
-
10912
- // Add methods to `MapCache`.
10913
- MapCache.prototype.clear = mapCacheClear;
10914
- MapCache.prototype['delete'] = mapCacheDelete;
10915
- MapCache.prototype.get = mapCacheGet;
10916
- MapCache.prototype.has = mapCacheHas;
10917
- MapCache.prototype.set = mapCacheSet;
10918
-
10919
- /**
10920
- *
10921
- * Creates an array cache object to store unique values.
10922
- *
10923
- * @private
10924
- * @constructor
10925
- * @param {Array} [values] The values to cache.
10926
- */
10927
- function SetCache(values) {
10928
- var index = -1,
10929
- length = values ? values.length : 0;
10930
- this.__data__ = new MapCache();
10931
- while (++index < length) {
10932
- this.add(values[index]);
10933
- }
10934
- }
10935
-
10936
- /**
10937
- * Adds `value` to the array cache.
10938
- *
10939
- * @private
10940
- * @name add
10941
- * @memberOf SetCache
10942
- * @alias push
10943
- * @param {*} value The value to cache.
10944
- * @returns {Object} Returns the cache instance.
10945
- */
10946
- function setCacheAdd(value) {
10947
- this.__data__.set(value, HASH_UNDEFINED);
10948
- return this;
10949
- }
10950
-
10951
- /**
10952
- * Checks if `value` is in the array cache.
10953
- *
10954
- * @private
10955
- * @name has
10956
- * @memberOf SetCache
10957
- * @param {*} value The value to search for.
10958
- * @returns {number} Returns `true` if `value` is found, else `false`.
10959
- */
10960
- function setCacheHas(value) {
10961
- return this.__data__.has(value);
10962
- }
10963
-
10964
- // Add methods to `SetCache`.
10965
- SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
10966
- SetCache.prototype.has = setCacheHas;
10967
-
10968
- /**
10969
- * Creates an array of the enumerable property names of the array-like `value`.
10970
- *
10971
- * @private
10972
- * @param {*} value The value to query.
10973
- * @param {boolean} inherited Specify returning inherited property names.
10974
- * @returns {Array} Returns the array of property names.
10975
- */
10976
- function arrayLikeKeys(value, inherited) {
10977
- // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
10978
- // Safari 9 makes `arguments.length` enumerable in strict mode.
10979
- var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];
10980
- var length = result.length,
10981
- skipIndexes = !!length;
10982
- for (var key in value) {
10983
- if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
10984
- result.push(key);
10985
- }
10986
- }
10987
- return result;
10988
- }
10989
-
10990
- /**
10991
- * Gets the index at which the `key` is found in `array` of key-value pairs.
10992
- *
10993
- * @private
10994
- * @param {Array} array The array to inspect.
10995
- * @param {*} key The key to search for.
10996
- * @returns {number} Returns the index of the matched value, else `-1`.
10997
- */
10998
- function assocIndexOf(array, key) {
10999
- var length = array.length;
11000
- while (length--) {
11001
- if (eq(array[length][0], key)) {
11002
- return length;
11003
- }
11004
- }
11005
- return -1;
11006
- }
11007
-
11008
- /**
11009
- * The base implementation of methods like `_.difference` without support
11010
- * for excluding multiple arrays or iteratee shorthands.
11011
- *
11012
- * @private
11013
- * @param {Array} array The array to inspect.
11014
- * @param {Array} values The values to exclude.
11015
- * @param {Function} [iteratee] The iteratee invoked per element.
11016
- * @param {Function} [comparator] The comparator invoked per element.
11017
- * @returns {Array} Returns the new array of filtered values.
11018
- */
11019
- function baseDifference(array, values, iteratee, comparator) {
11020
- var index = -1,
11021
- includes = arrayIncludes,
11022
- isCommon = true,
11023
- length = array.length,
11024
- result = [],
11025
- valuesLength = values.length;
11026
- if (!length) {
11027
- return result;
11028
- }
11029
- if (iteratee) {
11030
- values = arrayMap(values, baseUnary(iteratee));
11031
- }
11032
- if (comparator) {
11033
- includes = arrayIncludesWith;
11034
- isCommon = false;
11035
- } else if (values.length >= LARGE_ARRAY_SIZE) {
11036
- includes = cacheHas;
11037
- isCommon = false;
11038
- values = new SetCache(values);
11039
- }
11040
- outer: while (++index < length) {
11041
- var value = array[index],
11042
- computed = iteratee ? iteratee(value) : value;
11043
- value = comparator || value !== 0 ? value : 0;
11044
- if (isCommon && computed === computed) {
11045
- var valuesIndex = valuesLength;
11046
- while (valuesIndex--) {
11047
- if (values[valuesIndex] === computed) {
11048
- continue outer;
11049
- }
11050
- }
11051
- result.push(value);
11052
- } else if (!includes(values, computed, comparator)) {
11053
- result.push(value);
11054
- }
11055
- }
11056
- return result;
11057
- }
11058
-
11059
- /**
11060
- * The base implementation of `_.flatten` with support for restricting flattening.
11061
- *
11062
- * @private
11063
- * @param {Array} array The array to flatten.
11064
- * @param {number} depth The maximum recursion depth.
11065
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
11066
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
11067
- * @param {Array} [result=[]] The initial result value.
11068
- * @returns {Array} Returns the new flattened array.
11069
- */
11070
- function baseFlatten(array, depth, predicate, isStrict, result) {
11071
- var index = -1,
11072
- length = array.length;
11073
- predicate || (predicate = isFlattenable);
11074
- result || (result = []);
11075
- while (++index < length) {
11076
- var value = array[index];
11077
- if (depth > 0 && predicate(value)) {
11078
- if (depth > 1) {
11079
- // Recursively flatten arrays (susceptible to call stack limits).
11080
- baseFlatten(value, depth - 1, predicate, isStrict, result);
11081
- } else {
11082
- arrayPush(result, value);
11083
- }
11084
- } else if (!isStrict) {
11085
- result[result.length] = value;
11086
- }
11087
- }
11088
- return result;
11089
- }
11090
-
11091
- /**
11092
- * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
11093
- * `keysFunc` and `symbolsFunc` to get the enumerable property names and
11094
- * symbols of `object`.
11095
- *
11096
- * @private
11097
- * @param {Object} object The object to query.
11098
- * @param {Function} keysFunc The function to get the keys of `object`.
11099
- * @param {Function} symbolsFunc The function to get the symbols of `object`.
11100
- * @returns {Array} Returns the array of property names and symbols.
11101
- */
11102
- function baseGetAllKeys(object, keysFunc, symbolsFunc) {
11103
- var result = keysFunc(object);
11104
- return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
11105
- }
11106
-
11107
- /**
11108
- * The base implementation of `_.isNative` without bad shim checks.
11109
- *
11110
- * @private
11111
- * @param {*} value The value to check.
11112
- * @returns {boolean} Returns `true` if `value` is a native function,
11113
- * else `false`.
11114
- */
11115
- function baseIsNative(value) {
11116
- if (!isObject(value) || isMasked(value)) {
11117
- return false;
11118
- }
11119
- var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
11120
- return pattern.test(toSource(value));
11121
- }
11122
-
11123
- /**
11124
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
11125
- *
11126
- * @private
11127
- * @param {Object} object The object to query.
11128
- * @returns {Array} Returns the array of property names.
11129
- */
11130
- function baseKeysIn(object) {
11131
- if (!isObject(object)) {
11132
- return nativeKeysIn(object);
11133
- }
11134
- var isProto = isPrototype(object),
11135
- result = [];
11136
- for (var key in object) {
11137
- if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
11138
- result.push(key);
11139
- }
11140
- }
11141
- return result;
11142
- }
11143
-
11144
- /**
11145
- * The base implementation of `_.pick` without support for individual
11146
- * property identifiers.
11147
- *
11148
- * @private
11149
- * @param {Object} object The source object.
11150
- * @param {string[]} props The property identifiers to pick.
11151
- * @returns {Object} Returns the new object.
11152
- */
11153
- function basePick(object, props) {
11154
- object = Object(object);
11155
- return basePickBy(object, props, function (value, key) {
11156
- return key in object;
11157
- });
11158
- }
11159
-
11160
- /**
11161
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
11162
- *
11163
- * @private
11164
- * @param {Object} object The source object.
11165
- * @param {string[]} props The property identifiers to pick from.
11166
- * @param {Function} predicate The function invoked per property.
11167
- * @returns {Object} Returns the new object.
11168
- */
11169
- function basePickBy(object, props, predicate) {
11170
- var index = -1,
11171
- length = props.length,
11172
- result = {};
11173
- while (++index < length) {
11174
- var key = props[index],
11175
- value = object[key];
11176
- if (predicate(value, key)) {
11177
- result[key] = value;
11178
- }
11179
- }
11180
- return result;
11181
- }
11182
-
11183
- /**
11184
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
11185
- *
11186
- * @private
11187
- * @param {Function} func The function to apply a rest parameter to.
11188
- * @param {number} [start=func.length-1] The start position of the rest parameter.
11189
- * @returns {Function} Returns the new function.
11190
- */
11191
- function baseRest(func, start) {
11192
- start = nativeMax(start === undefined ? func.length - 1 : start, 0);
11193
- return function () {
11194
- var args = arguments,
11195
- index = -1,
11196
- length = nativeMax(args.length - start, 0),
11197
- array = Array(length);
11198
- while (++index < length) {
11199
- array[index] = args[start + index];
11200
- }
11201
- index = -1;
11202
- var otherArgs = Array(start + 1);
11203
- while (++index < start) {
11204
- otherArgs[index] = args[index];
11205
- }
11206
- otherArgs[start] = array;
11207
- return apply(func, this, otherArgs);
11208
- };
11209
- }
11210
-
11211
- /**
11212
- * Creates an array of own and inherited enumerable property names and
11213
- * symbols of `object`.
11214
- *
11215
- * @private
11216
- * @param {Object} object The object to query.
11217
- * @returns {Array} Returns the array of property names and symbols.
11218
- */
11219
- function getAllKeysIn(object) {
11220
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
11221
- }
11222
-
11223
- /**
11224
- * Gets the data for `map`.
11225
- *
11226
- * @private
11227
- * @param {Object} map The map to query.
11228
- * @param {string} key The reference key.
11229
- * @returns {*} Returns the map data.
11230
- */
11231
- function getMapData(map, key) {
11232
- var data = map.__data__;
11233
- return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;
11234
- }
11235
-
11236
- /**
11237
- * Gets the native function at `key` of `object`.
11238
- *
11239
- * @private
11240
- * @param {Object} object The object to query.
11241
- * @param {string} key The key of the method to get.
11242
- * @returns {*} Returns the function if it's native, else `undefined`.
11243
- */
11244
- function getNative(object, key) {
11245
- var value = getValue(object, key);
11246
- return baseIsNative(value) ? value : undefined;
11247
- }
11248
-
11249
- /**
11250
- * Creates an array of the own enumerable symbol properties of `object`.
11251
- *
11252
- * @private
11253
- * @param {Object} object The object to query.
11254
- * @returns {Array} Returns the array of symbols.
11255
- */
11256
- var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
11257
-
11258
- /**
11259
- * Creates an array of the own and inherited enumerable symbol properties
11260
- * of `object`.
11261
- *
11262
- * @private
11263
- * @param {Object} object The object to query.
11264
- * @returns {Array} Returns the array of symbols.
11265
- */
11266
- var getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) {
11267
- var result = [];
11268
- while (object) {
11269
- arrayPush(result, getSymbols(object));
11270
- object = getPrototype(object);
11271
- }
11272
- return result;
11273
- };
11274
-
11275
- /**
11276
- * Checks if `value` is a flattenable `arguments` object or array.
11277
- *
11278
- * @private
11279
- * @param {*} value The value to check.
11280
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
11281
- */
11282
- function isFlattenable(value) {
11283
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
11284
- }
11285
-
11286
- /**
11287
- * Checks if `value` is a valid array-like index.
11288
- *
11289
- * @private
11290
- * @param {*} value The value to check.
11291
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
11292
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
11293
- */
11294
- function isIndex(value, length) {
11295
- length = length == null ? MAX_SAFE_INTEGER : length;
11296
- return !!length && (typeof value == 'number' || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
11297
- }
11298
-
11299
- /**
11300
- * Checks if `value` is suitable for use as unique object key.
11301
- *
11302
- * @private
11303
- * @param {*} value The value to check.
11304
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
11305
- */
11306
- function isKeyable(value) {
11307
- var type = typeof value;
11308
- return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;
11309
- }
11310
-
11311
- /**
11312
- * Checks if `func` has its source masked.
11313
- *
11314
- * @private
11315
- * @param {Function} func The function to check.
11316
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
11317
- */
11318
- function isMasked(func) {
11319
- return !!maskSrcKey && maskSrcKey in func;
11320
- }
11321
-
11322
- /**
11323
- * Checks if `value` is likely a prototype object.
11324
- *
11325
- * @private
11326
- * @param {*} value The value to check.
11327
- * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
11328
- */
11329
- function isPrototype(value) {
11330
- var Ctor = value && value.constructor,
11331
- proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;
11332
- return value === proto;
11333
- }
11334
-
11335
- /**
11336
- * This function is like
11337
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
11338
- * except that it includes inherited enumerable properties.
11339
- *
11340
- * @private
11341
- * @param {Object} object The object to query.
11342
- * @returns {Array} Returns the array of property names.
11343
- */
11344
- function nativeKeysIn(object) {
11345
- var result = [];
11346
- if (object != null) {
11347
- for (var key in Object(object)) {
11348
- result.push(key);
11349
- }
11350
- }
11351
- return result;
11352
- }
11353
-
11354
- /**
11355
- * Converts `value` to a string key if it's not a string or symbol.
11356
- *
11357
- * @private
11358
- * @param {*} value The value to inspect.
11359
- * @returns {string|symbol} Returns the key.
11360
- */
11361
- function toKey(value) {
11362
- if (typeof value == 'string' || isSymbol(value)) {
11363
- return value;
11364
- }
11365
- var result = value + '';
11366
- return result == '0' && 1 / value == -INFINITY ? '-0' : result;
11367
- }
11368
-
11369
- /**
11370
- * Converts `func` to its source code.
11371
- *
11372
- * @private
11373
- * @param {Function} func The function to process.
11374
- * @returns {string} Returns the source code.
11375
- */
11376
- function toSource(func) {
11377
- if (func != null) {
11378
- try {
11379
- return funcToString.call(func);
11380
- } catch (e) {}
11381
- try {
11382
- return func + '';
11383
- } catch (e) {}
11384
- }
11385
- return '';
11386
- }
11387
-
11388
- /**
11389
- * Performs a
11390
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
11391
- * comparison between two values to determine if they are equivalent.
11392
- *
11393
- * @static
11394
- * @memberOf _
11395
- * @since 4.0.0
11396
- * @category Lang
11397
- * @param {*} value The value to compare.
11398
- * @param {*} other The other value to compare.
11399
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
11400
- * @example
11401
- *
11402
- * var object = { 'a': 1 };
11403
- * var other = { 'a': 1 };
11404
- *
11405
- * _.eq(object, object);
11406
- * // => true
11407
- *
11408
- * _.eq(object, other);
11409
- * // => false
11410
- *
11411
- * _.eq('a', 'a');
11412
- * // => true
11413
- *
11414
- * _.eq('a', Object('a'));
11415
- * // => false
11416
- *
11417
- * _.eq(NaN, NaN);
11418
- * // => true
11419
- */
11420
- function eq(value, other) {
11421
- return value === other || value !== value && other !== other;
11422
- }
11423
-
11424
- /**
11425
- * Checks if `value` is likely an `arguments` object.
11426
- *
11427
- * @static
11428
- * @memberOf _
11429
- * @since 0.1.0
11430
- * @category Lang
11431
- * @param {*} value The value to check.
11432
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
11433
- * else `false`.
11434
- * @example
11435
- *
11436
- * _.isArguments(function() { return arguments; }());
11437
- * // => true
11438
- *
11439
- * _.isArguments([1, 2, 3]);
11440
- * // => false
11441
- */
11442
- function isArguments(value) {
11443
- // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
11444
- return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
11445
- }
11446
-
11447
- /**
11448
- * Checks if `value` is classified as an `Array` object.
11449
- *
11450
- * @static
11451
- * @memberOf _
11452
- * @since 0.1.0
11453
- * @category Lang
11454
- * @param {*} value The value to check.
11455
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
11456
- * @example
11457
- *
11458
- * _.isArray([1, 2, 3]);
11459
- * // => true
11460
- *
11461
- * _.isArray(document.body.children);
11462
- * // => false
11463
- *
11464
- * _.isArray('abc');
11465
- * // => false
11466
- *
11467
- * _.isArray(_.noop);
11468
- * // => false
11469
- */
11470
- var isArray = Array.isArray;
11471
-
11472
- /**
11473
- * Checks if `value` is array-like. A value is considered array-like if it's
11474
- * not a function and has a `value.length` that's an integer greater than or
11475
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
11476
- *
11477
- * @static
11478
- * @memberOf _
11479
- * @since 4.0.0
11480
- * @category Lang
11481
- * @param {*} value The value to check.
11482
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
11483
- * @example
11484
- *
11485
- * _.isArrayLike([1, 2, 3]);
11486
- * // => true
11487
- *
11488
- * _.isArrayLike(document.body.children);
11489
- * // => true
11490
- *
11491
- * _.isArrayLike('abc');
11492
- * // => true
11493
- *
11494
- * _.isArrayLike(_.noop);
11495
- * // => false
11496
- */
11497
- function isArrayLike(value) {
11498
- return value != null && isLength(value.length) && !isFunction(value);
11499
- }
11500
-
11501
- /**
11502
- * This method is like `_.isArrayLike` except that it also checks if `value`
11503
- * is an object.
11504
- *
11505
- * @static
11506
- * @memberOf _
11507
- * @since 4.0.0
11508
- * @category Lang
11509
- * @param {*} value The value to check.
11510
- * @returns {boolean} Returns `true` if `value` is an array-like object,
11511
- * else `false`.
11512
- * @example
11513
- *
11514
- * _.isArrayLikeObject([1, 2, 3]);
11515
- * // => true
11516
- *
11517
- * _.isArrayLikeObject(document.body.children);
11518
- * // => true
11519
- *
11520
- * _.isArrayLikeObject('abc');
11521
- * // => false
11522
- *
11523
- * _.isArrayLikeObject(_.noop);
11524
- * // => false
11525
- */
11526
- function isArrayLikeObject(value) {
11527
- return isObjectLike(value) && isArrayLike(value);
11528
- }
11529
-
11530
- /**
11531
- * Checks if `value` is classified as a `Function` object.
11532
- *
11533
- * @static
11534
- * @memberOf _
11535
- * @since 0.1.0
11536
- * @category Lang
11537
- * @param {*} value The value to check.
11538
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
11539
- * @example
11540
- *
11541
- * _.isFunction(_);
11542
- * // => true
11543
- *
11544
- * _.isFunction(/abc/);
11545
- * // => false
11546
- */
11547
- function isFunction(value) {
11548
- // The use of `Object#toString` avoids issues with the `typeof` operator
11549
- // in Safari 8-9 which returns 'object' for typed array and other constructors.
11550
- var tag = isObject(value) ? objectToString.call(value) : '';
11551
- return tag == funcTag || tag == genTag;
11552
- }
11553
-
11554
- /**
11555
- * Checks if `value` is a valid array-like length.
11556
- *
11557
- * **Note:** This method is loosely based on
11558
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
11559
- *
11560
- * @static
11561
- * @memberOf _
11562
- * @since 4.0.0
11563
- * @category Lang
11564
- * @param {*} value The value to check.
11565
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
11566
- * @example
11567
- *
11568
- * _.isLength(3);
11569
- * // => true
11570
- *
11571
- * _.isLength(Number.MIN_VALUE);
11572
- * // => false
11573
- *
11574
- * _.isLength(Infinity);
11575
- * // => false
11576
- *
11577
- * _.isLength('3');
11578
- * // => false
11579
- */
11580
- function isLength(value) {
11581
- return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
11582
- }
11583
-
11584
- /**
11585
- * Checks if `value` is the
11586
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
11587
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
11588
- *
11589
- * @static
11590
- * @memberOf _
11591
- * @since 0.1.0
11592
- * @category Lang
11593
- * @param {*} value The value to check.
11594
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
11595
- * @example
11596
- *
11597
- * _.isObject({});
11598
- * // => true
11599
- *
11600
- * _.isObject([1, 2, 3]);
11601
- * // => true
11602
- *
11603
- * _.isObject(_.noop);
11604
- * // => true
11605
- *
11606
- * _.isObject(null);
11607
- * // => false
11608
- */
11609
- function isObject(value) {
11610
- var type = typeof value;
11611
- return !!value && (type == 'object' || type == 'function');
11612
- }
11613
-
11614
- /**
11615
- * Checks if `value` is object-like. A value is object-like if it's not `null`
11616
- * and has a `typeof` result of "object".
11617
- *
11618
- * @static
11619
- * @memberOf _
11620
- * @since 4.0.0
11621
- * @category Lang
11622
- * @param {*} value The value to check.
11623
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
11624
- * @example
11625
- *
11626
- * _.isObjectLike({});
11627
- * // => true
11628
- *
11629
- * _.isObjectLike([1, 2, 3]);
11630
- * // => true
11631
- *
11632
- * _.isObjectLike(_.noop);
11633
- * // => false
11634
- *
11635
- * _.isObjectLike(null);
11636
- * // => false
11637
- */
11638
- function isObjectLike(value) {
11639
- return !!value && typeof value == 'object';
11640
- }
11641
-
11642
- /**
11643
- * Checks if `value` is classified as a `Symbol` primitive or object.
11644
- *
11645
- * @static
11646
- * @memberOf _
11647
- * @since 4.0.0
11648
- * @category Lang
11649
- * @param {*} value The value to check.
11650
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
11651
- * @example
11652
- *
11653
- * _.isSymbol(Symbol.iterator);
11654
- * // => true
11655
- *
11656
- * _.isSymbol('abc');
11657
- * // => false
11658
- */
11659
- function isSymbol(value) {
11660
- return typeof value == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;
11661
- }
11662
-
11663
- /**
11664
- * Creates an array of the own and inherited enumerable property names of `object`.
11665
- *
11666
- * **Note:** Non-object values are coerced to objects.
11667
- *
11668
- * @static
11669
- * @memberOf _
11670
- * @since 3.0.0
11671
- * @category Object
11672
- * @param {Object} object The object to query.
11673
- * @returns {Array} Returns the array of property names.
11674
- * @example
11675
- *
11676
- * function Foo() {
11677
- * this.a = 1;
11678
- * this.b = 2;
11679
- * }
11680
- *
11681
- * Foo.prototype.c = 3;
11682
- *
11683
- * _.keysIn(new Foo);
11684
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
11685
- */
11686
- function keysIn(object) {
11687
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
11688
- }
11689
-
11690
- /**
11691
- * The opposite of `_.pick`; this method creates an object composed of the
11692
- * own and inherited enumerable string keyed properties of `object` that are
11693
- * not omitted.
11694
- *
11695
- * @static
11696
- * @since 0.1.0
11697
- * @memberOf _
11698
- * @category Object
11699
- * @param {Object} object The source object.
11700
- * @param {...(string|string[])} [props] The property identifiers to omit.
11701
- * @returns {Object} Returns the new object.
11702
- * @example
11703
- *
11704
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
11705
- *
11706
- * _.omit(object, ['a', 'c']);
11707
- * // => { 'b': '2' }
11708
- */
11709
- var omit = baseRest(function (object, props) {
11710
- if (object == null) {
11711
- return {};
11712
- }
11713
- props = arrayMap(baseFlatten(props, 1), toKey);
11714
- return basePick(object, baseDifference(getAllKeysIn(object), props));
11715
- });
11716
-
11717
- /**
11718
- * This method returns a new empty array.
11719
- *
11720
- * @static
11721
- * @memberOf _
11722
- * @since 4.13.0
11723
- * @category Util
11724
- * @returns {Array} Returns the new empty array.
11725
- * @example
11726
- *
11727
- * var arrays = _.times(2, _.stubArray);
11728
- *
11729
- * console.log(arrays);
11730
- * // => [[], []]
11731
- *
11732
- * console.log(arrays[0] === arrays[1]);
11733
- * // => false
11734
- */
11735
- function stubArray() {
11736
- return [];
11737
- }
11738
- module.exports = omit;
11739
-
11740
- /***/ }),
11741
-
11742
10288
  /***/ 285:
11743
10289
  /***/ (function(module) {
11744
10290
 
@@ -21473,7 +20019,7 @@ __webpack_require__.d(__webpack_exports__, {
21473
20019
  "ProFormField": function() { return /* reexport */ components_Field; },
21474
20020
  "ProFormFieldSet": function() { return /* reexport */ components_FieldSet; },
21475
20021
  "ProFormGroup": function() { return /* reexport */ ProFormGroup; },
21476
- "ProFormItem": function() { return /* reexport */ components_FormItem; },
20022
+ "ProFormItem": function() { return /* reexport */ FormItem; },
21477
20023
  "ProFormList": function() { return /* reexport */ ProFormList; },
21478
20024
  "ProFormMoney": function() { return /* reexport */ components_Money; },
21479
20025
  "ProFormRadio": function() { return /* reexport */ components_Radio; },
@@ -21544,7 +20090,7 @@ __webpack_require__.d(__webpack_exports__, {
21544
20090
  "jaJPIntl": function() { return /* reexport */ jaJPIntl; },
21545
20091
  "koKRIntl": function() { return /* reexport */ koKRIntl; },
21546
20092
  "lighten": function() { return /* reexport */ lighten; },
21547
- "merge": function() { return /* reexport */ merge; },
20093
+ "merge": function() { return /* reexport */ merge_merge; },
21548
20094
  "mnMNIntl": function() { return /* reexport */ mnMNIntl; },
21549
20095
  "msMYIntl": function() { return /* reexport */ msMYIntl; },
21550
20096
  "nanoid": function() { return /* reexport */ nanoid; },
@@ -21589,7 +20135,7 @@ __webpack_require__.d(__webpack_exports__, {
21589
20135
  "zhTWIntl": function() { return /* reexport */ zhTWIntl; }
21590
20136
  });
21591
20137
 
21592
- // NAMESPACE OBJECT: ./packages/utils/es/useStyle/token.js
20138
+ // NAMESPACE OBJECT: ./packages/provider/es/useStyle/token.js
21593
20139
  var token_namespaceObject = {};
21594
20140
  __webpack_require__.r(token_namespaceObject);
21595
20141
  __webpack_require__.d(token_namespaceObject, {
@@ -21597,7 +20143,7 @@ __webpack_require__.d(token_namespaceObject, {
21597
20143
  "defaultAlgorithm": function() { return defaultAlgorithm; },
21598
20144
  "defaultTheme": function() { return defaultTheme; },
21599
20145
  "token": function() { return token_token; },
21600
- "useToken": function() { return token_useToken; }
20146
+ "useToken": function() { return useToken; }
21601
20147
  });
21602
20148
 
21603
20149
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
@@ -21752,6 +20298,11 @@ function toConsumableArray_toConsumableArray(arr) {
21752
20298
  ;// CONCATENATED MODULE: ./packages/utils/es/array-move/index.js
21753
20299
 
21754
20300
 
20301
+ /**
20302
+ * @param {ValueType[]} array
20303
+ * @param {number} fromIndex
20304
+ * @param {number} toIndex
20305
+ */
21755
20306
  function arrayMoveMutable(array, fromIndex, toIndex) {
21756
20307
  var startIndex = fromIndex < 0 ? array.length + fromIndex : fromIndex;
21757
20308
  if (startIndex >= 0 && startIndex < array.length) {
@@ -21762,7 +20313,16 @@ function arrayMoveMutable(array, fromIndex, toIndex) {
21762
20313
  array.splice(endIndex, 0, item);
21763
20314
  }
21764
20315
  }
21765
- function arrayMoveImmutable(array, fromIndex, toIndex) {
20316
+ /**
20317
+ * @param {T[]} array
20318
+ * @param {number} fromIndex
20319
+ * @param {number} toIndex
20320
+ * @returns T
20321
+ */
20322
+ function arrayMoveImmutable(_ref) {
20323
+ var array = _ref.array,
20324
+ fromIndex = _ref.fromIndex,
20325
+ toIndex = _ref.toIndex;
21766
20326
  var newArray = toConsumableArray_toConsumableArray(array);
21767
20327
  arrayMoveMutable(newArray, fromIndex, toIndex);
21768
20328
  return newArray;
@@ -24765,255 +23325,6 @@ var useSWR = withArgs(useSWRHandler);
24765
23325
  close: '關閉'
24766
23326
  }
24767
23327
  });
24768
- ;// CONCATENATED MODULE: ./packages/provider/es/index.js
24769
-
24770
-
24771
-
24772
- //@ts-ignore
24773
-
24774
-
24775
-
24776
-
24777
-
24778
-
24779
-
24780
-
24781
-
24782
-
24783
-
24784
-
24785
-
24786
-
24787
-
24788
-
24789
-
24790
-
24791
-
24792
-
24793
-
24794
-
24795
-
24796
-
24797
-
24798
-
24799
-
24800
- var _ref = external_antd_.theme || {
24801
- useToken: function useToken() {
24802
- return {
24803
- hashId: ''
24804
- };
24805
- }
24806
- },
24807
- useToken = _ref.useToken;
24808
- function get(source, path, defaultValue) {
24809
- // a[3].b -> a.3.b
24810
- var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
24811
- var result = source;
24812
- var message = defaultValue;
24813
- // eslint-disable-next-line no-restricted-syntax
24814
- var _iterator = _createForOfIteratorHelper(paths),
24815
- _step;
24816
- try {
24817
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
24818
- var p = _step.value;
24819
- message = Object(result)[p];
24820
- result = Object(result)[p];
24821
- if (message === undefined) {
24822
- return defaultValue;
24823
- }
24824
- }
24825
- } catch (err) {
24826
- _iterator.e(err);
24827
- } finally {
24828
- _iterator.f();
24829
- }
24830
- return message;
24831
- }
24832
- /**
24833
- * 创建一个操作函数
24834
- *
24835
- * @param locale
24836
- * @param localeMap
24837
- */
24838
- var createIntl = function createIntl(locale, localeMap) {
24839
- return {
24840
- getMessage: function getMessage(id, defaultMessage) {
24841
- return get(localeMap, id, defaultMessage) || defaultMessage;
24842
- },
24843
- locale: locale
24844
- };
24845
- };
24846
- var mnMNIntl = createIntl('mn_MN', mn_MN);
24847
- var arEGIntl = createIntl('ar_EG', ar_EG);
24848
- var zhCNIntl = createIntl('zh_CN', provider_es_locale_zh_CN);
24849
- var enUSIntl = createIntl('en_US', en_US);
24850
- var enGBIntl = createIntl('en_GB', en_GB);
24851
- var viVNIntl = createIntl('vi_VN', vi_VN);
24852
- var itITIntl = createIntl('it_IT', it_IT);
24853
- var jaJPIntl = createIntl('ja_JP', ja_JP);
24854
- var esESIntl = createIntl('es_ES', es_ES);
24855
- var caESIntl = createIntl('ca_ES', ca_ES);
24856
- var ruRUIntl = createIntl('ru_RU', ru_RU);
24857
- var srRSIntl = createIntl('sr_RS', sr_RS);
24858
- var msMYIntl = createIntl('ms_MY', ms_MY);
24859
- var zhTWIntl = createIntl('zh_TW', zh_TW);
24860
- var frFRIntl = createIntl('fr_FR', fr_FR);
24861
- var ptBRIntl = createIntl('pt_BR', pt_BR);
24862
- var koKRIntl = createIntl('ko_KR', ko_KR);
24863
- var idIDIntl = createIntl('id_ID', id_ID);
24864
- var deDEIntl = createIntl('de_DE', de_DE);
24865
- var faIRIntl = createIntl('fa_IR', fa_IR);
24866
- var trTRIntl = createIntl('tr_TR', tr_TR);
24867
- var plPLIntl = createIntl('pl_PL', pl_PL);
24868
- var hrHRIntl = createIntl('hr_', hr_HR);
24869
- var intlMap = {
24870
- 'mn-MN': mnMNIntl,
24871
- 'ar-EG': arEGIntl,
24872
- 'zh-CN': zhCNIntl,
24873
- 'en-US': enUSIntl,
24874
- 'en-GB': enGBIntl,
24875
- 'vi-VN': viVNIntl,
24876
- 'it-IT': itITIntl,
24877
- 'ja-JP': jaJPIntl,
24878
- 'es-ES': esESIntl,
24879
- 'ca-ES': caESIntl,
24880
- 'ru-RU': ruRUIntl,
24881
- 'sr-RS': srRSIntl,
24882
- 'ms-MY': msMYIntl,
24883
- 'zh-TW': zhTWIntl,
24884
- 'fr-FR': frFRIntl,
24885
- 'pt-BR': ptBRIntl,
24886
- 'ko-KR': koKRIntl,
24887
- 'id-ID': idIDIntl,
24888
- 'de-DE': deDEIntl,
24889
- 'fa-IR': faIRIntl,
24890
- 'tr-TR': trTRIntl,
24891
- 'pl-PL': plPLIntl,
24892
- 'hr-HR': hrHRIntl
24893
- };
24894
- var intlMapKeys = Object.keys(intlMap);
24895
-
24896
- var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
24897
- intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
24898
- locale: 'default'
24899
- }),
24900
- isDeps: false,
24901
- valueTypeMap: {}
24902
- });
24903
- var ConfigConsumer = es_ConfigContext.Consumer,
24904
- ConfigProvider = es_ConfigContext.Provider;
24905
- /**
24906
- * 根据 antd 的 key 来找到的 locale 插件的 key
24907
- *
24908
- * @param localeKey
24909
- */
24910
-
24911
- var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
24912
- if (!localeKey) {
24913
- return 'zh-CN';
24914
- }
24915
- var localeName = localeKey.toLocaleLowerCase();
24916
- return intlMapKeys.find(function (intlKey) {
24917
- var LowerCaseKey = intlKey.toLocaleLowerCase();
24918
- return LowerCaseKey.includes(localeName);
24919
- });
24920
- };
24921
- /**
24922
- * 组件解除挂载后清空一下 cache
24923
- *
24924
- * @returns
24925
- */
24926
- var CacheClean = function CacheClean() {
24927
- var _useSWRConfig = useSWRConfig(),
24928
- cache = _useSWRConfig.cache;
24929
- (0,external_React_.useEffect)(function () {
24930
- return function () {
24931
- // is a map
24932
- // @ts-ignore
24933
- cache.clear();
24934
- };
24935
- // eslint-disable-next-line react-hooks/exhaustive-deps
24936
- }, []);
24937
- return null;
24938
- };
24939
- /**
24940
- * 如果没有配置 locale,这里组件会根据 antd 的 key 来自动选择
24941
- *
24942
- * @param param0
24943
- */
24944
- var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
24945
- var children = _ref2.children,
24946
- _ref2$autoClearCache = _ref2.autoClearCache,
24947
- autoClearCache = _ref2$autoClearCache === void 0 ? false : _ref2$autoClearCache;
24948
- var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
24949
- locale = _useContext.locale,
24950
- getPrefixCls = _useContext.getPrefixCls;
24951
- var token = useToken === null || useToken === void 0 ? void 0 : useToken();
24952
- // 如果 locale 不存在自动注入的 AntdConfigProvider
24953
- var Provider = locale === undefined ? external_antd_.ConfigProvider : (external_React_default()).Fragment;
24954
- var proProvide = (0,external_React_.useContext)(es_ConfigContext);
24955
- var proProvideValue = (0,external_React_.useMemo)(function () {
24956
- var _proProvide$intl;
24957
- var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
24958
- var key = findIntlKeyByAntdLocaleKey(localeName);
24959
- // antd 的 key 存在的时候以 antd 的为主
24960
- var intl = localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? intlMap[key] : proProvide.intl || intlMap[key];
24961
- return objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proProvide), {}, {
24962
- isDeps: true,
24963
- intl: intl || zhCNIntl
24964
- });
24965
- }, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide]);
24966
- var configProviderDom = (0,external_React_.useMemo)(function () {
24967
- var _process$env$NODE_ENV;
24968
- // 自动注入 antd 的配置
24969
- var configProvider = locale === undefined ? {
24970
- locale: es_locale_zh_CN,
24971
- theme: {
24972
- hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
24973
- }
24974
- } : {};
24975
- var provide = (0,jsx_runtime.jsx)(Provider, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, configProvider), {}, {
24976
- children: (0,jsx_runtime.jsx)(ConfigProvider, {
24977
- value: proProvideValue,
24978
- children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
24979
- children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), children]
24980
- })
24981
- })
24982
- }));
24983
- if (proProvide.isDeps) return provide;
24984
- return (0,jsx_runtime.jsx)("div", {
24985
- className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(token.hashId),
24986
- children: provide
24987
- });
24988
- }, [Provider, autoClearCache, children, getPrefixCls, locale, proProvide.isDeps, proProvideValue, token.hashId]);
24989
- if (!autoClearCache) return configProviderDom;
24990
- return (0,jsx_runtime.jsx)(SWRConfig, {
24991
- value: {
24992
- provider: function provider() {
24993
- return new Map();
24994
- }
24995
- },
24996
- children: configProviderDom
24997
- });
24998
- };
24999
- function useIntl() {
25000
- var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
25001
- locale = _useContext2.locale;
25002
- var _useContext3 = (0,external_React_.useContext)(es_ConfigContext),
25003
- intl = _useContext3.intl;
25004
- if (intl && intl.locale !== 'default') {
25005
- return intl;
25006
- }
25007
- if (locale === null || locale === void 0 ? void 0 : locale.locale) {
25008
- return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)];
25009
- }
25010
- return zhCNIntl;
25011
- }
25012
- var ProProvider = es_ConfigContext;
25013
- /* harmony default export */ var es = (es_ConfigContext);
25014
- // EXTERNAL MODULE: ./node_modules/classnames/index.js
25015
- var classnames = __webpack_require__(8266);
25016
- var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
25017
23328
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
25018
23329
  function typeof_typeof(obj) {
25019
23330
  "@babel/helpers - typeof";
@@ -27375,11 +25686,11 @@ function module_tinycolor(color, opts) {
27375
25686
  }
27376
25687
  return new TinyColor(color, opts);
27377
25688
  }
27378
- ;// CONCATENATED MODULE: ./packages/utils/es/useStyle/token.js
25689
+ ;// CONCATENATED MODULE: ./packages/provider/es/useStyle/token.js
27379
25690
 
27380
25691
 
27381
25692
  var defaultTheme = {
27382
- blue: '#1890FF',
25693
+ blue: '#1677ff',
27383
25694
  purple: '#722ED1',
27384
25695
  cyan: '#13C2C2',
27385
25696
  green: '#52C41A',
@@ -27396,11 +25707,11 @@ var defaultTheme = {
27396
25707
  colorSuccess: '#52c41a',
27397
25708
  colorWarning: '#faad14',
27398
25709
  colorError: '#ff4d4f',
27399
- colorInfo: '#1677FF',
25710
+ colorInfo: '#1677ff',
27400
25711
  colorTextBase: '#000',
27401
25712
  colorTextLightSolid: '#fff',
27402
25713
  colorBgBase: '#fff',
27403
- fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\\n'Noto Color Emoji'",
25714
+ fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",
27404
25715
  fontSizeBase: 14,
27405
25716
  gridUnit: 4,
27406
25717
  gridBaseStep: 2,
@@ -27415,24 +25726,25 @@ var defaultTheme = {
27415
25726
  motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',
27416
25727
  motionEaseInQuint: 'cubic-bezier(0.645, 0.045, 0.355, 1)',
27417
25728
  motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',
27418
- radiusBase: 4,
25729
+ radiusBase: 6,
27419
25730
  sizeUnit: 4,
27420
25731
  sizeBaseStep: 4,
27421
- sizePopupArrow: 11.313708498984761,
25732
+ sizePopupArrow: 16,
27422
25733
  controlHeight: 32,
27423
25734
  zIndexBase: 0,
27424
25735
  zIndexPopupBase: 1000,
27425
25736
  opacityImage: 1,
27426
- 'blue-1': '#e6f7ff',
27427
- 'blue-2': '#bae7ff',
27428
- 'blue-3': '#91d5ff',
27429
- 'blue-4': '#69c0ff',
27430
- 'blue-5': '#40a9ff',
27431
- 'blue-6': '#1890ff',
27432
- 'blue-7': '#096dd9',
27433
- 'blue-8': '#0050b3',
27434
- 'blue-9': '#003a8c',
27435
- 'blue-10': '#002766',
25737
+ wireframe: false,
25738
+ 'blue-1': '#e6f4ff',
25739
+ 'blue-2': '#bae0ff',
25740
+ 'blue-3': '#91caff',
25741
+ 'blue-4': '#69b1ff',
25742
+ 'blue-5': '#4096ff',
25743
+ 'blue-6': '#1677ff',
25744
+ 'blue-7': '#0958d9',
25745
+ 'blue-8': '#003eb3',
25746
+ 'blue-9': '#002c8c',
25747
+ 'blue-10': '#001d66',
27436
25748
  'purple-1': '#f9f0ff',
27437
25749
  'purple-2': '#efdbff',
27438
25750
  'purple-3': '#d3adf7',
@@ -27553,20 +25865,20 @@ var defaultTheme = {
27553
25865
  'lime-8': '#5b8c00',
27554
25866
  'lime-9': '#3f6600',
27555
25867
  'lime-10': '#254000',
27556
- colorFill: 'rgba(0, 0, 0, 0.06)',
27557
- colorFillSecondary: 'rgba(0, 0, 0, 0.04)',
27558
- colorFillTertiary: 'rgba(0, 0, 0, 0.03)',
25868
+ colorText: 'rgba(0, 0, 0, 0.88)',
25869
+ colorTextSecondary: 'rgba(0, 0, 0, 0.65)',
25870
+ colorTextTertiary: 'rgba(0, 0, 0, 0.45)',
25871
+ colorTextQuaternary: 'rgba(0, 0, 0, 0.25)',
25872
+ colorFill: 'rgba(0, 0, 0, 0.15)',
25873
+ colorFillSecondary: 'rgba(0, 0, 0, 0.06)',
25874
+ colorFillTertiary: 'rgba(0, 0, 0, 0.04)',
27559
25875
  colorFillQuaternary: 'rgba(0, 0, 0, 0.02)',
27560
- bgLayout: '#f5f5f5',
25876
+ colorBgLayout: '#f5f5f5',
27561
25877
  colorBgContainer: '#ffffff',
27562
25878
  colorBgElevated: '#ffffff',
25879
+ colorBgSpotlight: 'rgba(0, 0, 0, 0.85)',
27563
25880
  colorBorder: '#d9d9d9',
27564
25881
  colorBorderSecondary: '#f0f0f0',
27565
- colorSplit: 'rgba(0, 0, 0, 0.06)',
27566
- colorText: 'rgba(0, 0, 0, 0.85)',
27567
- colorTextSecondary: 'rgba(0, 0, 0, 0.45)',
27568
- colorTextTertiary: 'rgba(0, 0, 0, 0.45)',
27569
- colorTextQuaternary: 'rgba(0, 0, 0, 0.25)',
27570
25882
  colorPrimaryBg: '#e6f4ff',
27571
25883
  colorPrimaryBgHover: '#bae0ff',
27572
25884
  colorPrimaryBorder: '#91caff',
@@ -27580,40 +25892,39 @@ var defaultTheme = {
27580
25892
  colorSuccessBgHover: '#d9f7be',
27581
25893
  colorSuccessBorder: '#b7eb8f',
27582
25894
  colorSuccessBorderHover: '#95de64',
27583
- colorSuccessHover: '#73d13d',
25895
+ colorSuccessHover: '#95de64',
27584
25896
  colorSuccessActive: '#389e0d',
27585
25897
  colorSuccessTextHover: '#73d13d',
27586
25898
  colorSuccessText: '#52c41a',
27587
25899
  colorSuccessTextActive: '#389e0d',
27588
- colorErrorBg: '#fff2f0',
27589
- colorErrorBgHover: '#fff1f0',
27590
- colorErrorBorder: '#ffccc7',
27591
- colorErrorBorderHover: '#ffa39e',
25900
+ colorErrorBg: '#fff1f0',
25901
+ colorErrorBgHover: '#ffccc7',
25902
+ colorErrorBorder: '#ffa39e',
25903
+ colorErrorBorderHover: '#ff7875',
27592
25904
  colorErrorHover: '#ff7875',
27593
- colorErrorActive: '#d9363e',
27594
- colorErrorTextHover: '#ff7875',
27595
- colorErrorText: '#ff4d4f',
27596
- colorErrorTextActive: '#d9363e',
25905
+ colorErrorActive: '#cf1322',
25906
+ colorErrorTextHover: '#ff4d4f',
25907
+ colorErrorText: '#f5222d',
25908
+ colorErrorTextActive: '#cf1322',
27597
25909
  colorWarningBg: '#fffbe6',
27598
25910
  colorWarningBgHover: '#fff1b8',
27599
25911
  colorWarningBorder: '#ffe58f',
27600
25912
  colorWarningBorderHover: '#ffd666',
27601
- colorWarningHover: '#ffc53d',
25913
+ colorWarningHover: '#ffd666',
27602
25914
  colorWarningActive: '#d48806',
27603
25915
  colorWarningTextHover: '#ffc53d',
27604
25916
  colorWarningText: '#faad14',
27605
25917
  colorWarningTextActive: '#d48806',
27606
- colorInfoBg: '#e6f7ff',
27607
- colorInfoBgHover: '#bae7ff',
27608
- colorInfoBorder: '#91d5ff',
27609
- colorInfoBorderHover: '#69c0ff',
27610
- colorInfoHover: '#40a9ff',
27611
- colorInfoActive: '#096dd9',
27612
- colorInfoTextHover: '#40a9ff',
27613
- colorInfoText: '#1890ff',
27614
- colorInfoTextActive: '#096dd9',
25918
+ colorInfoBg: '#e6f4ff',
25919
+ colorInfoBgHover: '#bae0ff',
25920
+ colorInfoBorder: '#91caff',
25921
+ colorInfoBorderHover: '#69b1ff',
25922
+ colorInfoHover: '#69b1ff',
25923
+ colorInfoActive: '#0958d9',
25924
+ colorInfoTextHover: '#4096ff',
25925
+ colorInfoText: '#1677ff',
25926
+ colorInfoTextActive: '#0958d9',
27615
25927
  colorBgMask: 'rgba(0, 0, 0, 0.45)',
27616
- colorBgSpotlight: 'rgba(0, 0, 0, 0.85)',
27617
25928
  motionDurationFast: '0.1s',
27618
25929
  motionDurationMid: '0.2s',
27619
25930
  motionDurationSlow: '0.3s',
@@ -27629,34 +25940,34 @@ var defaultTheme = {
27629
25940
  gridSpaceXL: 16,
27630
25941
  gridSpaceXXL: 28,
27631
25942
  lineWidthBold: 2,
27632
- radiusSM: 2,
25943
+ radiusXS: 2,
25944
+ radiusSM: 4,
27633
25945
  radiusLG: 8,
27634
- radiusXL: 16,
25946
+ radiusOuter: 4,
27635
25947
  controlHeightSM: 24,
27636
25948
  controlHeightXS: 16,
27637
25949
  controlHeightLG: 40,
27638
- Layout: {
27639
- colorBgHeader: 'transparent',
27640
- colorBgBody: 'transparent'
27641
- },
27642
25950
  colorLink: '#1677ff',
27643
- colorLinkHover: '#4096ff',
25951
+ colorLinkHover: '#69b1ff',
27644
25952
  colorLinkActive: '#0958d9',
27645
- colorFillContent: 'rgba(0, 0, 0, 0.04)',
27646
- colorFillContentHover: 'rgba(0, 0, 0, 0.06)',
25953
+ colorFillContent: 'rgba(0, 0, 0, 0.06)',
25954
+ colorFillContentHover: 'rgba(0, 0, 0, 0.15)',
27647
25955
  colorFillAlter: 'rgba(0, 0, 0, 0.02)',
27648
- colorBgContainerDisabled: 'rgba(0, 0, 0, 0.03)',
25956
+ colorBgContainerDisabled: 'rgba(0, 0, 0, 0.04)',
27649
25957
  colorBorderBg: '#ffffff',
25958
+ colorSplit: 'rgba(5, 5, 5, 0.06)',
27650
25959
  colorTextPlaceholder: 'rgba(0, 0, 0, 0.25)',
27651
25960
  colorTextDisabled: 'rgba(0, 0, 0, 0.25)',
27652
- colorTextHeading: 'rgba(0, 0, 0, 0.85)',
25961
+ colorTextHeading: 'rgba(0, 0, 0, 0.88)',
27653
25962
  colorTextLabel: 'rgba(0, 0, 0, 0.65)',
27654
- colorTextDescription: 'rgba(0, 0, 0, 0.65)',
25963
+ colorTextDescription: 'rgba(0, 0, 0, 0.45)',
27655
25964
  colorHighlight: '#ff4d4f',
25965
+ colorBgTextHover: 'rgba(0, 0, 0, 0.06)',
25966
+ colorBgTextActive: 'rgba(0, 0, 0, 0.15)',
27656
25967
  colorIcon: 'rgba(0, 0, 0, 0.45)',
27657
- colorIconHover: 'rgba(0, 0, 0, 0.85)',
27658
- colorErrorOutline: '#fff2f0',
27659
- colorWarningOutline: '#fffbe6',
25968
+ colorIconHover: 'rgba(0, 0, 0, 0.88)',
25969
+ colorErrorOutline: 'rgba(255, 22, 5, 0.06)',
25970
+ colorWarningOutline: 'rgba(255, 215, 5, 0.1)',
27660
25971
  fontSizeSM: 12,
27661
25972
  fontSize: 14,
27662
25973
  fontSizeLG: 16,
@@ -27678,14 +25989,17 @@ var defaultTheme = {
27678
25989
  controlLineWidth: 1,
27679
25990
  controlOutlineWidth: 2,
27680
25991
  controlInteractiveSize: 16,
27681
- controlItemBgHover: 'rgba(0, 0, 0, 0.03)',
25992
+ controlItemBgHover: 'rgba(0, 0, 0, 0.04)',
27682
25993
  controlItemBgActive: '#e6f4ff',
27683
25994
  controlItemBgActiveHover: '#bae0ff',
27684
- controlItemBgActiveDisabled: 'rgba(0, 0, 0, 0.25)',
25995
+ controlItemBgActiveDisabled: 'rgba(0, 0, 0, 0.15)',
27685
25996
  controlTmpOutline: 'rgba(0, 0, 0, 0.02)',
27686
- controlOutline: '#e6f4ff',
25997
+ controlOutline: 'rgba(5, 145, 255, 0.1)',
27687
25998
  controlLineType: 'solid',
27688
- controlRadius: 4,
25999
+ controlRadius: 6,
26000
+ controlRadiusXS: 2,
26001
+ controlRadiusSM: 4,
26002
+ controlRadiusLG: 8,
27689
26003
  fontWeightStrong: 600,
27690
26004
  opacityLoading: 0.65,
27691
26005
  linkDecoration: 'none',
@@ -27700,13 +26014,16 @@ var defaultTheme = {
27700
26014
  paddingSM: 12,
27701
26015
  paddingLG: 24,
27702
26016
  paddingXL: 32,
26017
+ paddingTmp: 20,
27703
26018
  marginXXS: 4,
27704
26019
  marginXS: 8,
27705
26020
  marginSM: 12,
27706
26021
  marginLG: 24,
27707
26022
  marginXL: 32,
27708
26023
  marginXXL: 48,
27709
- boxShadow: '0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)',
26024
+ marginTmp: 20,
26025
+ boxShadow: '\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ',
26026
+ boxShadowSecondary: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
27710
26027
  screenXS: 480,
27711
26028
  screenXSMin: 480,
27712
26029
  screenXSMax: 479,
@@ -27726,18 +26043,16 @@ var defaultTheme = {
27726
26043
  screenXXLMin: 1600,
27727
26044
  screenXXLMax: 1599,
27728
26045
  boxShadowPopoverArrow: '3px 3px 7px rgba(0, 0, 0, 0.1)',
27729
- boxShadowPopoverArrowBottom: '2px 2px 5px rgba(0, 0, 0, 0.1)',
27730
- boxShadowSegmentedSelectedItem: '0 2px 8px -2px rgba(0, 0, 0, 0.05),0 1px 4px -1px rgba(0, 0, 0, 0.07),0 0 1px 0 rgba(0, 0, 0, 0.08)',
27731
- boxShadowCard: '0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)',
27732
- boxShadowDrawerRight: '6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),12px 0 48px 16px rgba(0, 0, 0, 0.03)',
27733
- boxShadowDrawerLeft: '-6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05), -12px 0 48px 16px rgba(0, 0, 0, 0.03)',
27734
- boxShadowDrawerUp: '0 -6px 16px -8px rgba(0, 0, 0, 0.32), 0 -9px 28px 0 rgba(0, 0, 0, 0.2),0 -12px 48px 16px rgba(0, 0, 0, 0.12)',
27735
- boxShadowDrawerDown: '0 6px 16px -8px rgba(0, 0, 0, 0.32), 0 9px 28px 0 rgba(0, 0, 0, 0.2), 0 12px 48px 16px rgba(0, 0, 0, 0.12)',
26046
+ boxShadowCard: '\n 0 1px 2px -2px rgba(0, 0, 0, 0.16),\n 0 3px 6px 0 rgba(0, 0, 0, 0.12),\n 0 5px 12px 4px rgba(0, 0, 0, 0.09)\n ',
26047
+ boxShadowDrawerRight: '\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
26048
+ boxShadowDrawerLeft: '\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ',
26049
+ boxShadowDrawerUp: '\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
26050
+ boxShadowDrawerDown: '\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ',
27736
26051
  boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',
27737
26052
  boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',
27738
26053
  boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',
27739
26054
  boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)',
27740
- _tokenKey: '15a20jx',
26055
+ _tokenKey: 'x82dli',
27741
26056
  _hashId: ''
27742
26057
  };
27743
26058
  var token_token = {
@@ -27747,7 +26062,7 @@ var token_token = {
27747
26062
  token: defaultTheme,
27748
26063
  hashId: ''
27749
26064
  };
27750
- var token_useToken = function useToken() {
26065
+ var useToken = function useToken() {
27751
26066
  var _useState = (0,external_React_.useState)(token_token),
27752
26067
  _useState2 = slicedToArray_slicedToArray(_useState, 1),
27753
26068
  stateToken = _useState2[0];
@@ -27759,101 +26074,470 @@ var darkAlgorithm = function darkAlgorithm() {
27759
26074
  var defaultAlgorithm = function defaultAlgorithm() {
27760
26075
  return defaultTheme;
27761
26076
  };
27762
- ;// CONCATENATED MODULE: ./packages/utils/es/useStyle/index.js
26077
+ ;// CONCATENATED MODULE: ./packages/provider/es/useStyle/index.js
26078
+
26079
+
26080
+
26081
+
26082
+
26083
+
26084
+
26085
+ /**
26086
+ * 把一个颜色设置一下透明度
26087
+ * @example (#fff, 0.5) => rgba(255, 255, 255, 0.5)
26088
+ * @param baseColor {string}
26089
+ * @param alpha {0-1}
26090
+ * @returns rgba {string}
26091
+ */
26092
+ var setAlpha = function setAlpha(baseColor, alpha) {
26093
+ return new TinyColor(baseColor).setAlpha(alpha).toRgbString();
26094
+ };
26095
+ /**
26096
+ * 把一个颜色修改一些明度
26097
+ * @example (#000, 50) => #808080
26098
+ * @param baseColor {string}
26099
+ * @param brightness {0-100}
26100
+ * @returns hexColor {string}
26101
+ */
26102
+ var lighten = function lighten(baseColor, brightness) {
26103
+ var instance = new TinyColor(baseColor);
26104
+ return instance.lighten(brightness).toHexString();
26105
+ };
26106
+ /**
26107
+ * 如果 antd 里面没有,就用我 mock 的,这样 antd@4 和 antd@5 可以兼容
26108
+ */
26109
+ var _batToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token_namespaceObject), external_antd_.theme || {}),
26110
+ useStyle_useToken = _batToken.useToken;
26111
+
26112
+ var resetComponent = function resetComponent(token) {
26113
+ return {
26114
+ boxSizing: 'border-box',
26115
+ margin: 0,
26116
+ padding: 0,
26117
+ color: token.colorText,
26118
+ fontSize: token.fontSize,
26119
+ lineHeight: token.lineHeight,
26120
+ listStyle: 'none'
26121
+ };
26122
+ };
26123
+ var operationUnit = function operationUnit(token) {
26124
+ return {
26125
+ // FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
26126
+ // And Typography use this to generate link style which should not do this.
26127
+ color: token.colorLink,
26128
+ outline: 'none',
26129
+ cursor: 'pointer',
26130
+ transition: "color ".concat(token.motionDurationSlow),
26131
+ '&:focus, &:hover': {
26132
+ color: token.colorLinkHover
26133
+ },
26134
+ '&:active': {
26135
+ color: token.colorLinkActive
26136
+ }
26137
+ };
26138
+ };
26139
+ var hashCode = function hashCode(str) {
26140
+ var seed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
26141
+ var h1 = 0xdeadbeef ^ seed,
26142
+ h2 = 0x41c6ce57 ^ seed;
26143
+ for (var i = 0, ch; i < str.length; i++) {
26144
+ ch = str.charCodeAt(i);
26145
+ h1 = Math.imul(h1 ^ ch, 2654435761);
26146
+ h2 = Math.imul(h2 ^ ch, 1597334677);
26147
+ }
26148
+ h1 = Math.imul(h1 ^ h1 >>> 16, 2246822507) ^ Math.imul(h2 ^ h2 >>> 13, 3266489909);
26149
+ h2 = Math.imul(h2 ^ h2 >>> 16, 2246822507) ^ Math.imul(h1 ^ h1 >>> 13, 3266489909);
26150
+ return 4294967296 * (2097151 & h2) + (h1 >>> 0);
26151
+ };
26152
+ /**
26153
+ * 封装了一下 antd 的 useStyle,支持了一下antd@4
26154
+ * @param componentName {string} 组件的名字
26155
+ * @param styleFn {GenerateStyle} 生成样式的函数
26156
+ * @returns {UseStyleResult}
26157
+ */
26158
+ function useStyle(componentName, styleFn) {
26159
+ var _useToken = useStyle_useToken(),
26160
+ token = _useToken.token,
26161
+ hashId = _useToken.hashId,
26162
+ theme = _useToken.theme;
26163
+ var proContext = (0,external_React_.useContext)(ProProvider);
26164
+ var proHashId = hashCode(JSON.stringify(proContext.token || {}));
26165
+ var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
26166
+ getPrefixCls = _useContext.getPrefixCls;
26167
+ /**
26168
+ * pro 的 类
26169
+ * @type {string}
26170
+ * @example .ant-pro
26171
+ */
26172
+ var proComponentsCls = ".".concat(getPrefixCls(), "-pro");
26173
+ return {
26174
+ wrapSSR: useStyleRegister({
26175
+ theme: theme,
26176
+ token: token,
26177
+ hashId: hashId,
26178
+ path: [componentName, "pro-".concat(proHashId)]
26179
+ }, function () {
26180
+ return styleFn(objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), (proContext === null || proContext === void 0 ? void 0 : proContext.token) || {}), {}, {
26181
+ antCls: '.' + getPrefixCls(),
26182
+ proComponentsCls: proComponentsCls
26183
+ }));
26184
+ }),
26185
+ hashId: hashId
26186
+ };
26187
+ }
26188
+ ;// CONCATENATED MODULE: ./packages/provider/es/typing/layoutToken.js
26189
+
26190
+
26191
+ var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
26192
+ var _finalDesignTokens$si, _finalDesignTokens$pa, _finalDesignTokens$pa2;
26193
+ var finalDesignTokens = objectSpread2_objectSpread2({}, designTokens);
26194
+ return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
26195
+ bgLayout: 'linear-gradient(#fff, #f7f8fa 28%)',
26196
+ colorTextAppListIcon: '#666',
26197
+ appListIconHoverBgColor: finalDesignTokens === null || finalDesignTokens === void 0 ? void 0 : (_finalDesignTokens$si = finalDesignTokens.sider) === null || _finalDesignTokens$si === void 0 ? void 0 : _finalDesignTokens$si.colorBgMenuItemSelected,
26198
+ colorBgAppListIconHover: 'rgba(0, 0, 0, 0.04)',
26199
+ colorTextAppListIconHover: antdToken.colorTextBase
26200
+ }, finalDesignTokens), {}, {
26201
+ header: objectSpread2_objectSpread2({
26202
+ colorBgHeader: 'rgba(240, 242, 245, 0.4)',
26203
+ colorHeaderTitle: antdToken.colorText,
26204
+ colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
26205
+ colorBgMenuItemSelected: 'transparent',
26206
+ colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
26207
+ colorBgRightActionsItemHover: setAlpha(antdToken.colorTextBase, 0.03),
26208
+ colorTextRightActionsItem: antdToken.colorTextTertiary,
26209
+ heightLayoutHeader: 56,
26210
+ colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
26211
+ colorTextMenuSecondary: antdToken.colorTextTertiary,
26212
+ colorTextMenuTitle: antdToken.colorText,
26213
+ colorTextMenuActive: antdToken.colorText
26214
+ }, finalDesignTokens.header),
26215
+ sider: objectSpread2_objectSpread2({
26216
+ paddingInlineLayoutMenu: 8,
26217
+ paddingBlockLayoutMenu: 8,
26218
+ colorBgCollapsedButton: '#fff',
26219
+ colorTextCollapsedButtonHover: antdToken.colorTextSecondary,
26220
+ colorTextCollapsedButton: setAlpha(antdToken.colorTextBase, 0.25),
26221
+ colorMenuBackground: 'transparent',
26222
+ colorBgMenuItemCollapsedHover: 'rgba(90, 75, 75, 0.03)',
26223
+ colorBgMenuItemCollapsedSelected: setAlpha(antdToken.colorTextBase, 0.04),
26224
+ colorMenuItemDivider: setAlpha(antdToken.colorTextBase, 0.06),
26225
+ colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
26226
+ colorBgMenuItemSelected: setAlpha(antdToken.colorTextBase, 0.04),
26227
+ colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
26228
+ colorTextMenuActive: antdToken.colorText,
26229
+ colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
26230
+ colorTextMenuSecondary: antdToken.colorTextTertiary,
26231
+ colorTextMenuTitle: antdToken.colorText,
26232
+ colorTextSubMenuSelected: setAlpha(antdToken.colorTextBase, 0.95)
26233
+ }, finalDesignTokens.sider),
26234
+ pageContainer: objectSpread2_objectSpread2({
26235
+ colorBgPageContainer: 'transparent',
26236
+ paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
26237
+ paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 24,
26238
+ colorBgPageContainerFixed: '#fff'
26239
+ }, finalDesignTokens.pageContainer)
26240
+ });
26241
+ };
26242
+ ;// CONCATENATED MODULE: ./packages/provider/es/utils/merge.js
26243
+
26244
+
26245
+ var merge = function merge() {
26246
+ var obj = {};
26247
+ for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
26248
+ rest[_key] = arguments[_key];
26249
+ }
26250
+ var il = rest.length;
26251
+ var key;
26252
+ var i = 0;
26253
+ for (; i < il; i += 1) {
26254
+ // eslint-disable-next-line no-restricted-syntax
26255
+ for (key in rest[i]) {
26256
+ if (rest[i].hasOwnProperty(key)) {
26257
+ if (typeof_typeof(obj[key]) === 'object' && typeof_typeof(rest[i][key]) === 'object' && obj[key] !== undefined && obj[key] !== null && !Array.isArray(obj[key]) && !Array.isArray(rest[i][key])) {
26258
+ obj[key] = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, obj[key]), rest[i][key]);
26259
+ } else {
26260
+ obj[key] = rest[i][key];
26261
+ }
26262
+ }
26263
+ }
26264
+ }
26265
+ return obj;
26266
+ };
26267
+ ;// CONCATENATED MODULE: ./packages/provider/es/index.js
26268
+
26269
+
26270
+
26271
+ //@ts-ignore
26272
+
26273
+
26274
+
26275
+
26276
+
26277
+
26278
+
26279
+
26280
+
26281
+
26282
+
26283
+
27763
26284
 
27764
26285
 
27765
26286
 
27766
26287
 
27767
26288
 
27768
26289
 
26290
+
26291
+
26292
+
26293
+
26294
+
26295
+
26296
+
26297
+
26298
+
26299
+
26300
+
26301
+
26302
+ var _ref = external_antd_.theme || {
26303
+ useToken: function useToken() {
26304
+ return {
26305
+ hashId: ''
26306
+ };
26307
+ }
26308
+ },
26309
+ es_useToken = _ref.useToken;
27769
26310
  /**
27770
- * 把一个颜色设置一下透明度
27771
- * @example (#fff, 0.5) => rgba(255, 255, 255, 0.5)
27772
- * @param baseColor {string}
27773
- * @param alpha {0-1}
27774
- * @returns rgba {string}
26311
+ * 安全的从一个对象中读取相应的值
26312
+ * @param source
26313
+ * @param path
26314
+ * @param defaultValue
26315
+ * @returns
27775
26316
  */
27776
- var setAlpha = function setAlpha(baseColor, alpha) {
27777
- return new TinyColor(baseColor).setAlpha(alpha).toRgbString();
27778
- };
26317
+ function get(source, path, defaultValue) {
26318
+ // a[3].b -> a.3.b
26319
+ var paths = path.replace(/\[(\d+)\]/g, '.$1').split('.');
26320
+ var result = source;
26321
+ var message = defaultValue;
26322
+ // eslint-disable-next-line no-restricted-syntax
26323
+ var _iterator = _createForOfIteratorHelper(paths),
26324
+ _step;
26325
+ try {
26326
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
26327
+ var p = _step.value;
26328
+ message = Object(result)[p];
26329
+ result = Object(result)[p];
26330
+ if (message === undefined) {
26331
+ return defaultValue;
26332
+ }
26333
+ }
26334
+ } catch (err) {
26335
+ _iterator.e(err);
26336
+ } finally {
26337
+ _iterator.f();
26338
+ }
26339
+ return message;
26340
+ }
27779
26341
  /**
27780
- * 把一个颜色修改一些明度
27781
- * @example (#000, 50) => #808080
27782
- * @param baseColor {string}
27783
- * @param brightness {0-100}
27784
- * @returns hexColor {string}
26342
+ * 创建一个国际化的操作函数
26343
+ *
26344
+ * @param locale
26345
+ * @param localeMap
27785
26346
  */
27786
- var lighten = function lighten(baseColor, brightness) {
27787
- var instance = new TinyColor(baseColor);
27788
- return instance.lighten(brightness).toHexString();
26347
+ var createIntl = function createIntl(locale, localeMap) {
26348
+ return {
26349
+ getMessage: function getMessage(id, defaultMessage) {
26350
+ return get(localeMap, id, defaultMessage) || defaultMessage;
26351
+ },
26352
+ locale: locale
26353
+ };
26354
+ };
26355
+ var mnMNIntl = createIntl('mn_MN', mn_MN);
26356
+ var arEGIntl = createIntl('ar_EG', ar_EG);
26357
+ var zhCNIntl = createIntl('zh_CN', provider_es_locale_zh_CN);
26358
+ var enUSIntl = createIntl('en_US', en_US);
26359
+ var enGBIntl = createIntl('en_GB', en_GB);
26360
+ var viVNIntl = createIntl('vi_VN', vi_VN);
26361
+ var itITIntl = createIntl('it_IT', it_IT);
26362
+ var jaJPIntl = createIntl('ja_JP', ja_JP);
26363
+ var esESIntl = createIntl('es_ES', es_ES);
26364
+ var caESIntl = createIntl('ca_ES', ca_ES);
26365
+ var ruRUIntl = createIntl('ru_RU', ru_RU);
26366
+ var srRSIntl = createIntl('sr_RS', sr_RS);
26367
+ var msMYIntl = createIntl('ms_MY', ms_MY);
26368
+ var zhTWIntl = createIntl('zh_TW', zh_TW);
26369
+ var frFRIntl = createIntl('fr_FR', fr_FR);
26370
+ var ptBRIntl = createIntl('pt_BR', pt_BR);
26371
+ var koKRIntl = createIntl('ko_KR', ko_KR);
26372
+ var idIDIntl = createIntl('id_ID', id_ID);
26373
+ var deDEIntl = createIntl('de_DE', de_DE);
26374
+ var faIRIntl = createIntl('fa_IR', fa_IR);
26375
+ var trTRIntl = createIntl('tr_TR', tr_TR);
26376
+ var plPLIntl = createIntl('pl_PL', pl_PL);
26377
+ var hrHRIntl = createIntl('hr_', hr_HR);
26378
+ var intlMap = {
26379
+ 'mn-MN': mnMNIntl,
26380
+ 'ar-EG': arEGIntl,
26381
+ 'zh-CN': zhCNIntl,
26382
+ 'en-US': enUSIntl,
26383
+ 'en-GB': enGBIntl,
26384
+ 'vi-VN': viVNIntl,
26385
+ 'it-IT': itITIntl,
26386
+ 'ja-JP': jaJPIntl,
26387
+ 'es-ES': esESIntl,
26388
+ 'ca-ES': caESIntl,
26389
+ 'ru-RU': ruRUIntl,
26390
+ 'sr-RS': srRSIntl,
26391
+ 'ms-MY': msMYIntl,
26392
+ 'zh-TW': zhTWIntl,
26393
+ 'fr-FR': frFRIntl,
26394
+ 'pt-BR': ptBRIntl,
26395
+ 'ko-KR': koKRIntl,
26396
+ 'id-ID': idIDIntl,
26397
+ 'de-DE': deDEIntl,
26398
+ 'fa-IR': faIRIntl,
26399
+ 'tr-TR': trTRIntl,
26400
+ 'pl-PL': plPLIntl,
26401
+ 'hr-HR': hrHRIntl
27789
26402
  };
26403
+ var intlMapKeys = Object.keys(intlMap);
26404
+
26405
+ /* Creating a context object with the default values. */
26406
+ var es_ConfigContext = /*#__PURE__*/external_React_default().createContext({
26407
+ intl: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, zhCNIntl), {}, {
26408
+ locale: 'default'
26409
+ }),
26410
+ isDeps: false,
26411
+ valueTypeMap: {}
26412
+ });
26413
+ var ConfigConsumer = es_ConfigContext.Consumer,
26414
+ ConfigProvider = es_ConfigContext.Provider;
27790
26415
  /**
27791
- * 如果 antd 里面没有,就用我 mock 的,这样 antd@4 antd@5 可以兼容
26416
+ * 根据 antd key 来找到的 locale 插件的 key
26417
+ *
26418
+ * @param localeKey
27792
26419
  */
27793
- var _batToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token_namespaceObject), external_antd_.theme || {}),
27794
- useStyle_useToken = _batToken.useToken;
27795
26420
 
27796
- var resetComponent = function resetComponent(token) {
27797
- return {
27798
- boxSizing: 'border-box',
27799
- margin: 0,
27800
- padding: 0,
27801
- color: token.colorText,
27802
- fontSize: token.fontSize,
27803
- lineHeight: token.lineHeight,
27804
- listStyle: 'none'
27805
- };
26421
+ var findIntlKeyByAntdLocaleKey = function findIntlKeyByAntdLocaleKey(localeKey) {
26422
+ if (!localeKey) {
26423
+ return 'zh-CN';
26424
+ }
26425
+ var localeName = localeKey.toLocaleLowerCase();
26426
+ return intlMapKeys.find(function (intlKey) {
26427
+ var LowerCaseKey = intlKey.toLocaleLowerCase();
26428
+ return LowerCaseKey.includes(localeName);
26429
+ });
27806
26430
  };
27807
- var operationUnit = function operationUnit(token) {
27808
- return {
27809
- // FIXME: This use link but is a operation unit. Seems should be a colorPrimary.
27810
- // And Typography use this to generate link style which should not do this.
27811
- color: token.colorLink,
27812
- outline: 'none',
27813
- cursor: 'pointer',
27814
- transition: "color ".concat(token.motionDurationSlow),
27815
- '&:focus, &:hover': {
27816
- color: token.colorLinkHover
27817
- },
27818
- '&:active': {
27819
- color: token.colorLinkActive
27820
- }
27821
- };
26431
+ /**
26432
+ * 组件解除挂载后清空一下 cache
26433
+ *
26434
+ * @returns
26435
+ */
26436
+ var CacheClean = function CacheClean() {
26437
+ var _useSWRConfig = useSWRConfig(),
26438
+ cache = _useSWRConfig.cache;
26439
+ (0,external_React_.useEffect)(function () {
26440
+ return function () {
26441
+ // is a map
26442
+ // @ts-ignore
26443
+ cache.clear();
26444
+ };
26445
+ // eslint-disable-next-line react-hooks/exhaustive-deps
26446
+ }, []);
26447
+ return null;
27822
26448
  };
27823
26449
  /**
27824
- * 封装了一下 antd 的 useStyle,支持了一下antd@4
27825
- * @param componentName {string} 组件的名字
27826
- * @param styleFn {GenerateStyle} 生成样式的函数
27827
- * @returns {UseStyleResult}
26450
+ * 如果没有配置 locale,这里组件会根据 antd 的 key 来自动选择
26451
+ *
26452
+ * @param param0
27828
26453
  */
27829
- function useStyle(componentName, styleFn, deps) {
27830
- var _useToken = useStyle_useToken(),
27831
- token = _useToken.token,
27832
- hashId = _useToken.hashId,
27833
- theme = _useToken.theme;
26454
+ var ConfigProviderWrap = function ConfigProviderWrap(_ref2) {
26455
+ var children = _ref2.children,
26456
+ _ref2$autoClearCache = _ref2.autoClearCache,
26457
+ autoClearCache = _ref2$autoClearCache === void 0 ? false : _ref2$autoClearCache,
26458
+ propsToken = _ref2.token;
27834
26459
  var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
26460
+ locale = _useContext.locale,
27835
26461
  getPrefixCls = _useContext.getPrefixCls;
27836
- /**
27837
- * pro
27838
- * @type {string}
27839
- * @example .ant-pro
27840
- */
27841
- var proComponentsCls = ".".concat(getPrefixCls(), "-pro");
27842
- return {
27843
- wrapSSR: useStyleRegister({
27844
- theme: theme,
27845
- token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, deps), token),
27846
- hashId: hashId,
27847
- path: [componentName]
27848
- }, function () {
27849
- return styleFn(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
27850
- antCls: '.' + getPrefixCls(),
27851
- proComponentsCls: proComponentsCls
27852
- }));
27853
- }),
27854
- hashId: hashId
27855
- };
26462
+ var tokenContext = es_useToken === null || es_useToken === void 0 ? void 0 : es_useToken();
26463
+ // 如果 locale 不存在自动注入的 AntdConfigProvider
26464
+ var Provider = locale === undefined ? external_antd_.ConfigProvider : (external_React_default()).Fragment;
26465
+ var proProvide = (0,external_React_.useContext)(es_ConfigContext);
26466
+ var proProvideValue = (0,external_React_.useMemo)(function () {
26467
+ var _proProvide$intl, _proProvide$token;
26468
+ var localeName = locale === null || locale === void 0 ? void 0 : locale.locale;
26469
+ var key = findIntlKeyByAntdLocaleKey(localeName);
26470
+ // antd 的 key 存在的时候以 antd 的为主
26471
+ var intl = localeName && ((_proProvide$intl = proProvide.intl) === null || _proProvide$intl === void 0 ? void 0 : _proProvide$intl.locale) === 'default' ? intlMap[key] : proProvide.intl || intlMap[key];
26472
+ /**
26473
+ * 合并一下token,不然导致嵌套 token 失效
26474
+ */
26475
+ var proLayoutTokenMerge = merge(((_proProvide$token = proProvide.token) === null || _proProvide$token === void 0 ? void 0 : _proProvide$token.layout) || {}, getLayoutDesignToken((propsToken === null || propsToken === void 0 ? void 0 : propsToken.layout) || {}, tokenContext.token));
26476
+ return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
26477
+ token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proProvide.token), {}, {
26478
+ layout: proLayoutTokenMerge
26479
+ })
26480
+ }, proProvide), {}, {
26481
+ isDeps: true,
26482
+ intl: intl || zhCNIntl
26483
+ });
26484
+ }, [locale === null || locale === void 0 ? void 0 : locale.locale, proProvide, tokenContext, propsToken]);
26485
+ var configProviderDom = (0,external_React_.useMemo)(function () {
26486
+ var _process$env$NODE_ENV;
26487
+ // 自动注入 antd 的配置
26488
+ var configProvider = locale === undefined ? {
26489
+ locale: es_locale_zh_CN,
26490
+ theme: {
26491
+ hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test'
26492
+ }
26493
+ } : {};
26494
+ var provide = (0,jsx_runtime.jsx)(Provider, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, configProvider), {}, {
26495
+ children: (0,jsx_runtime.jsx)(ConfigProvider, {
26496
+ value: proProvideValue,
26497
+ children: (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
26498
+ children: [autoClearCache && (0,jsx_runtime.jsx)(CacheClean, {}), children]
26499
+ })
26500
+ })
26501
+ }));
26502
+ if (proProvide.isDeps) return provide;
26503
+ return (0,jsx_runtime.jsx)("div", {
26504
+ className: "".concat((getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls('pro')) || 'ant-pro', " ").concat(tokenContext.hashId),
26505
+ children: provide
26506
+ });
26507
+ }, [Provider, autoClearCache, children, getPrefixCls, locale, proProvide.isDeps, proProvideValue, tokenContext.hashId]);
26508
+ if (!autoClearCache) return configProviderDom;
26509
+ return (0,jsx_runtime.jsx)(SWRConfig, {
26510
+ value: {
26511
+ provider: function provider() {
26512
+ return new Map();
26513
+ }
26514
+ },
26515
+ children: configProviderDom
26516
+ });
26517
+ };
26518
+ /**
26519
+ * It returns the intl object from the context if it exists, otherwise it returns the intl object for
26520
+ * the current locale
26521
+ * @returns The return value of the function is the intl object.
26522
+ */
26523
+ function useIntl() {
26524
+ var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
26525
+ locale = _useContext2.locale;
26526
+ var _useContext3 = (0,external_React_.useContext)(es_ConfigContext),
26527
+ intl = _useContext3.intl;
26528
+ if (intl && intl.locale !== 'default') {
26529
+ return intl || zhCNIntl;
26530
+ }
26531
+ if (locale === null || locale === void 0 ? void 0 : locale.locale) {
26532
+ return intlMap[findIntlKeyByAntdLocaleKey(locale.locale)] || zhCNIntl;
26533
+ }
26534
+ return zhCNIntl;
27856
26535
  }
26536
+ var ProProvider = es_ConfigContext;
26537
+ /* harmony default export */ var es = (es_ConfigContext);
26538
+ // EXTERNAL MODULE: ./node_modules/classnames/index.js
26539
+ var classnames = __webpack_require__(8266);
26540
+ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
27857
26541
  ;// CONCATENATED MODULE: ./packages/utils/es/components/DropdownFooter/style.js
27858
26542
 
27859
26543
 
@@ -28577,16 +27261,31 @@ var FieldLabel = /*#__PURE__*/external_React_default().forwardRef(FieldLabelFunc
28577
27261
 
28578
27262
 
28579
27263
  var semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;
27264
+ /**
27265
+ * @param {string} s
27266
+ */
28580
27267
  var isWildcard = function isWildcard(s) {
28581
27268
  return s === '*' || s === 'x' || s === 'X';
28582
27269
  };
27270
+ /**
27271
+ * @param {string} v
27272
+ */
28583
27273
  var tryParse = function tryParse(v) {
28584
27274
  var n = parseInt(v, 10);
28585
27275
  return isNaN(n) ? v : n;
28586
27276
  };
27277
+ /**
27278
+ * @param {string|number} a
27279
+ * @param {string|number} b
27280
+ */
28587
27281
  var forceType = function forceType(a, b) {
28588
27282
  return typeof_typeof(a) !== typeof_typeof(b) ? [String(a), String(b)] : [a, b];
28589
27283
  };
27284
+ /**
27285
+ * @param {string} a
27286
+ * @param {string} b
27287
+ * @returns number
27288
+ */
28590
27289
  var compareStrings = function compareStrings(a, b) {
28591
27290
  if (isWildcard(a) || isWildcard(b)) return 0;
28592
27291
  var _forceType = forceType(tryParse(a), tryParse(b)),
@@ -28597,6 +27296,11 @@ var compareStrings = function compareStrings(a, b) {
28597
27296
  if (ap < bp) return -1;
28598
27297
  return 0;
28599
27298
  };
27299
+ /**
27300
+ * @param {string|RegExpMatchArray} a
27301
+ * @param {string|RegExpMatchArray} b
27302
+ * @returns number
27303
+ */
28600
27304
  var compareSegments = function compareSegments(a, b) {
28601
27305
  for (var i = 0; i < Math.max(a.length, b.length); i++) {
28602
27306
  var r = compareStrings(a[i] || '0', b[i] || '0');
@@ -28604,6 +27308,10 @@ var compareSegments = function compareSegments(a, b) {
28604
27308
  }
28605
27309
  return 0;
28606
27310
  };
27311
+ /**
27312
+ * @param {string} version
27313
+ * @returns RegExpMatchArray
27314
+ */
28607
27315
  var validateAndParse = function validateAndParse(version) {
28608
27316
  if (typeof version !== 'string') {
28609
27317
  throw new TypeError('Invalid argument expected string');
@@ -29125,9 +27833,19 @@ var dateFormatterMap = {
29125
27833
  dateTime: 'YYYY-MM-DD HH:mm:ss',
29126
27834
  dateTimeRange: 'YYYY-MM-DD HH:mm:ss'
29127
27835
  };
27836
+ /**
27837
+ * 判断是不是一个 object
27838
+ * @param {any} o
27839
+ * @returns boolean
27840
+ */
29128
27841
  function isObject(o) {
29129
27842
  return Object.prototype.toString.call(o) === '[object Object]';
29130
27843
  }
27844
+ /**
27845
+ * 判断是否是一个的简单的 object
27846
+ * @param {{constructor:any}} o
27847
+ * @returns boolean
27848
+ */
29131
27849
  function isPlainObject(o) {
29132
27850
  if (isObject(o) === false) return false;
29133
27851
  // If has modified constructor
@@ -29144,19 +27862,18 @@ function isPlainObject(o) {
29144
27862
  return true;
29145
27863
  }
29146
27864
  /**
29147
- * 一个比较hack的moment判断工具
29148
- * @param value
29149
- * @returns
27865
+ * 一个比较hack的moment判断工具
27866
+ * @param {any} value
27867
+ * @returns boolean
29150
27868
  */
29151
27869
  var isMoment = function isMoment(value) {
29152
27870
  return !!(value === null || value === void 0 ? void 0 : value._isAMomentObject);
29153
27871
  };
29154
27872
  /**
29155
27873
  * 根据不同的格式转化 dayjs
29156
- *
29157
- * @param value
29158
- * @param dateFormatter
29159
- * @param valueType
27874
+ * @param {dayjs.Dayjs} value
27875
+ * @param {string|((value:dayjs.Dayjs} dateFormatter
27876
+ * @param {string} valueType
29160
27877
  */
29161
27878
  var convertMoment = function convertMoment(value, dateFormatter, valueType) {
29162
27879
  if (!dateFormatter) {
@@ -29180,10 +27897,12 @@ var convertMoment = function convertMoment(value, dateFormatter, valueType) {
29180
27897
  };
29181
27898
  /**
29182
27899
  * 这里主要是来转化一下数据 将 dayjs 转化为 string 将 all 默认删除
29183
- *
29184
- * @param value
29185
- * @param dateFormatter
29186
- * @param proColumnsMap
27900
+ * @param {T} value
27901
+ * @param {DateFormatter} dateFormatter
27902
+ * @param {Record<string} valueTypeMap
27903
+ * @param {ProFieldValueType;dateFormat:string;}|any>} |{valueType
27904
+ * @param {boolean} omitNil?
27905
+ * @param {NamePath} parentKey?
29187
27906
  */
29188
27907
  var conversionMomentValue = function conversionMomentValue(value, dateFormatter, valueTypeMap, omitNil, parentKey) {
29189
27908
  var tmpValue = {};
@@ -29236,6 +27955,12 @@ var conversionMomentValue = function conversionMomentValue(value, dateFormatter,
29236
27955
  ;// CONCATENATED MODULE: ./packages/utils/es/dateArrayFormatter/index.js
29237
27956
 
29238
27957
 
27958
+ /**
27959
+ * 通过 format 来格式化日期,因为支持了function 所以需要单独的方法来处理
27960
+ * @param {any} endText
27961
+ * @param {FormatType} format
27962
+ * @return string
27963
+ */
29239
27964
  var formatString = function formatString(endText, format) {
29240
27965
  if (typeof format === 'function') {
29241
27966
  return format(dayjs_min_default()(endText));
@@ -29243,9 +27968,10 @@ var formatString = function formatString(endText, format) {
29243
27968
  return dayjs_min_default()(endText).format(format);
29244
27969
  };
29245
27970
  /**
29246
- * 格式化区域日期
29247
- *
29248
- * @param value
27971
+ * 格式化区域日期,如果是一个数组,会返回 start ~ end
27972
+ * @param {any} value
27973
+ * @param {FormatType | FormatType[]} format
27974
+ * returns string
29249
27975
  */
29250
27976
  var dateArrayFormatter = function dateArrayFormatter(value, format) {
29251
27977
  var _ref = Array.isArray(value) ? value : [],
@@ -29694,6 +28420,11 @@ var useRefFunction = function useRefFunction(reFunction) {
29694
28420
 
29695
28421
 
29696
28422
 
28423
+ /**
28424
+ * 一个去抖的 hook,传入一个 function,返回一个去抖后的 function
28425
+ * @param {(...args:T) => Promise<any>} fn
28426
+ * @param {number} wait?
28427
+ */
29697
28428
  function useDebounceFn(fn, wait) {
29698
28429
  var callback = useRefFunction(fn);
29699
28430
  var timer = (0,external_React_.useRef)();
@@ -29784,6 +28515,13 @@ var useLatest = function useLatest(value) {
29784
28515
 
29785
28516
 
29786
28517
 
28518
+ /**
28519
+ * 一个去抖的setState 减少更新的频率
28520
+ * @param {T} value
28521
+ * @param {number=100} delay
28522
+ * @param {DependencyList} deps?
28523
+ * @returns T
28524
+ */
29787
28525
  function useDebounceValue(value) {
29788
28526
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
29789
28527
  var deps = arguments.length > 2 ? arguments[2] : undefined;
@@ -30052,6 +28790,11 @@ function isImg(path) {
30052
28790
  return /\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(path);
30053
28791
  }
30054
28792
  ;// CONCATENATED MODULE: ./packages/utils/es/isUrl/index.js
28793
+ /**
28794
+ * 判断是不是一个 url
28795
+ * @param {string|undefined} path
28796
+ * @returns boolean
28797
+ */
30055
28798
  var isUrl = function isUrl(path) {
30056
28799
  if (!path) return false;
30057
28800
  if (!path.startsWith('http')) {
@@ -30068,7 +28811,12 @@ var isUrl = function isUrl(path) {
30068
28811
 
30069
28812
 
30070
28813
  /* eslint-disable prefer-rest-params */
30071
- var merge = function merge() {
28814
+ /**
28815
+ * 用于合并 n 个对象
28816
+ * @param {any[]} ...rest
28817
+ * @returns T
28818
+ */
28819
+ var merge_merge = function merge() {
30072
28820
  var obj = {};
30073
28821
  for (var _len = arguments.length, rest = new Array(_len), _key = 0; _key < _len; _key++) {
30074
28822
  rest[_key] = arguments[_key];
@@ -30110,7 +28858,7 @@ var genNanoid = function genNanoid() {
30110
28858
  /**
30111
28859
  * 生成uuid,如果不支持 randomUUID,就用 genNanoid
30112
28860
  *
30113
- * @returns
28861
+ * @returns string
30114
28862
  */
30115
28863
  var nanoid = function nanoid() {
30116
28864
  if (typeof window === 'undefined') return genNanoid();
@@ -30122,6 +28870,11 @@ var nanoid = function nanoid() {
30122
28870
  return genNanoid();
30123
28871
  };
30124
28872
  ;// CONCATENATED MODULE: ./packages/utils/es/omitBoolean/index.js
28873
+ /**
28874
+ * 剔除 boolean 值
28875
+ * @param {boolean|T} obj
28876
+ * @returns T
28877
+ */
30125
28878
  var omitBoolean = function omitBoolean(obj) {
30126
28879
  if (obj && obj !== true) {
30127
28880
  return obj;
@@ -30329,7 +29082,7 @@ var transformKeySubmitValue = function transformKeySubmitValue(values, dataForma
30329
29082
  // namePath、transform在omit为false时需正常返回 https://github.com/ant-design/pro-components/issues/2901#issue-908097115
30330
29083
  return omit ? result : tempValues;
30331
29084
  };
30332
- finalValues = Array.isArray(values) && Array.isArray(finalValues) ? toConsumableArray_toConsumableArray(gen(values)) : merge({}, gen(values), finalValues);
29085
+ finalValues = Array.isArray(values) && Array.isArray(finalValues) ? toConsumableArray_toConsumableArray(gen(values)) : merge_merge({}, gen(values), finalValues);
30333
29086
  return finalValues;
30334
29087
  };
30335
29088
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toArray.js
@@ -30574,7 +29327,7 @@ function SaveEditableAction(_ref) {
30574
29327
  return onSave === null || onSave === void 0 ? void 0 : onSave(recordKey,
30575
29328
  // 如果是 map 模式,fields 就是一个值,所以需要set 到对象中
30576
29329
  // 数据模式 fields 是一个对象,所以不需要
30577
- merge({}, row, data), row, newLineConfig);
29330
+ merge_merge({}, row, data), row, newLineConfig);
30578
29331
  case 13:
30579
29332
  res = _context.sent;
30580
29333
  setLoading(false);
@@ -31983,7 +30736,7 @@ QuestionCircleOutlined_QuestionCircleOutlined.displayName = 'QuestionCircleOutli
31983
30736
 
31984
30737
 
31985
30738
  var Statistic_style_genProStyle = function genProStyle(token) {
31986
- var _layoutHorizontal, _layoutInline, _token$componentCls;
30739
+ var _layoutHorizonta, _layoutInline, _token$componentCls;
31987
30740
  return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
31988
30741
  display: 'flex',
31989
30742
  fontSize: token.fontSize,
@@ -31993,10 +30746,12 @@ var Statistic_style_genProStyle = function genProStyle(token) {
31993
30746
  '&-tip': {
31994
30747
  marginInlineStart: 4
31995
30748
  },
31996
- '&-wrapper': {
30749
+ '&-wrapper': defineProperty_defineProperty({
31997
30750
  display: 'flex',
31998
30751
  width: '100%'
31999
- },
30752
+ }, "".concat(token.componentCls, "-status"), {
30753
+ width: '14px'
30754
+ }),
32000
30755
  '&-icon': {
32001
30756
  marginInlineEnd: 16
32002
30757
  },
@@ -32029,16 +30784,16 @@ var Statistic_style_genProStyle = function genProStyle(token) {
32029
30784
  color: '#389e0d'
32030
30785
  }, "".concat(token.componentCls, "-trend-icon"), {
32031
30786
  borderBlockEndColor: '#52c41a'
32032
- }))), defineProperty_defineProperty(_token$componentCls, '&-layout-horizontal', (_layoutHorizontal = {
30787
+ }))), defineProperty_defineProperty(_token$componentCls, '& &-layout-horizontal', (_layoutHorizonta = {
32033
30788
  display: 'flex',
32034
30789
  justifyContent: 'space-between'
32035
- }, defineProperty_defineProperty(_layoutHorizontal, "".concat(token.antCls, "-statistic-title"), {
30790
+ }, defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-title"), {
32036
30791
  marginBlockEnd: 0
32037
- }), defineProperty_defineProperty(_layoutHorizontal, "".concat(token.antCls, "-statistic-content-value"), {
30792
+ }), defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-content-value"), {
32038
30793
  fontWeight: 500
32039
- }), defineProperty_defineProperty(_layoutHorizontal, "".concat(token.antCls, "-statistic-title,").concat(token.antCls, "-statistic-content,").concat(token.antCls, "-statistic-content-suffix,").concat(token.antCls, "-statistic-content-prefix,").concat(token.antCls, "-statistic-content-value-decimal"), {
30794
+ }), defineProperty_defineProperty(_layoutHorizonta, "".concat(token.antCls, "-statistic-title,").concat(token.antCls, "-statistic-content,").concat(token.antCls, "-statistic-content-suffix,").concat(token.antCls, "-statistic-content-prefix,").concat(token.antCls, "-statistic-content-value-decimal"), {
32040
30795
  fontSize: token.fontSizeBase
32041
- }), _layoutHorizontal)), defineProperty_defineProperty(_token$componentCls, '&-layout-inline', (_layoutInline = {
30796
+ }), _layoutHorizonta)), defineProperty_defineProperty(_token$componentCls, '& &-layout-inline', (_layoutInline = {
32042
30797
  display: 'inline-flex',
32043
30798
  color: token.colorTextSecondary
32044
30799
  }, defineProperty_defineProperty(_layoutInline, "".concat(token.antCls, "-statistic-title"), {
@@ -32091,12 +30846,14 @@ var Statistic = function Statistic(props) {
32091
30846
  var _useStyle = Statistic_style_useStyle(prefixCls),
32092
30847
  wrapSSR = _useStyle.wrapSSR,
32093
30848
  hashId = _useStyle.hashId;
32094
- var classString = classnames_default()(prefixCls, className);
32095
- var statusClass = classnames_default()("".concat(prefixCls, "-status"));
32096
- var iconClass = classnames_default()("".concat(prefixCls, "-icon"));
32097
- var wrapperClass = classnames_default()("".concat(prefixCls, "-wrapper"));
32098
- var contentClass = classnames_default()("".concat(prefixCls, "-content"));
32099
- var statisticClassName = classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-layout-").concat(layout), layout), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-trend-").concat(trend), trend), defineProperty_defineProperty(_classNames, "hashId", hashId), _classNames));
30849
+ var classString = classnames_default()(prefixCls, className, hashId);
30850
+ var statusClass = classnames_default()("".concat(prefixCls, "-status"), hashId);
30851
+ var iconClass = classnames_default()("".concat(prefixCls, "-icon"), hashId);
30852
+ var wrapperClass = classnames_default()("".concat(prefixCls, "-wrapper"), hashId);
30853
+ var contentClass = classnames_default()("".concat(prefixCls, "-content"), hashId);
30854
+ var statisticClassName = classnames_default()((_classNames = {
30855
+ hashId: hashId
30856
+ }, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-layout-").concat(layout), layout), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-trend-").concat(trend), trend), _classNames));
32100
30857
  var tipDom = tip && (0,jsx_runtime.jsx)(external_antd_.Tooltip, {
32101
30858
  title: tip,
32102
30859
  children: (0,jsx_runtime.jsx)(icons_QuestionCircleOutlined, {
@@ -32118,6 +30875,7 @@ var Statistic = function Statistic(props) {
32118
30875
  className: iconClass,
32119
30876
  children: icon
32120
30877
  });
30878
+ console.log('classString', classString);
32121
30879
  return wrapSSR((0,jsx_runtime.jsxs)("div", {
32122
30880
  className: classString,
32123
30881
  style: style,
@@ -32538,21 +31296,21 @@ var genProCardStyle = function genProCardStyle(token) {
32538
31296
  fontFamily: token.fontFamily
32539
31297
  },
32540
31298
  '&-box-shadow': {
32541
- boxShadow: token.boxShadowCard,
32542
- borderColor: token.cardHoverableHoverBorder
31299
+ boxShadow: '0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017',
31300
+ borderColor: 'transparent'
32543
31301
  },
32544
31302
  '&-col': {
32545
31303
  width: '100%'
32546
31304
  },
32547
31305
  '&-border': {
32548
- border: token.proCardDefaultBorder
31306
+ border: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit)
32549
31307
  },
32550
31308
  '&-hoverable': defineProperty_defineProperty({
32551
31309
  cursor: 'pointer',
32552
31310
  transition: 'box-shadow 0.3s, border-color 0.3s',
32553
31311
  '&:hover': {
32554
- borderColor: token.cardHoverableHoverBorder,
32555
- boxShadow: token.cardShadow
31312
+ borderColor: 'transparent',
31313
+ boxShadow: '0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017'
32556
31314
  }
32557
31315
  }, "&".concat(componentCls, "-checked:hover"), {
32558
31316
  borderColor: token.controlOutline
@@ -32713,10 +31471,7 @@ var genGridStyle = function genGridStyle(token) {
32713
31471
  function Card_style_useStyle(prefixCls) {
32714
31472
  return useStyle('ProCard', function (token) {
32715
31473
  var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
32716
- componentCls: ".".concat(prefixCls),
32717
- cardHoverableHoverBorder: 'transparent',
32718
- proCardDefaultBorder: "".concat(token.lineWidth, "px ").concat(token.lineType, " ").concat(token.colorSplit),
32719
- cardShadow: '0 1px 2px -2px rgba(0, 0, 0, 0.64), 0 3px 6px 0 rgba(0, 0, 0, 0.48), 0 5px 12px 4px rgba(0, 0, 0, 0.36)'
31474
+ componentCls: ".".concat(prefixCls)
32720
31475
  });
32721
31476
  return [genProCardStyle(proCardToken), genGridStyle(proCardToken)];
32722
31477
  });
@@ -33068,8 +31823,9 @@ var ProCardOperation = function ProCardOperation(props) {
33068
31823
  getPrefixCls = _useContext.getPrefixCls;
33069
31824
  var prefixCls = getPrefixCls('pro-card-operation');
33070
31825
  var _useStyle = Operation_style_useStyle(prefixCls),
33071
- wrapSSR = _useStyle.wrapSSR;
33072
- var classString = classnames_default()(prefixCls, className);
31826
+ wrapSSR = _useStyle.wrapSSR,
31827
+ hashId = _useStyle.hashId;
31828
+ var classString = classnames_default()(prefixCls, className, hashId);
33073
31829
  return wrapSSR((0,jsx_runtime.jsx)("div", {
33074
31830
  className: classString,
33075
31831
  style: style,
@@ -37377,9 +36133,9 @@ function createField(Field, config) {
37377
36133
  // eslint-disable-next-line react-hooks/exhaustive-deps
37378
36134
  isDeepEqualReact(prefRest, rest, ['onChange', 'onBlur', 'onFocus', 'record']) ? undefined : {}]);
37379
36135
  // 使用useMemo包裹避免不必要的re-render
37380
- var FormItem = (0,external_React_.useMemo)(function () {
36136
+ var formItem = (0,external_React_.useMemo)(function () {
37381
36137
  var _field$props$allowCle, _field$props, _field$props2, _otherProps$name;
37382
- return (0,jsx_runtime.jsx)(components_FormItem
36138
+ return (0,jsx_runtime.jsx)(FormItem
37383
36139
  // 全局的提供一个 tip 功能,可以减少代码量
37384
36140
  // 轻量模式下不通过 FormItem 显示 label
37385
36141
  , objectSpread2_objectSpread2(objectSpread2_objectSpread2({
@@ -37414,7 +36170,7 @@ function createField(Field, config) {
37414
36170
  var _useGridHelpers = useGridHelpers(rest),
37415
36171
  ColWrapper = _useGridHelpers.ColWrapper;
37416
36172
  return (0,jsx_runtime.jsx)(ColWrapper, {
37417
- children: FormItem
36173
+ children: formItem
37418
36174
  });
37419
36175
  };
37420
36176
  var DependencyWrapper = function DependencyWrapper(props) {
@@ -41355,9 +40111,6 @@ var FieldDatePicker = function FieldDatePicker(_ref, ref) {
41355
40111
  return null;
41356
40112
  };
41357
40113
  /* harmony default export */ var DatePicker = (/*#__PURE__*/external_React_default().forwardRef(FieldDatePicker));
41358
- // EXTERNAL MODULE: ./node_modules/lodash.omit/index.js
41359
- var lodash_omit = __webpack_require__(8493);
41360
- var lodash_omit_default = /*#__PURE__*/__webpack_require__.n(lodash_omit);
41361
40114
  ;// CONCATENATED MODULE: ./packages/field/es/components/Digit/index.js
41362
40115
 
41363
40116
 
@@ -41387,8 +40140,10 @@ var FieldDigit = function FieldDigit(_ref, ref) {
41387
40140
  val = Number(val);
41388
40141
  }
41389
40142
  if (typeof val === 'number') {
41390
- var _val, _val$toFixed, _fieldProps$precision;
41391
- val = (_val = val) === null || _val === void 0 ? void 0 : (_val$toFixed = _val.toFixed) === null || _val$toFixed === void 0 ? void 0 : _val$toFixed.call(_val, (_fieldProps$precision = fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : 0);
40143
+ if (fieldProps.precision) {
40144
+ var _val, _val$toFixed, _fieldProps$precision;
40145
+ val = (_val = val) === null || _val === void 0 ? void 0 : (_val$toFixed = _val.toFixed) === null || _val$toFixed === void 0 ? void 0 : _val$toFixed.call(_val, (_fieldProps$precision = fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : 0);
40146
+ }
41392
40147
  val = Number(val);
41393
40148
  }
41394
40149
  return fieldProps === null || fieldProps === void 0 ? void 0 : (_fieldProps$onChange = fieldProps.onChange) === null || _fieldProps$onChange === void 0 ? void 0 : _fieldProps$onChange.call(fieldProps, val);
@@ -41419,7 +40174,7 @@ var FieldDigit = function FieldDigit(_ref, ref) {
41419
40174
  ref: ref,
41420
40175
  min: 0,
41421
40176
  placeholder: placeholder
41422
- }, lodash_omit_default()(fieldProps, 'onChange')), {}, {
40177
+ }, omit_js_es(fieldProps, ['onChange'])), {}, {
41423
40178
  onChange: proxyChange
41424
40179
  }));
41425
40180
  if (renderFormItem) {
@@ -41777,6 +40532,16 @@ var Money_intlMap = {
41777
40532
  'sr-RS': rsMoneyIntl,
41778
40533
  'pt-BR': ptMoneyIntl
41779
40534
  };
40535
+ /**
40536
+ * A function that formats the number.
40537
+ * @param {string | false} moneySymbol - The currency symbol, which is the first parameter of the
40538
+ * formatMoney function.
40539
+ * @param {number | string | undefined} paramsText - The text to be formatted
40540
+ * @param {number} precision - number, // decimal places
40541
+ * @param {any} [config] - the configuration of the number format, which is the same as the
40542
+ * configuration of the number format in the Intl.NumberFormat method.
40543
+ * @returns A function that takes in 4 parameters and returns a string.
40544
+ */
41780
40545
  var getTextByLocale = function getTextByLocale(moneySymbol, paramsText, precision, config) {
41781
40546
  var moneyText = paramsText === null || paramsText === void 0 ? void 0 : paramsText.toString().replaceAll(',', '');
41782
40547
  if (typeof moneyText === 'string') {
@@ -41784,23 +40549,45 @@ var getTextByLocale = function getTextByLocale(moneySymbol, paramsText, precisio
41784
40549
  }
41785
40550
  if (!moneyText && moneyText !== 0) return '';
41786
40551
  try {
41787
- // readonly moneySymbol = false, unused currency
41788
- return new Intl.NumberFormat(moneySymbol || 'zh-Hans-CN', objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, Money_intlMap[moneySymbol || 'zh-Hans-CN'] || Money_intlMap['zh-Hans-CN']), {}, {
40552
+ // Formatting the number, when readonly moneySymbol = false, unused currency.
40553
+ var finalMoneyText = new Intl.NumberFormat(moneySymbol || 'zh-Hans-CN', objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, Money_intlMap[moneySymbol || 'zh-Hans-CN'] || Money_intlMap['zh-Hans-CN']), {}, {
41789
40554
  maximumFractionDigits: precision
41790
40555
  }, config))
41791
40556
  // fix: #6003 解决未指定货币符号时,金额文本格式化异常问题
41792
- .format(moneyText).substring(+(moneySymbol === false));
40557
+ .format(moneyText);
40558
+ // 是否有金额符号,例如 ¥ $
40559
+ var hasMoneySymbol = moneySymbol === false;
40560
+ /**
40561
+ * 首字母判断是否是正负符号
40562
+ */
40563
+ var _ref = finalMoneyText || '',
40564
+ _ref2 = slicedToArray_slicedToArray(_ref, 1),
40565
+ operatorSymbol = _ref2[0];
40566
+ // 兼容正负号
40567
+ if (['+', '-'].includes(operatorSymbol)) {
40568
+ // 裁剪字符串,有符号截取两位,没有符号截取一位
40569
+ return "".concat(operatorSymbol).concat(finalMoneyText.substring(hasMoneySymbol ? 2 : 1));
40570
+ }
40571
+ // 没有正负符号截取一位
40572
+ return finalMoneyText.substring(hasMoneySymbol ? 1 : 0);
41793
40573
  } catch (error) {
41794
40574
  return moneyText;
41795
40575
  }
41796
40576
  };
40577
+ // 默认的代码类型
41797
40578
  var DefaultPrecisionCont = 2;
41798
- var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(function (_ref, ref) {
41799
- var content = _ref.content,
41800
- numberFormatOptions = _ref.numberFormatOptions,
41801
- numberPopoverRender = _ref.numberPopoverRender,
41802
- open = _ref.open,
41803
- rest = objectWithoutProperties_objectWithoutProperties(_ref, Money_excluded);
40579
+ /**
40580
+ * input 的弹框,用于显示格式化之后的内容
40581
+ *
40582
+ * @result 10,000 -> 一万
40583
+ * @result 10, 00, 000, 000 -> 一亿
40584
+ */
40585
+ var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(function (_ref3, ref) {
40586
+ var content = _ref3.content,
40587
+ numberFormatOptions = _ref3.numberFormatOptions,
40588
+ numberPopoverRender = _ref3.numberPopoverRender,
40589
+ open = _ref3.open,
40590
+ rest = objectWithoutProperties_objectWithoutProperties(_ref3, Money_excluded);
41804
40591
  var _useMergedState = (0,useMergedState/* default */.Z)(function () {
41805
40592
  return rest.defaultValue;
41806
40593
  }, {
@@ -41810,6 +40597,9 @@ var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(functi
41810
40597
  _useMergedState2 = slicedToArray_slicedToArray(_useMergedState, 2),
41811
40598
  value = _useMergedState2[0],
41812
40599
  onChange = _useMergedState2[1];
40600
+ /**
40601
+ * 如果content 存在要根据 content 渲染一下
40602
+ */
41813
40603
  var dom = content === null || content === void 0 ? void 0 : content(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rest), {}, {
41814
40604
  value: value
41815
40605
  }));
@@ -41841,53 +40631,70 @@ var InputNumberPopover = /*#__PURE__*/external_React_default().forwardRef(functi
41841
40631
  * text: number;
41842
40632
  * moneySymbol?: string; }
41843
40633
  */
41844
- var FieldMoney = function FieldMoney(_ref2, ref) {
40634
+ var FieldMoney = function FieldMoney(_ref4, ref) {
41845
40635
  var _fieldProps$customSym, _fieldProps$precision;
41846
- var text = _ref2.text,
41847
- type = _ref2.mode,
41848
- render = _ref2.render,
41849
- renderFormItem = _ref2.renderFormItem,
41850
- fieldProps = _ref2.fieldProps,
41851
- proFieldKey = _ref2.proFieldKey,
41852
- plain = _ref2.plain,
41853
- valueEnum = _ref2.valueEnum,
41854
- placeholder = _ref2.placeholder,
41855
- _ref2$locale = _ref2.locale,
41856
- locale = _ref2$locale === void 0 ? (_fieldProps$customSym = fieldProps.customSymbol) !== null && _fieldProps$customSym !== void 0 ? _fieldProps$customSym : 'zh-Hans-CN' : _ref2$locale,
41857
- _ref2$customSymbol = _ref2.customSymbol,
41858
- customSymbol = _ref2$customSymbol === void 0 ? fieldProps.customSymbol : _ref2$customSymbol,
41859
- _ref2$numberFormatOpt = _ref2.numberFormatOptions,
41860
- numberFormatOptions = _ref2$numberFormatOpt === void 0 ? fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberFormatOptions : _ref2$numberFormatOpt,
41861
- _ref2$numberPopoverRe = _ref2.numberPopoverRender,
41862
- numberPopoverRender = _ref2$numberPopoverRe === void 0 ? (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberPopoverRender) || false : _ref2$numberPopoverRe,
41863
- rest = objectWithoutProperties_objectWithoutProperties(_ref2, Money_excluded2);
40636
+ var text = _ref4.text,
40637
+ type = _ref4.mode,
40638
+ render = _ref4.render,
40639
+ renderFormItem = _ref4.renderFormItem,
40640
+ fieldProps = _ref4.fieldProps,
40641
+ proFieldKey = _ref4.proFieldKey,
40642
+ plain = _ref4.plain,
40643
+ valueEnum = _ref4.valueEnum,
40644
+ placeholder = _ref4.placeholder,
40645
+ _ref4$locale = _ref4.locale,
40646
+ locale = _ref4$locale === void 0 ? (_fieldProps$customSym = fieldProps.customSymbol) !== null && _fieldProps$customSym !== void 0 ? _fieldProps$customSym : 'zh-Hans-CN' : _ref4$locale,
40647
+ _ref4$customSymbol = _ref4.customSymbol,
40648
+ customSymbol = _ref4$customSymbol === void 0 ? fieldProps.customSymbol : _ref4$customSymbol,
40649
+ _ref4$numberFormatOpt = _ref4.numberFormatOptions,
40650
+ numberFormatOptions = _ref4$numberFormatOpt === void 0 ? fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberFormatOptions : _ref4$numberFormatOpt,
40651
+ _ref4$numberPopoverRe = _ref4.numberPopoverRender,
40652
+ numberPopoverRender = _ref4$numberPopoverRe === void 0 ? (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.numberPopoverRender) || false : _ref4$numberPopoverRe,
40653
+ rest = objectWithoutProperties_objectWithoutProperties(_ref4, Money_excluded2);
41864
40654
  var precision = (_fieldProps$precision = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.precision) !== null && _fieldProps$precision !== void 0 ? _fieldProps$precision : DefaultPrecisionCont;
41865
40655
  var intl = useIntl();
41866
40656
  // 当手动传入locale时,应该以传入的locale为准,未传入时则根据全局的locale进行国际化
41867
40657
  if (locale && intlMap[locale]) {
41868
40658
  intl = intlMap[locale];
41869
40659
  }
40660
+ /**
40661
+ * 获取货币的符号
40662
+ * 如果 customSymbol 存在直接使用 customSymbol
40663
+ * 如果 moneySymbol 为 false,返回空
40664
+ * 如果没有配置使用默认的
40665
+ */
41870
40666
  var moneySymbol = (0,external_React_.useMemo)(function () {
41871
40667
  if (customSymbol) {
41872
40668
  return customSymbol;
41873
40669
  }
41874
- var defaultText = intl.getMessage('moneySymbol', '¥');
41875
40670
  if (rest.moneySymbol === false || fieldProps.moneySymbol === false) {
41876
40671
  return undefined;
41877
40672
  }
41878
- return defaultText;
40673
+ return intl.getMessage('moneySymbol', '¥');
41879
40674
  }, [customSymbol, fieldProps.moneySymbol, intl, rest.moneySymbol]);
40675
+ /*
40676
+ * A function that formats the number.
40677
+ * 1000 -> 1,000
40678
+ */
41880
40679
  var getFormateValue = (0,external_React_.useCallback)(function (value) {
40680
+ // 新建数字正则,需要配置小数点
41881
40681
  var reg = new RegExp("\\B(?=(\\d{".concat(3 + Math.max(precision - DefaultPrecisionCont, 0), "})+(?!\\d))"), 'g');
40682
+ // 切分为 整数 和 小数 不同
41882
40683
  var _String$split = String(value).split('.'),
41883
40684
  _String$split2 = slicedToArray_slicedToArray(_String$split, 2),
41884
- intS = _String$split2[0],
41885
- floatS = _String$split2[1];
41886
- var resInt = intS.replace(reg, ',');
41887
- var resFloat = '';
41888
- if (floatS && precision > 0) resFloat = ".".concat(floatS.slice(0, precision === undefined ? DefaultPrecisionCont : precision));
41889
- return "".concat(resInt).concat(resFloat);
40685
+ intStr = _String$split2[0],
40686
+ floatStr = _String$split2[1];
40687
+ // 最终的数据string,需要去掉 , 号。
40688
+ var resultInt = intStr.replace(reg, ',');
40689
+ // 计算最终的小数点
40690
+ var resultFloat = '';
40691
+ /* Taking the floatStr and slicing it to the precision. */
40692
+ if (floatStr && precision > 0) {
40693
+ resultFloat = ".".concat(floatStr.slice(0, precision === undefined ? DefaultPrecisionCont : precision));
40694
+ }
40695
+ return "".concat(resultInt).concat(resultFloat);
41890
40696
  }, [precision]);
40697
+ // 如果是阅读模式,直接返回字符串
41891
40698
  if (type === 'read') {
41892
40699
  var dom = (0,jsx_runtime.jsx)("span", {
41893
40700
  ref: ref,
@@ -42649,6 +41456,7 @@ var Segmented_excluded = ["mode", "render", "renderFormItem", "fieldProps", "emp
42649
41456
 
42650
41457
 
42651
41458
 
41459
+
42652
41460
  /**
42653
41461
  * Segmented https://ant.design/components/segmented-cn/
42654
41462
  *
@@ -42701,7 +41509,7 @@ var FieldSegmented = function FieldSegmented(_ref, ref) {
42701
41509
  if (mode === 'edit' || mode === 'update') {
42702
41510
  var _dom = (0,jsx_runtime.jsx)(external_antd_.Segmented, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
42703
41511
  ref: inputRef
42704
- }, fieldProps), {}, {
41512
+ }, omit_js_es(fieldProps || {}, ['allowClear'])), {}, {
42705
41513
  options: options
42706
41514
  }));
42707
41515
  if (renderFormItem) {
@@ -45209,7 +44017,7 @@ var ProFormDependency = function ProFormDependency(_ref) {
45209
44017
  var value = (_context$getFieldForm = context.getFieldFormatValueObject) === null || _context$getFieldForm === void 0 ? void 0 : _context$getFieldForm.call(context, pathToGet);
45210
44018
  if (value && Object.keys(value).length) {
45211
44019
  // transform 会生成多余的value,这里需要注入一下
45212
- values = merge({}, values, value);
44020
+ values = merge_merge({}, values, value);
45213
44021
  if ((0,utils_get["default"])(value, pathToGet)) {
45214
44022
  values = (0,set/* default */.Z)(values, finalName, (0,utils_get["default"])(value, pathToGet), false);
45215
44023
  }
@@ -45651,7 +44459,7 @@ var ProFormItem = function ProFormItem(props) {
45651
44459
  }), rest.proFormFieldKey || ((_rest$name4 = rest.name) === null || _rest$name4 === void 0 ? void 0 : _rest$name4.toString()));
45652
44460
  };
45653
44461
 
45654
- /* harmony default export */ var components_FormItem = (ProFormItem);
44462
+ /* harmony default export */ var FormItem = (ProFormItem);
45655
44463
  ;// CONCATENATED MODULE: ./packages/form/es/components/Group/style.js
45656
44464
 
45657
44465
 
@@ -48767,7 +47575,7 @@ function StepsForm(props) {
48767
47575
  return _context.abrupt("return");
48768
47576
  case 3:
48769
47577
  setLoading(true);
48770
- values = merge.apply(void 0, [{}].concat(toConsumableArray_toConsumableArray(Array.from(formDataRef.current.values()))));
47578
+ values = merge_merge.apply(void 0, [{}].concat(toConsumableArray_toConsumableArray(Array.from(formDataRef.current.values()))));
48771
47579
  _context.prev = 5;
48772
47580
  _context.next = 8;
48773
47581
  return onFinish(values);
@@ -50764,7 +49572,7 @@ function ProForm(props) {
50764
49572
  }
50765
49573
  ProForm.Group = components_Group;
50766
49574
  ProForm.useForm = external_antd_.Form.useForm;
50767
- ProForm.Item = components_FormItem;
49575
+ ProForm.Item = FormItem;
50768
49576
  ProForm.useWatch = external_antd_.Form.useWatch;
50769
49577
  ProForm.ErrorList = external_antd_.Form.ErrorList;
50770
49578
  ProForm.Provider = external_antd_.Form.Provider;
@@ -52745,75 +51553,6 @@ var GridContent = function GridContent(props) {
52745
51553
  }));
52746
51554
  };
52747
51555
 
52748
- ;// CONCATENATED MODULE: ./packages/layout/es/context/ProLayoutContext.js
52749
-
52750
-
52751
-
52752
-
52753
- var getLayoutDesignToken = function getLayoutDesignToken(designTokens, antdToken) {
52754
- var _finalDesignTokens$si, _finalDesignTokens$pa, _finalDesignTokens$pa2;
52755
- var finalDesignTokens = objectSpread2_objectSpread2({}, designTokens);
52756
- return objectSpread2_objectSpread2(objectSpread2_objectSpread2({
52757
- bgLayout: 'linear-gradient(#fff, #f7f8fa 28%)',
52758
- colorTextAppListIcon: '#666',
52759
- appListIconHoverBgColor: finalDesignTokens === null || finalDesignTokens === void 0 ? void 0 : (_finalDesignTokens$si = finalDesignTokens.sider) === null || _finalDesignTokens$si === void 0 ? void 0 : _finalDesignTokens$si.colorBgMenuItemSelected,
52760
- colorBgAppListIconHover: 'rgba(0, 0, 0, 0.04)',
52761
- colorTextAppListIconHover: antdToken.colorTextBase
52762
- }, finalDesignTokens), {}, {
52763
- header: objectSpread2_objectSpread2({
52764
- colorBgHeader: 'rgba(240, 242, 245, 0.4)',
52765
- colorHeaderTitle: antdToken.colorText,
52766
- colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
52767
- colorBgMenuItemSelected: 'transparent',
52768
- colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
52769
- colorBgRightActionsItemHover: setAlpha(antdToken.colorTextBase, 0.03),
52770
- colorTextRightActionsItem: antdToken.colorTextTertiary,
52771
- heightLayoutHeader: 56,
52772
- colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
52773
- colorTextMenuSecondary: antdToken.colorTextTertiary,
52774
- colorTextMenuTitle: antdToken.colorText,
52775
- colorTextMenuActive: antdToken.colorText
52776
- }, finalDesignTokens.header),
52777
- sider: objectSpread2_objectSpread2({
52778
- paddingInlineLayoutMenu: 8,
52779
- paddingBlockLayoutMenu: 8,
52780
- colorBgCollapsedButton: '#fff',
52781
- colorTextCollapsedButtonHover: antdToken.colorTextSecondary,
52782
- colorTextCollapsedButton: setAlpha(antdToken.colorTextBase, 0.25),
52783
- colorMenuBackground: 'transparent',
52784
- colorBgMenuItemCollapsedHover: 'rgba(90, 75, 75, 0.03)',
52785
- colorBgMenuItemCollapsedSelected: setAlpha(antdToken.colorTextBase, 0.04),
52786
- colorMenuItemDivider: setAlpha(antdToken.colorTextBase, 0.06),
52787
- colorBgMenuItemHover: setAlpha(antdToken.colorTextBase, 0.03),
52788
- colorBgMenuItemSelected: setAlpha(antdToken.colorTextBase, 0.04),
52789
- colorTextMenuSelected: setAlpha(antdToken.colorTextBase, 0.95),
52790
- colorTextMenuActive: antdToken.colorText,
52791
- colorTextMenu: setAlpha(antdToken.colorTextBase, 0.65),
52792
- colorTextMenuSecondary: antdToken.colorTextTertiary,
52793
- colorTextMenuTitle: antdToken.colorText,
52794
- colorTextSubMenuSelected: setAlpha(antdToken.colorTextBase, 0.95)
52795
- }, finalDesignTokens.sider),
52796
- pageContainer: objectSpread2_objectSpread2({
52797
- colorBgPageContainer: 'transparent',
52798
- paddingInlinePageContainerContent: ((_finalDesignTokens$pa = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa === void 0 ? void 0 : _finalDesignTokens$pa.marginInlinePageContainerContent) || 40,
52799
- paddingBlockPageContainerContent: ((_finalDesignTokens$pa2 = finalDesignTokens.pageContainer) === null || _finalDesignTokens$pa2 === void 0 ? void 0 : _finalDesignTokens$pa2.marginBlockPageContainerContent) || 24,
52800
- colorBgPageContainerFixed: '#fff'
52801
- }, finalDesignTokens.pageContainer)
52802
- });
52803
- };
52804
- var defaultToken = getLayoutDesignToken({}, {});
52805
- var ProLayoutContext = /*#__PURE__*/external_React_default().createContext(defaultToken);
52806
- var ProLayoutProvider = function ProLayoutProvider(props) {
52807
- var _useToken = useStyle_useToken(),
52808
- token = _useToken.token,
52809
- hashId = _useToken.hashId;
52810
- return (0,jsx_runtime.jsx)(ProLayoutContext.Provider, {
52811
- value: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, getLayoutDesignToken((props === null || props === void 0 ? void 0 : props.token) || {}, token)), {}, {
52812
- hashId: hashId
52813
- }),
52814
- children: props.children
52815
- });
52816
- };
52817
51556
  // EXTERNAL MODULE: ./node_modules/@ant-design/icons/ArrowLeftOutlined.js
52818
51557
  var ArrowLeftOutlined = __webpack_require__(2997);
52819
51558
  var ArrowLeftOutlined_default = /*#__PURE__*/__webpack_require__.n(ArrowLeftOutlined);
@@ -53090,9 +51829,9 @@ var PageHeader = function PageHeader(props) {
53090
51829
  prefixCls: prefixCls
53091
51830
  }), defaultBreadcrumbDom)) !== null && _breadcrumbRender !== void 0 ? _breadcrumbRender : defaultBreadcrumbDom;
53092
51831
  var breadcrumbDom = isBreadcrumbComponent ? breadcrumb : breadcrumbRenderDomFromProps;
53093
- var className = classnames_default()(prefixCls, props.className, customizeClassName, (_classNames = {
51832
+ var className = classnames_default()(prefixCls, customizeClassName, (_classNames = {
53094
51833
  hashId: hashId
53095
- }, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-breadcrumb"), !!breadcrumbDom), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-footer"), !!footer), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-compact"), compact), _classNames));
51834
+ }, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-breadcrumb"), !!breadcrumbDom), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-has-footer"), !!footer), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-compact"), compact), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-ghost"), true), _classNames));
53096
51835
  var title = renderTitle(prefixCls, props, direction, hashId);
53097
51836
  var childDom = children && renderChildren(prefixCls, children, hashId);
53098
51837
  var footerDom = renderFooter(prefixCls, footer, hashId);
@@ -53150,7 +51889,7 @@ var getPixelRatio = function getPixelRatio(context) {
53150
51889
  if (!context) {
53151
51890
  return 1;
53152
51891
  }
53153
- var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1;
51892
+ var backingStore = context.backingStorePixelRatio || context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || 1;
53154
51893
  return (window.devicePixelRatio || 1) / backingStore;
53155
51894
  };
53156
51895
  var WaterMark = function WaterMark(props) {
@@ -53266,8 +52005,6 @@ var WaterMark = function WaterMark(props) {
53266
52005
 
53267
52006
 
53268
52007
 
53269
-
53270
-
53271
52008
  var _map = [576, 768, 992, 1200].map(function (bp) {
53272
52009
  return "@media (min-width: ".concat(bp, "px)");
53273
52010
  }),
@@ -53277,23 +52014,24 @@ var _map = [576, 768, 992, 1200].map(function (bp) {
53277
52014
  lg = _map2[2],
53278
52015
  xl = _map2[3];
53279
52016
  var genPageContainerStyle = function genPageContainerStyle(token) {
53280
- var _extraContent, _token$componentCls;
52017
+ var _token$layout, _token$layout$pageCon, _token$layout2, _token$layout2$pageCo, _token$layout3, _token$layout3$pageCo, _token$layout$pageCon2, _token$layout4, _token$layout4$pageCo, _token$layout5, _token$layout5$pageCo, _token$layout6, _token$layout6$pageCo, _token$layout$pageCon3, _token$layout7, _token$layout7$pageCo, _extraContent, _token$componentCls;
53281
52018
  return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
53282
52019
  position: 'relative',
53283
52020
  '&-children-content': {
53284
- paddingBlock: token.paddingBlockPageContainerContent,
53285
- paddingInline: token.paddingInlinePageContainerContent
52021
+ paddingBlock: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$pageCon = _token$layout.pageContainer) === null || _token$layout$pageCon === void 0 ? void 0 : _token$layout$pageCon.paddingBlockPageContainerContent,
52022
+ paddingInline: (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$pageCo = _token$layout2.pageContainer) === null || _token$layout2$pageCo === void 0 ? void 0 : _token$layout2$pageCo.paddingInlinePageContainerContent
53286
52023
  },
53287
52024
  '&-affix': defineProperty_defineProperty({}, "".concat(token.antCls, "-affix"), defineProperty_defineProperty({}, "".concat(token.componentCls, "-warp"), {
53288
- backgroundColor: token.colorBgPageContainerFixed,
52025
+ backgroundColor: (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$pageCo = _token$layout3.pageContainer) === null || _token$layout3$pageCo === void 0 ? void 0 : _token$layout3$pageCo.colorBgPageContainerFixed,
52026
+ transition: 'background-color 0.3s',
53289
52027
  boxShadow: '0 2px 8px #f0f1f2'
53290
52028
  }))
53291
52029
  }, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
53292
- paddingBlockEnd: token.paddingBlockPageContainerContent / 2,
53293
- paddingInlineStart: token.paddingInlinePageContainerContent,
53294
- paddingInlineEnd: token.paddingInlinePageContainerContent
52030
+ paddingBlockEnd: ((_token$layout$pageCon2 = (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$pageCo = _token$layout4.pageContainer) === null || _token$layout4$pageCo === void 0 ? void 0 : _token$layout4$pageCo.paddingBlockPageContainerContent) !== null && _token$layout$pageCon2 !== void 0 ? _token$layout$pageCon2 : 40) / 2,
52031
+ paddingInlineStart: (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$pageCo = _token$layout5.pageContainer) === null || _token$layout5$pageCo === void 0 ? void 0 : _token$layout5$pageCo.paddingInlinePageContainerContent,
52032
+ paddingInlineEnd: (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$pageCo = _token$layout6.pageContainer) === null || _token$layout6$pageCo === void 0 ? void 0 : _token$layout6$pageCo.paddingInlinePageContainerContent
53295
52033
  }, "& ~ ".concat(token.proComponentsCls, "-grid-content"), defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-page-container-children-content"), {
53296
- paddingBlock: token.paddingBlockPageContainerContent / 3
52034
+ paddingBlock: ((_token$layout$pageCon3 = (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$pageCo = _token$layout7.pageContainer) === null || _token$layout7$pageCo === void 0 ? void 0 : _token$layout7$pageCo.paddingBlockPageContainerContent) !== null && _token$layout$pageCon3 !== void 0 ? _token$layout$pageCon3 : 24) / 3
53297
52035
  }))), defineProperty_defineProperty(_token$componentCls, '&-detail', defineProperty_defineProperty({
53298
52036
  display: 'flex'
53299
52037
  }, sm, {
@@ -53325,16 +52063,12 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
53325
52063
  }), _extraContent)), _token$componentCls));
53326
52064
  };
53327
52065
  function PageContainer_style_useStyle(prefixCls, componentsToken) {
53328
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
53329
- pageContainer = _useContext.pageContainer;
53330
52066
  return useStyle('PageContainer', function (token) {
53331
- var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
52067
+ var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
53332
52068
  componentCls: ".".concat(prefixCls)
53333
- }, pageContainer), componentsToken);
52069
+ }, componentsToken);
53334
52070
  return [genPageContainerStyle(proCardToken)];
53335
- },
53336
- // 触发一下更新
53337
- componentsToken);
52071
+ });
53338
52072
  }
53339
52073
  ;// CONCATENATED MODULE: ./packages/layout/es/components/PageContainer/index.js
53340
52074
 
@@ -53355,7 +52089,6 @@ var PageContainer_excluded = ["title", "content", "pageHeaderRender", "header",
53355
52089
 
53356
52090
 
53357
52091
 
53358
-
53359
52092
  function genLoading(spinProps) {
53360
52093
  if (typeof_typeof(spinProps) === 'object') {
53361
52094
  return spinProps;
@@ -53500,7 +52233,7 @@ var memoRenderPageHeader = function memoRenderPageHeader(props) {
53500
52233
  }));
53501
52234
  };
53502
52235
  var PageContainer = function PageContainer(props) {
53503
- var _restProps$header2, _classNames;
52236
+ var _restProps$header2, _token$layout2, _token$layout2$pageCo, _classNames, _token$layout3, _token$layout3$header;
53504
52237
  var children = props.children,
53505
52238
  _props$loading = props.loading,
53506
52239
  loading = _props$loading === void 0 ? false : _props$loading,
@@ -53530,8 +52263,8 @@ var PageContainer = function PageContainer(props) {
53530
52263
  };
53531
52264
  // eslint-disable-next-line react-hooks/exhaustive-deps
53532
52265
  }, []);
53533
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
53534
- pageContainer = _useContext.pageContainer;
52266
+ var _useContext = (0,external_React_.useContext)(ProProvider),
52267
+ token = _useContext.token;
53535
52268
  var _useContext2 = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
53536
52269
  getPrefixCls = _useContext2.getPrefixCls;
53537
52270
  var prefixCls = props.prefixCls || getPrefixCls('pro');
@@ -53567,6 +52300,7 @@ var PageContainer = function PageContainer(props) {
53567
52300
  return spinProps.spinning ? (0,jsx_runtime.jsx)(PageLoading, objectSpread2_objectSpread2({}, spinProps)) : null;
53568
52301
  }, [loading]);
53569
52302
  var content = (0,external_React_.useMemo)(function () {
52303
+ var _token$layout, _token$layout$pageCon;
53570
52304
  return children ? (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
53571
52305
  children: [(0,jsx_runtime.jsx)("div", {
53572
52306
  className: classnames_default()("".concat(basePageContainer, "-children-content ").concat(hashId)),
@@ -53578,11 +52312,11 @@ var PageContainer = function PageContainer(props) {
53578
52312
  }), value.hasFooterToolbar && (0,jsx_runtime.jsx)("div", {
53579
52313
  style: {
53580
52314
  height: 64,
53581
- marginBlockStart: pageContainer.paddingBlockPageContainerContent
52315
+ marginBlockStart: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$pageCon = _token$layout.pageContainer) === null || _token$layout$pageCon === void 0 ? void 0 : _token$layout$pageCon.paddingBlockPageContainerContent
53582
52316
  }
53583
52317
  })]
53584
52318
  }) : null;
53585
- }, [children, basePageContainer, hashId, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingBlockPageContainerContent, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingInlinePageContainerContent, value.hasFooterToolbar, pageContainer.paddingBlockPageContainerContent]);
52319
+ }, [children, basePageContainer, hashId, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingBlockPageContainerContent, propsToken === null || propsToken === void 0 ? void 0 : propsToken.paddingInlinePageContainerContent, value.hasFooterToolbar, token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$pageCo = _token$layout2.pageContainer) === null || _token$layout2$pageCo === void 0 ? void 0 : _token$layout2$pageCo.paddingBlockPageContainerContent]);
53586
52320
  var renderContentDom = (0,external_React_.useMemo)(function () {
53587
52321
  // 只要loadingDom非空我们就渲染loadingDom,否则渲染内容
53588
52322
  var dom = loadingDom || content;
@@ -53595,7 +52329,6 @@ var PageContainer = function PageContainer(props) {
53595
52329
  return dom;
53596
52330
  }, [props.waterMarkProps, value.waterMarkProps, loadingDom, content]);
53597
52331
  var containerClassName = classnames_default()(basePageContainer, hashId, className, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-footer"), footer), defineProperty_defineProperty(_classNames, "".concat(basePageContainer, "-with-affix"), fixedHeader && pageHeaderDom), _classNames));
53598
- var token = (0,external_React_.useContext)(ProLayoutContext);
53599
52332
  return wrapSSR((0,jsx_runtime.jsxs)(ConfigProviderWrap, {
53600
52333
  children: [(0,jsx_runtime.jsxs)("div", {
53601
52334
  style: style,
@@ -53603,10 +52336,13 @@ var PageContainer = function PageContainer(props) {
53603
52336
  children: [fixedHeader && pageHeaderDom ?
53604
52337
  // 在 hasHeader 且 fixedHeader 的情况下,才需要设置高度
53605
52338
  (0,jsx_runtime.jsx)(external_antd_.Affix, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
53606
- offsetTop: value.hasHeader && value.fixedHeader ? token.header.heightLayoutHeader : 0
52339
+ offsetTop: value.hasHeader && value.fixedHeader ? token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.heightLayoutHeader : 0
53607
52340
  }, affixProps), {}, {
53608
52341
  className: "".concat(basePageContainer, "-affix ").concat(hashId),
53609
- children: pageHeaderDom
52342
+ children: (0,jsx_runtime.jsx)("div", {
52343
+ className: "".concat(basePageContainer, "-warp ").concat(hashId),
52344
+ children: pageHeaderDom
52345
+ })
53610
52346
  })) : pageHeaderDom, renderContentDom && (0,jsx_runtime.jsx)(GridContent, {
53611
52347
  children: renderContentDom
53612
52348
  })]
@@ -53774,19 +52510,18 @@ var DefaultFooter = function DefaultFooter(_ref) {
53774
52510
 
53775
52511
 
53776
52512
 
53777
-
53778
-
53779
52513
  var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
52514
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$layout3, _token$layout3$header;
53780
52515
  return defineProperty_defineProperty({}, token.proLayoutCls, defineProperty_defineProperty({}, ".ant-layout-header".concat(token.componentCls), {
53781
- height: token.ProLayoutHeaderHeaderHeight,
53782
- lineHeight: "".concat(token.ProLayoutHeaderHeaderHeight, "px"),
52516
+ height: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
52517
+ lineHeight: "".concat((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56, "px"),
53783
52518
  // hitu 用了这个属性,不能删除哦 @南取
53784
52519
  zIndex: 19,
53785
52520
  width: '100%',
53786
52521
  paddingBlock: 0,
53787
52522
  paddingInline: 8,
53788
52523
  borderBlockEnd: "1px solid ".concat(token.colorSplit),
53789
- backgroundColor: token.colorBgHeader || 'rgba(255, 255, 255, 0.4)',
52524
+ backgroundColor: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.colorBgHeader) || 'rgba(255, 255, 255, 0.4)',
53790
52525
  WebkitBackdropFilter: 'blur(8px)',
53791
52526
  backdropFilter: 'blur(8px)',
53792
52527
  '&-fixed-header': {
@@ -53818,14 +52553,11 @@ var genProLayoutHeaderStyle = function genProLayoutHeaderStyle(token) {
53818
52553
  }));
53819
52554
  };
53820
52555
  function header_useStyle(prefixCls, props) {
53821
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
53822
- header = _useContext.header;
53823
52556
  return useStyle('ProLayoutHeader', function (token) {
53824
52557
  var ProLayoutHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
53825
52558
  componentCls: ".".concat(prefixCls),
53826
- proLayoutCls: ".".concat(props.proLayoutCls),
53827
- ProLayoutHeaderHeaderHeight: header.heightLayoutHeader
53828
- }, header);
52559
+ proLayoutCls: ".".concat(props.proLayoutCls)
52560
+ });
53829
52561
  return [genProLayoutHeaderStyle(ProLayoutHeaderToken)];
53830
52562
  });
53831
52563
  }
@@ -54215,10 +52947,8 @@ var genAppsLogoComponentsSimpleListStyle = function genAppsLogoComponentsSimpleL
54215
52947
 
54216
52948
 
54217
52949
 
54218
-
54219
-
54220
52950
  var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
54221
- var _popover;
52951
+ var _token$layout, _token$layout2, _token$layout3, _token$layout4, _token$layout5, _popover;
54222
52952
  return defineProperty_defineProperty({}, token.componentCls, {
54223
52953
  '&-icon': {
54224
52954
  display: 'inline-flex',
@@ -54231,14 +52961,14 @@ var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
54231
52961
  height: 28,
54232
52962
  width: 28,
54233
52963
  cursor: 'pointer',
54234
- color: token.colorTextAppListIcon,
52964
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : _token$layout.colorTextAppListIcon,
54235
52965
  '&:hover': {
54236
- color: token.colorTextAppListIconHover,
54237
- backgroundColor: token.colorBgAppListIconHover
52966
+ color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : _token$layout2.colorTextAppListIconHover,
52967
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : _token$layout3.colorBgAppListIconHover
54238
52968
  },
54239
52969
  '&-active': {
54240
- color: token.colorTextAppListIconHover,
54241
- backgroundColor: token.colorBgAppListIconHover
52970
+ color: token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : _token$layout4.colorTextAppListIconHover,
52971
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : _token$layout5.colorBgAppListIconHover
54242
52972
  }
54243
52973
  },
54244
52974
  '&-popover': (_popover = {}, defineProperty_defineProperty(_popover, "".concat(token.antCls, "-popover-arrow"), {
@@ -54252,11 +52982,10 @@ var genAppsLogoComponentsStyle = function genAppsLogoComponentsStyle(token) {
54252
52982
  });
54253
52983
  };
54254
52984
  function AppsLogoComponents_style_useStyle(prefixCls) {
54255
- var proToken = (0,external_React_.useContext)(ProLayoutContext);
54256
52985
  return useStyle('AppsLogoComponents', function (token) {
54257
52986
  var proCardToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
54258
52987
  componentCls: ".".concat(prefixCls)
54259
- }, proToken);
52988
+ });
54260
52989
  return [genAppsLogoComponentsStyle(proCardToken)];
54261
52990
  });
54262
52991
  }
@@ -54385,9 +53114,8 @@ function ArrowSvgIcon() {
54385
53114
 
54386
53115
 
54387
53116
 
54388
-
54389
-
54390
53117
  var genSiderMenuStyle = function genSiderMenuStyle(token) {
53118
+ var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider;
54391
53119
  return defineProperty_defineProperty({}, token.componentCls, {
54392
53120
  position: 'absolute',
54393
53121
  insetBlockStart: '18px',
@@ -54403,11 +53131,11 @@ var genSiderMenuStyle = function genSiderMenuStyle(token) {
54403
53131
  alignItems: 'center',
54404
53132
  justifyContent: 'center',
54405
53133
  cursor: 'pointer',
54406
- color: token.colorTextCollapsedButton,
54407
- backgroundColor: token.colorBgCollapsedButton,
53134
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorTextCollapsedButton,
53135
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorBgCollapsedButton,
54408
53136
  boxShadow: '0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)',
54409
53137
  '&:hover': {
54410
- color: token.colorTextCollapsedButtonHover,
53138
+ color: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextCollapsedButtonHover,
54411
53139
  boxShadow: '0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)'
54412
53140
  },
54413
53141
  '.anticon': {
@@ -54425,12 +53153,10 @@ var genSiderMenuStyle = function genSiderMenuStyle(token) {
54425
53153
  });
54426
53154
  };
54427
53155
  function CollapsedIcon_style_useStyle(prefixCls) {
54428
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
54429
- sider = _useContext.sider;
54430
53156
  return useStyle('SiderMenuCollapsedIcon', function (token) {
54431
53157
  var siderMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
54432
53158
  componentCls: ".".concat(prefixCls)
54433
- }, sider);
53159
+ });
54434
53160
  return [genSiderMenuStyle(siderMenuToken)];
54435
53161
  });
54436
53162
  }
@@ -54660,10 +53386,8 @@ var MenuCounter = createContainer(useMenuCounter);
54660
53386
 
54661
53387
 
54662
53388
 
54663
-
54664
-
54665
53389
  var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
54666
- var _collapsed, _collapsed2, _$concat2, _$concat4;
53390
+ var _token$layout, _token$layout$sider, _collapsed, _collapsed2, _$concat2, _$concat4;
54667
53391
  return defineProperty_defineProperty({}, "".concat(token.componentCls), (_$concat4 = {
54668
53392
  background: 'transparent',
54669
53393
  border: 'none'
@@ -54672,7 +53396,7 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
54672
53396
  height: 'auto !important',
54673
53397
  marginBlock: '8px !important'
54674
53398
  }), defineProperty_defineProperty(_collapsed, "".concat(token.antCls, "-menu-item-group > ").concat(token.antCls, "-menu-item-group-list > ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title, \n ").concat(token.antCls, "-menu-submenu-selected > ").concat(token.antCls, "-menu-submenu-title"), {
54675
- backgroundColor: token.colorBgMenuItemSelected,
53399
+ backgroundColor: (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected,
54676
53400
  borderRadius: token.radiusBase
54677
53401
  }), defineProperty_defineProperty(_collapsed, "".concat(token.componentCls, "-group"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
54678
53402
  paddingInline: 0
@@ -54735,12 +53459,10 @@ var genProLayoutBaseMenuStyle = function genProLayoutBaseMenuStyle(token) {
54735
53459
  }), _$concat4));
54736
53460
  };
54737
53461
  function menu_useStyle(prefixCls) {
54738
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
54739
- sider = _useContext.sider;
54740
53462
  return useStyle('ProLayoutBaseMenu', function (token) {
54741
53463
  var proLayoutMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
54742
53464
  componentCls: ".".concat(prefixCls)
54743
- }, sider);
53465
+ });
54744
53466
  return [genProLayoutBaseMenuStyle(proLayoutMenuToken)];
54745
53467
  });
54746
53468
  }
@@ -54763,7 +53485,6 @@ function menu_useStyle(prefixCls) {
54763
53485
 
54764
53486
 
54765
53487
 
54766
-
54767
53488
  var IconFont = create({
54768
53489
  scriptUrl: defaultSettings.iconfontUrl
54769
53490
  });
@@ -54826,10 +53547,9 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
54826
53547
  var designToken = _this.props.token;
54827
53548
  var name = _this.getIntlName(item);
54828
53549
  var children = (item === null || item === void 0 ? void 0 : item.children) || (item === null || item === void 0 ? void 0 : item.routes);
54829
- (0,lib_warning["default"])(!(item === null || item === void 0 ? void 0 : item.routes), 'routes 将会废弃,为了保证兼容请使用 children 作为子节点定义方式');
54830
53550
  var menuType = isGroup && level === 0 ? 'group' : undefined;
54831
53551
  if (Array.isArray(children) && children.length > 0) {
54832
- var _this$props2, _this$props3, _classNames, _this$props4, _this$props5, _designToken$sider;
53552
+ var _this$props2, _this$props3, _classNames, _this$props4, _this$props5, _designToken$layout, _designToken$layout$s;
54833
53553
  /** Menu 第一级可以有icon,或者 isGroup 时第二级别也要有 */
54834
53554
  var shouldHasIcon = level === 0 || isGroup && level === 1;
54835
53555
  // get defaultTitle by menuItemRender
@@ -54875,7 +53595,7 @@ var MenuUtil = /*#__PURE__*/_createClass(function MenuUtil(props) {
54875
53595
  borderBlockEnd: 0,
54876
53596
  margin: _this.props.collapsed ? '4px' : '6px 16px',
54877
53597
  marginBlockStart: _this.props.collapsed ? 4 : 8,
54878
- borderColor: designToken === null || designToken === void 0 ? void 0 : (_designToken$sider = designToken.sider) === null || _designToken$sider === void 0 ? void 0 : _designToken$sider.colorMenuItemDivider
53598
+ borderColor: designToken === null || designToken === void 0 ? void 0 : (_designToken$layout = designToken.layout) === null || _designToken$layout === void 0 ? void 0 : (_designToken$layout$s = _designToken$layout.sider) === null || _designToken$layout$s === void 0 ? void 0 : _designToken$layout$s.colorMenuItemDivider
54879
53599
  }
54880
53600
  } : undefined].filter(Boolean);
54881
53601
  }
@@ -55008,7 +53728,8 @@ var BaseMenu = function BaseMenu(props) {
55008
53728
  onSelect = props.onSelect,
55009
53729
  menuRenderType = props.menuRenderType,
55010
53730
  propsOpenKeys = props.openKeys;
55011
- var designToken = (0,external_React_.useContext)(ProLayoutContext);
53731
+ var _useContext = (0,external_React_.useContext)(ProProvider),
53732
+ designToken = _useContext.token;
55012
53733
  var baseClassName = "".concat(prefixCls, "-base-menu");
55013
53734
  // 用于减少 defaultOpenKeys 计算的组件
55014
53735
  var defaultOpenKeysRef = (0,external_React_.useRef)([]);
@@ -55196,7 +53917,7 @@ var renderLogoAndTitle = function renderLogoAndTitle(props) {
55196
53917
  }, "title");
55197
53918
  };
55198
53919
  var SiderMenu = function SiderMenu(props) {
55199
- var _classNames, _props$menu2;
53920
+ var _classNames, _props$menu2, _process$env$NODE_ENV, _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider;
55200
53921
  var collapsed = props.collapsed,
55201
53922
  originCollapsed = props.originCollapsed,
55202
53923
  fixSiderbar = props.fixSiderbar,
@@ -55359,8 +54080,8 @@ var SiderMenu = function SiderMenu(props) {
55359
54080
  children: menuFooterDom
55360
54081
  })]
55361
54082
  });
55362
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
55363
- sider = _useContext.sider;
54083
+ var _useContext = (0,external_React_.useContext)(ProProvider),
54084
+ token = _useContext.token;
55364
54085
  return (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
55365
54086
  children: [fixSiderbar && !isMobile && !hideMenuWhenCollapsedClassName && (0,jsx_runtime.jsx)("div", {
55366
54087
  style: objectSpread2_objectSpread2({
@@ -55390,18 +54111,18 @@ var SiderMenu = function SiderMenu(props) {
55390
54111
  , {
55391
54112
  // @ts-ignore
55392
54113
  theme: {
55393
- hashed: false,
54114
+ hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
55394
54115
  components: {
55395
54116
  Menu: {
55396
54117
  radiusItem: 4,
55397
- colorItemBgSelected: sider.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
55398
- colorItemBgActive: sider.colorBgMenuItemHover || 'rgba(0, 0, 0, 0.04)',
54118
+ colorItemBgSelected: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
54119
+ colorItemBgActive: (token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorBgMenuItemHover) || 'rgba(0, 0, 0, 0.04)',
55399
54120
  colorActiveBarWidth: 0,
55400
54121
  colorActiveBarHeight: 0,
55401
54122
  colorActiveBarBorderSize: 0,
55402
- colorItemText: sider.colorTextMenu || 'rgba(0, 0, 0, 0.65)',
55403
- colorItemTextHover: sider.colorTextMenuActive || 'rgba(0, 0, 0, 0.85)',
55404
- colorItemTextSelected: sider.colorTextMenuSelected || 'rgba(0, 0, 0, 1)',
54123
+ colorItemText: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextMenu) || 'rgba(0, 0, 0, 0.65)',
54124
+ colorItemTextHover: (token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenuActive) || 'rgba(0, 0, 0, 0.85)',
54125
+ colorItemTextSelected: (token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorTextMenuSelected) || 'rgba(0, 0, 0, 1)',
55405
54126
  colorItemBg: 'transparent',
55406
54127
  colorSubItemBg: 'transparent'
55407
54128
  }
@@ -55425,9 +54146,8 @@ var SiderMenu = function SiderMenu(props) {
55425
54146
 
55426
54147
 
55427
54148
 
55428
-
55429
-
55430
54149
  var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54150
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
55431
54151
  return defineProperty_defineProperty({}, token.componentCls, {
55432
54152
  '&-header-actions': {
55433
54153
  display: 'flex',
@@ -55438,7 +54158,7 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
55438
54158
  justifyContent: 'center',
55439
54159
  paddingBlock: 0,
55440
54160
  paddingInline: 2,
55441
- color: token.colorTextRightActionsItem,
54161
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorTextRightActionsItem,
55442
54162
  fontSize: '16px',
55443
54163
  cursor: 'pointer',
55444
54164
  borderRadius: token.radiusBase,
@@ -55447,7 +54167,7 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
55447
54167
  paddingBlock: 6,
55448
54168
  borderRadius: token.radiusBase,
55449
54169
  '&:hover': {
55450
- backgroundColor: token.colorBgRightActionsItemHover
54170
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorBgRightActionsItemHover
55451
54171
  }
55452
54172
  }
55453
54173
  },
@@ -55477,12 +54197,10 @@ var genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
55477
54197
  });
55478
54198
  };
55479
54199
  function rightContentStyle_useStyle(prefixCls) {
55480
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
55481
- header = _useContext.header;
55482
54200
  return useStyle('RightContent', function (token) {
55483
54201
  var proToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
55484
54202
  componentCls: ".".concat(prefixCls)
55485
- }, header);
54203
+ });
55486
54204
  return [genTopNavHeaderStyle(proToken)];
55487
54205
  });
55488
54206
  }
@@ -55618,9 +54336,9 @@ var RightContent = function RightContent(_ref) {
55618
54336
 
55619
54337
 
55620
54338
 
55621
-
55622
-
55623
54339
  var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
54340
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
54341
+ console.log(token.layout);
55624
54342
  return defineProperty_defineProperty({}, token.componentCls, {
55625
54343
  position: 'relative',
55626
54344
  width: '100%',
@@ -55668,7 +54386,7 @@ var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
55668
54386
  marginInlineStart: 6,
55669
54387
  fontWeight: '600',
55670
54388
  fontSize: '16px',
55671
- color: token === null || token === void 0 ? void 0 : token.colorHeaderTitle,
54389
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorHeaderTitle,
55672
54390
  verticalAlign: 'top'
55673
54391
  }
55674
54392
  },
@@ -55678,17 +54396,15 @@ var style_genTopNavHeaderStyle = function genTopNavHeaderStyle(token) {
55678
54396
  alignItems: 'center',
55679
54397
  paddingInline: 6,
55680
54398
  paddingBlock: 6,
55681
- lineHeight: "".concat(token.heightLayoutHeader - 12, "px")
54399
+ lineHeight: "".concat(((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56) - 12, "px")
55682
54400
  }
55683
54401
  });
55684
54402
  };
55685
54403
  function TopNavHeader_style_useStyle(prefixCls) {
55686
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
55687
- header = _useContext.header;
55688
54404
  return useStyle('ProLayoutTopNavHeader', function (token) {
55689
54405
  var topNavHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
55690
54406
  componentCls: ".".concat(prefixCls)
55691
- }, header);
54407
+ });
55692
54408
  return [style_genTopNavHeaderStyle(topNavHeaderToken)];
55693
54409
  });
55694
54410
  }
@@ -55706,6 +54422,7 @@ function TopNavHeader_style_useStyle(prefixCls) {
55706
54422
 
55707
54423
 
55708
54424
  var TopNavHeader = function TopNavHeader(props) {
54425
+ var _token$layout9, _token$layout9$header, _token$layout10, _token$layout10$heade, _token$layout11, _token$layout11$heade, _token$layout12, _token$layout12$heade, _token$layout13, _token$layout13$heade, _token$layout14, _token$layout14$heade;
55709
54426
  var ref = (0,external_React_.useRef)(null);
55710
54427
  var onMenuHeaderClick = props.onMenuHeaderClick,
55711
54428
  contentWidth = props.contentWidth,
@@ -55717,8 +54434,8 @@ var TopNavHeader = function TopNavHeader(props) {
55717
54434
  actionsRender = props.actionsRender;
55718
54435
  var _useContext = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext),
55719
54436
  getPrefixCls = _useContext.getPrefixCls;
55720
- var _useContext2 = (0,external_React_.useContext)(ProLayoutContext),
55721
- header = _useContext2.header;
54437
+ var _useContext2 = (0,external_React_.useContext)(ProProvider),
54438
+ token = _useContext2.token;
55722
54439
  var prefixCls = "".concat(props.prefixCls || getPrefixCls('pro'), "-top-nav-header");
55723
54440
  var _useStyle = TopNavHeader_style_useStyle(prefixCls),
55724
54441
  wrapSSR = _useStyle.wrapSSR,
@@ -55727,24 +54444,24 @@ var TopNavHeader = function TopNavHeader(props) {
55727
54444
  collapsed: false
55728
54445
  }), layout === 'mix' ? 'headerTitleRender' : undefined);
55729
54446
  var contentDom = (0,external_React_.useMemo)(function () {
55730
- var _process$env$NODE_ENV, _props$menuProps;
54447
+ var _process$env$NODE_ENV, _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$layout3, _token$layout3$header, _token$layout4, _token$layout4$header, _token$layout5, _token$layout5$header, _token$layout6, _token$layout6$header, _token$layout7, _token$layout7$header, _token$layout8, _token$layout8$header, _props$menuProps;
55731
54448
  var defaultDom = (0,jsx_runtime.jsx)(external_antd_.ConfigProvider, {
55732
54449
  theme: {
55733
54450
  hashed: ((_process$env$NODE_ENV = "production") === null || _process$env$NODE_ENV === void 0 ? void 0 : _process$env$NODE_ENV.toLowerCase()) !== 'test',
55734
54451
  components: {
55735
54452
  Menu: {
55736
- colorItemBg: header.colorBgHeader || 'transparent',
55737
- colorSubItemBg: header.colorBgHeader || 'transparent',
54453
+ colorItemBg: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.colorBgHeader) || 'transparent',
54454
+ colorSubItemBg: (token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorBgHeader) || 'transparent',
55738
54455
  radiusItem: 4,
55739
- colorItemBgSelected: header.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
55740
- colorItemBgActive: header.colorBgMenuItemHover || 'rgba(0, 0, 0, 0.04)',
55741
- colorItemBgSelectedHorizontal: header.colorBgMenuItemSelected || 'rgba(0, 0, 0, 0.04)',
54456
+ colorItemBgSelected: (token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$header = _token$layout3.header) === null || _token$layout3$header === void 0 ? void 0 : _token$layout3$header.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
54457
+ colorItemBgActive: (token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$header = _token$layout4.header) === null || _token$layout4$header === void 0 ? void 0 : _token$layout4$header.colorBgMenuItemHover) || 'rgba(0, 0, 0, 0.04)',
54458
+ colorItemBgSelectedHorizontal: (token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$header = _token$layout5.header) === null || _token$layout5$header === void 0 ? void 0 : _token$layout5$header.colorBgMenuItemSelected) || 'rgba(0, 0, 0, 0.04)',
55742
54459
  colorActiveBarWidth: 0,
55743
54460
  colorActiveBarHeight: 0,
55744
54461
  colorActiveBarBorderSize: 0,
55745
- colorItemText: header.colorTextMenu || 'rgba(0, 0, 0, 0.65)',
55746
- colorItemTextHover: header.colorTextMenuActive || 'rgba(0, 0, 0, 0.85)',
55747
- colorItemTextSelected: header.colorTextMenuSelected || 'rgba(0, 0, 0, 1)'
54462
+ colorItemText: (token === null || token === void 0 ? void 0 : (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$header = _token$layout6.header) === null || _token$layout6$header === void 0 ? void 0 : _token$layout6$header.colorTextMenu) || 'rgba(0, 0, 0, 0.65)',
54463
+ colorItemTextHover: (token === null || token === void 0 ? void 0 : (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$header = _token$layout7.header) === null || _token$layout7$header === void 0 ? void 0 : _token$layout7$header.colorTextMenuActive) || 'rgba(0, 0, 0, 0.85)',
54464
+ colorItemTextSelected: (token === null || token === void 0 ? void 0 : (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$header = _token$layout8.header) === null || _token$layout8$header === void 0 ? void 0 : _token$layout8$header.colorTextMenuSelected) || 'rgba(0, 0, 0, 1)'
55748
54465
  }
55749
54466
  }
55750
54467
  },
@@ -55765,7 +54482,7 @@ var TopNavHeader = function TopNavHeader(props) {
55765
54482
  return headerContentRender(props, defaultDom);
55766
54483
  }
55767
54484
  return defaultDom;
55768
- }, [hashId, header.colorBgHeader, header.colorBgMenuItemHover, header.colorBgMenuItemSelected, header.colorTextMenu, header.colorTextMenuActive, header.colorTextMenuSelected, headerContentRender, prefixCls, props]);
54485
+ }, [hashId, token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$header = _token$layout9.header) === null || _token$layout9$header === void 0 ? void 0 : _token$layout9$header.colorBgHeader, token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$heade = _token$layout10.header) === null || _token$layout10$heade === void 0 ? void 0 : _token$layout10$heade.colorBgMenuItemHover, token === null || token === void 0 ? void 0 : (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$heade = _token$layout11.header) === null || _token$layout11$heade === void 0 ? void 0 : _token$layout11$heade.colorBgMenuItemSelected, token === null || token === void 0 ? void 0 : (_token$layout12 = token.layout) === null || _token$layout12 === void 0 ? void 0 : (_token$layout12$heade = _token$layout12.header) === null || _token$layout12$heade === void 0 ? void 0 : _token$layout12$heade.colorTextMenu, token === null || token === void 0 ? void 0 : (_token$layout13 = token.layout) === null || _token$layout13 === void 0 ? void 0 : (_token$layout13$heade = _token$layout13.header) === null || _token$layout13$heade === void 0 ? void 0 : _token$layout13$heade.colorTextMenuActive, token === null || token === void 0 ? void 0 : (_token$layout14 = token.layout) === null || _token$layout14 === void 0 ? void 0 : (_token$layout14$heade = _token$layout14.header) === null || _token$layout14$heade === void 0 ? void 0 : _token$layout14$heade.colorTextMenuSelected, headerContentRender, prefixCls, props]);
55769
54486
  return wrapSSR((0,jsx_runtime.jsx)("div", {
55770
54487
  className: classnames_default()(prefixCls, hashId, propsClassName, defineProperty_defineProperty({}, "".concat(prefixCls, "-light"), true)),
55771
54488
  style: style,
@@ -55799,10 +54516,8 @@ var TopNavHeader = function TopNavHeader(props) {
55799
54516
 
55800
54517
 
55801
54518
 
55802
-
55803
-
55804
54519
  var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
55805
- var _token$componentCls;
54520
+ var _token$layout, _token$layout$header, _token$layout2, _token$layout2$header, _token$componentCls;
55806
54521
  return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
55807
54522
  position: 'relative',
55808
54523
  background: 'transparent',
@@ -55810,7 +54525,7 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
55810
54525
  alignItems: 'center',
55811
54526
  marginBlock: 0,
55812
54527
  marginInline: 16,
55813
- height: token.heightLayoutHeader,
54528
+ height: ((_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
55814
54529
  boxSizing: 'border-box',
55815
54530
  '> a': {
55816
54531
  height: '100%'
@@ -55819,7 +54534,7 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
55819
54534
  marginInlineEnd: 16
55820
54535
  }), defineProperty_defineProperty(_token$componentCls, '&-collapsed-button', {
55821
54536
  minHeight: '22px',
55822
- color: token.colorHeaderTitle,
54537
+ color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.colorHeaderTitle,
55823
54538
  fontSize: '22px',
55824
54539
  marginInlineStart: '16px'
55825
54540
  }), defineProperty_defineProperty(_token$componentCls, '&-logo', {
@@ -55856,13 +54571,9 @@ var genGlobalHeaderStyle = function genGlobalHeaderStyle(token) {
55856
54571
  }), _token$componentCls));
55857
54572
  };
55858
54573
  function GlobalHeader_style_useStyle(prefixCls) {
55859
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
55860
- header = _useContext.header;
55861
54574
  return useStyle('ProLayoutGlobalHeader', function (token) {
55862
54575
  var GlobalHeaderToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
55863
- componentCls: ".".concat(prefixCls),
55864
- heightLayoutHeader: header.heightLayoutHeader,
55865
- colorHeaderTitle: header.colorHeaderTitle
54576
+ componentCls: ".".concat(prefixCls)
55866
54577
  });
55867
54578
  return [genGlobalHeaderStyle(GlobalHeaderToken)];
55868
54579
  });
@@ -55977,7 +54688,7 @@ var GlobalHeader = function GlobalHeader(props) {
55977
54688
 
55978
54689
  var Header = external_antd_.Layout.Header;
55979
54690
  var DefaultHeader = function DefaultHeader(props) {
55980
- var _classNames, _process$env$NODE_ENV;
54691
+ var _classNames, _process$env$NODE_ENV, _token$layout, _token$layout$header, _token$layout2, _token$layout2$header;
55981
54692
  var isMobile = props.isMobile,
55982
54693
  fixedHeader = props.fixedHeader,
55983
54694
  propsClassName = props.className,
@@ -55988,8 +54699,8 @@ var DefaultHeader = function DefaultHeader(props) {
55988
54699
  layout = props.layout,
55989
54700
  headerRender = props.headerRender,
55990
54701
  headerContentRender = props.headerContentRender;
55991
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
55992
- header = _useContext.header;
54702
+ var _useContext = (0,external_React_.useContext)(ProProvider),
54703
+ token = _useContext.token;
55993
54704
  var renderContent = (0,external_React_.useCallback)(function () {
55994
54705
  var isTop = layout === 'top';
55995
54706
  var clearMenuData = clearMenuItem(props.menuData || []);
@@ -56038,8 +54749,8 @@ var DefaultHeader = function DefaultHeader(props) {
56038
54749
  },
56039
54750
  children: [needFixedHeader && (0,jsx_runtime.jsx)(Header, {
56040
54751
  style: objectSpread2_objectSpread2({
56041
- height: header.heightLayoutHeader,
56042
- lineHeight: "".concat(header.heightLayoutHeader, "px"),
54752
+ height: (token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$header = _token$layout.header) === null || _token$layout$header === void 0 ? void 0 : _token$layout$header.heightLayoutHeader) || 56,
54753
+ lineHeight: "".concat((token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$header = _token$layout2.header) === null || _token$layout2$header === void 0 ? void 0 : _token$layout2$header.heightLayoutHeader) || 56, "px"),
56043
54754
  backgroundColor: 'transparent',
56044
54755
  zIndex: 19
56045
54756
  }, style)
@@ -57213,7 +55924,7 @@ var initState = function initState(urlParams, settings, onSettingChange) {
57213
55924
  replaceSetting[key] = urlParams[key];
57214
55925
  }
57215
55926
  });
57216
- var newSettings = merge({}, settings, replaceSetting);
55927
+ var newSettings = merge_merge({}, settings, replaceSetting);
57217
55928
  delete newSettings.menu;
57218
55929
  delete newSettings.title;
57219
55930
  delete newSettings.iconfontUrl;
@@ -59445,13 +58156,11 @@ var Logo = function Logo() {
59445
58156
 
59446
58157
 
59447
58158
 
59448
-
59449
-
59450
58159
  var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59451
- var _token$componentCls;
58160
+ var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider, _token$layout6, _token$layout6$sider, _token$layout7, _token$layout7$sider, _token$layout8, _token$layout8$sider, _token$layout9, _token$layout9$header, _token$layout10, _token$layout10$heade, _token$layout11, _token$layout11$sider, _token$componentCls;
59452
58161
  return defineProperty_defineProperty({}, token.proComponentsCls, defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-layout"), defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
59453
58162
  position: 'relative',
59454
- background: token.colorMenuBackground || 'transparent',
58163
+ background: ((_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorMenuBackground) || 'transparent',
59455
58164
  boxSizing: 'border-box',
59456
58165
  '&-menu': {
59457
58166
  position: 'relative',
@@ -59470,8 +58179,8 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59470
58179
  display: 'flex',
59471
58180
  flexDirection: 'column',
59472
58181
  height: '100%',
59473
- paddingInline: token.paddingInlineLayoutMenu,
59474
- paddingBlock: token.paddingBlockLayoutMenu,
58182
+ paddingInline: (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.paddingInlineLayoutMenu,
58183
+ paddingBlock: (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.paddingBlockLayoutMenu,
59475
58184
  borderInlineEnd: "1px solid ".concat(token.colorSplit)
59476
58185
  }), defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-menu"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item-group-title"), {
59477
58186
  fontSize: token.fontSizeSM,
@@ -59483,9 +58192,9 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59483
58192
  justifyContent: 'space-between',
59484
58193
  paddingInline: 12,
59485
58194
  paddingBlock: 16,
59486
- color: token.colorTextMenu,
58195
+ color: (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenu,
59487
58196
  cursor: 'pointer',
59488
- borderBlockEnd: "1px solid ".concat(token.colorMenuItemDivider),
58197
+ borderBlockEnd: "1px solid ".concat((_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorMenuItemDivider),
59489
58198
  '> a': {
59490
58199
  display: 'flex',
59491
58200
  alignItems: 'center',
@@ -59503,7 +58212,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59503
58212
  marginBlock: 0,
59504
58213
  marginInlineEnd: 0,
59505
58214
  marginInlineStart: 6,
59506
- color: token.colorTextMenuTitle,
58215
+ color: (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$sider = _token$layout6.sider) === null || _token$layout6$sider === void 0 ? void 0 : _token$layout6$sider.colorTextMenuTitle,
59507
58216
  fontWeight: 600,
59508
58217
  fontSize: 16,
59509
58218
  lineHeight: '22px',
@@ -59525,7 +58234,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59525
58234
  justifyContent: 'space-between',
59526
58235
  marginBlock: 4,
59527
58236
  marginInline: 0,
59528
- color: token.colorTextMenu,
58237
+ color: (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$sider = _token$layout7.sider) === null || _token$layout7$sider === void 0 ? void 0 : _token$layout7$sider.colorTextMenu,
59529
58238
  '&-collapsed': {
59530
58239
  flexDirection: 'column-reverse',
59531
58240
  paddingBlock: 0,
@@ -59534,7 +58243,7 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59534
58243
  transition: 'font-size 0.3s ease-in-out'
59535
58244
  },
59536
58245
  '&-list': {
59537
- color: token.colorTextMenuSecondary,
58246
+ color: (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$sider = _token$layout8.sider) === null || _token$layout8$sider === void 0 ? void 0 : _token$layout8$sider.colorTextMenuSecondary,
59538
58247
  '&-collapsed': {
59539
58248
  marginBlockEnd: 8,
59540
58249
  animation: 'none'
@@ -59567,8 +58276,8 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59567
58276
  insetInlineStart: "-".concat(token.proLayoutCollapsedWidth - 12, "px"),
59568
58277
  position: 'absolute'
59569
58278
  }), defineProperty_defineProperty(_token$componentCls, '&-mix', {
59570
- height: "calc(100% - ".concat(token.heightLayoutHeader, "px)"),
59571
- insetBlockStart: "".concat(token.heightLayoutHeader, "px")
58279
+ height: "calc(100% - ".concat((token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$header = _token$layout9.header) === null || _token$layout9$header === void 0 ? void 0 : _token$layout9$header.heightLayoutHeader) || 56, "px)"),
58280
+ insetBlockStart: "".concat((token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$heade = _token$layout10.header) === null || _token$layout10$heade === void 0 ? void 0 : _token$layout10$heade.heightLayoutHeader) || 56, "px")
59572
58281
  }), defineProperty_defineProperty(_token$componentCls, '&-extra', {
59573
58282
  marginBlockEnd: 16,
59574
58283
  marginBlock: 0,
@@ -59586,22 +58295,18 @@ var style_genSiderMenuStyle = function genSiderMenuStyle(token) {
59586
58295
  boxShadow: 'none',
59587
58296
  background: 'transparent'
59588
58297
  }), defineProperty_defineProperty(_token$componentCls, '&-footer', {
59589
- color: token.colorTextMenuSecondary,
58298
+ color: (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$sider = _token$layout11.sider) === null || _token$layout11$sider === void 0 ? void 0 : _token$layout11$sider.colorTextMenuSecondary,
59590
58299
  paddingBlockEnd: 16,
59591
58300
  fontSize: token.fontSize
59592
58301
  }), _token$componentCls))));
59593
58302
  };
59594
58303
  function SiderMenu_style_useStyle(prefixCls, _ref2) {
59595
58304
  var proLayoutCollapsedWidth = _ref2.proLayoutCollapsedWidth;
59596
- var _useContext = (0,external_React_.useContext)(ProLayoutContext),
59597
- sider = _useContext.sider,
59598
- header = _useContext.header;
59599
58305
  return useStyle('ProLayoutSiderMenu', function (token) {
59600
58306
  var siderMenuToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
59601
58307
  componentCls: ".".concat(prefixCls),
59602
- proLayoutCollapsedWidth: proLayoutCollapsedWidth,
59603
- heightLayoutHeader: header.heightLayoutHeader
59604
- }, sider);
58308
+ proLayoutCollapsedWidth: proLayoutCollapsedWidth
58309
+ });
59605
58310
  return [style_genSiderMenuStyle(siderMenuToken)];
59606
58311
  });
59607
58312
  }
@@ -59704,8 +58409,6 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
59704
58409
 
59705
58410
 
59706
58411
 
59707
-
59708
-
59709
58412
  /**
59710
58413
  * 主要区别:
59711
58414
  * 需要手动引入 import 'antd/dist/antd.css';
@@ -59714,7 +58417,7 @@ var SiderMenuWrapper = function SiderMenuWrapper(props) {
59714
58417
  * @returns
59715
58418
  */
59716
58419
  var compatibleStyle = function compatibleStyle(token) {
59717
- var _$concat$concat, _$concat5, _$concat6, _$concat8, _$concat9, _token$componentCls, _$concat$concat2, _$concat11, _ref;
58420
+ var _token$layout, _token$layout$sider, _token$layout2, _token$layout2$sider, _token$layout3, _token$layout3$sider, _token$layout4, _token$layout4$sider, _token$layout5, _token$layout5$sider, _token$layout6, _token$layout6$sider, _token$layout7, _token$layout7$sider, _token$layout8, _token$layout8$sider, _token$layout9, _token$layout9$sider, _$concat$concat, _token$layout10, _token$layout10$sider, _token$layout11, _token$layout11$sider, _token$layout12, _token$layout12$sider, _token$layout13, _token$layout13$sider, _token$layout14, _token$layout14$sider, _token$layout15, _token$layout15$heade, _token$layout16, _token$layout16$heade, _token$layout17, _token$layout17$heade, _token$layout18, _token$layout18$heade, _token$layout19, _token$layout19$heade, _$concat5, _$concat6, _token$layout20, _token$layout20$heade, _token$layout21, _token$layout21$heade, _token$layout22, _token$layout22$heade, _token$layout23, _token$layout23$heade, _token$layout24, _token$layout24$heade, _token$layout25, _token$layout25$heade, _$concat8, _$concat9, _token$componentCls, _token$layout26, _token$layout26$sider, _token$layout27, _token$layout27$sider, _token$layout28, _token$layout28$sider, _token$layout29, _token$layout29$sider, _token$layout30, _token$layout30$sider, _$concat$concat2, _$concat11, _ref;
59718
58421
  if (external_antd_.version.startsWith('5')) {
59719
58422
  return {};
59720
58423
  }
@@ -59725,16 +58428,16 @@ var compatibleStyle = function compatibleStyle(token) {
59725
58428
  width: '100%',
59726
58429
  height: '100%'
59727
58430
  }, defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-base-menu"), (_$concat6 = {
59728
- color: token.sider.colorTextMenu
58431
+ color: token === null || token === void 0 ? void 0 : (_token$layout = token.layout) === null || _token$layout === void 0 ? void 0 : (_token$layout$sider = _token$layout.sider) === null || _token$layout$sider === void 0 ? void 0 : _token$layout$sider.colorTextMenu
59729
58432
  }, defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-sub"), {
59730
- color: token.sider.colorTextMenu
58433
+ color: token === null || token === void 0 ? void 0 : (_token$layout2 = token.layout) === null || _token$layout2 === void 0 ? void 0 : (_token$layout2$sider = _token$layout2.sider) === null || _token$layout2$sider === void 0 ? void 0 : _token$layout2$sider.colorTextMenu
59731
58434
  }), defineProperty_defineProperty(_$concat6, "& ".concat(token.antCls, "-layout"), {
59732
58435
  backgroundColor: 'transparent',
59733
58436
  width: '100%'
59734
58437
  }), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu-expand-icon, ").concat(token.antCls, "-menu-submenu-arrow"), {
59735
58438
  color: 'inherit'
59736
58439
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu"), defineProperty_defineProperty({
59737
- color: token.sider.colorTextMenu
58440
+ color: token === null || token === void 0 ? void 0 : (_token$layout3 = token.layout) === null || _token$layout3 === void 0 ? void 0 : (_token$layout3$sider = _token$layout3.sider) === null || _token$layout3$sider === void 0 ? void 0 : _token$layout3$sider.colorTextMenu
59738
58441
  }, "".concat(token.antCls, "-menu-item a"), {
59739
58442
  color: 'inherit'
59740
58443
  })), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-inline"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-selected::after,").concat(token.antCls, "-menu-item-selected::after"), {
@@ -59744,59 +58447,59 @@ var compatibleStyle = function compatibleStyle(token) {
59744
58447
  }), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-item:active, \n ").concat(token.antCls, "-menu-submenu-title:active"), {
59745
58448
  backgroundColor: 'transparent!important'
59746
58449
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-light"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active, \n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
59747
- color: token.sider.colorTextMenuActive,
58450
+ color: token === null || token === void 0 ? void 0 : (_token$layout4 = token.layout) === null || _token$layout4 === void 0 ? void 0 : (_token$layout4$sider = _token$layout4.sider) === null || _token$layout4$sider === void 0 ? void 0 : _token$layout4$sider.colorTextMenuActive,
59748
58451
  borderRadius: token.radiusBase
59749
58452
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
59750
- color: token.sider.colorTextMenuActive
58453
+ color: token === null || token === void 0 ? void 0 : (_token$layout5 = token.layout) === null || _token$layout5 === void 0 ? void 0 : (_token$layout5$sider = _token$layout5.sider) === null || _token$layout5$sider === void 0 ? void 0 : _token$layout5$sider.colorTextMenuActive
59751
58454
  }))), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-horizontal)"), (_$concat$concat = {}, defineProperty_defineProperty(_$concat$concat, "".concat(token.antCls, "-menu-item-selected"), {
59752
- backgroundColor: token.sider.colorBgMenuItemSelected,
58455
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout6 = token.layout) === null || _token$layout6 === void 0 ? void 0 : (_token$layout6$sider = _token$layout6.sider) === null || _token$layout6$sider === void 0 ? void 0 : _token$layout6$sider.colorBgMenuItemSelected,
59753
58456
  borderRadius: token.radiusBase
59754
58457
  }), defineProperty_defineProperty(_$concat$concat, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
59755
- color: token.sider.colorTextMenuActive,
58458
+ color: token === null || token === void 0 ? void 0 : (_token$layout7 = token.layout) === null || _token$layout7 === void 0 ? void 0 : (_token$layout7$sider = _token$layout7.sider) === null || _token$layout7$sider === void 0 ? void 0 : _token$layout7$sider.colorTextMenuActive,
59756
58459
  borderRadius: token.radiusBase,
59757
- backgroundColor: token.sider.colorBgMenuItemHover
58460
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout8 = token.layout) === null || _token$layout8 === void 0 ? void 0 : (_token$layout8$sider = _token$layout8.sider) === null || _token$layout8$sider === void 0 ? void 0 : _token$layout8$sider.colorBgMenuItemHover
59758
58461
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
59759
- color: token.sider.colorTextMenuActive
58462
+ color: token === null || token === void 0 ? void 0 : (_token$layout9 = token.layout) === null || _token$layout9 === void 0 ? void 0 : (_token$layout9$sider = _token$layout9.sider) === null || _token$layout9$sider === void 0 ? void 0 : _token$layout9$sider.colorTextMenuActive
59760
58463
  })), _$concat$concat)), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-item-selected"), {
59761
- color: token.sider.colorTextMenuSelected
58464
+ color: token === null || token === void 0 ? void 0 : (_token$layout10 = token.layout) === null || _token$layout10 === void 0 ? void 0 : (_token$layout10$sider = _token$layout10.sider) === null || _token$layout10$sider === void 0 ? void 0 : _token$layout10$sider.colorTextMenuSelected
59762
58465
  }), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu-selected"), {
59763
- color: token.sider.colorTextMenuSelected
58466
+ color: token === null || token === void 0 ? void 0 : (_token$layout11 = token.layout) === null || _token$layout11 === void 0 ? void 0 : (_token$layout11$sider = _token$layout11.sider) === null || _token$layout11$sider === void 0 ? void 0 : _token$layout11$sider.colorTextMenuSelected
59764
58467
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-inline) ").concat(token.antCls, "-menu-submenu-open"), {
59765
- color: token.sider.colorTextMenuSelected
58468
+ color: token === null || token === void 0 ? void 0 : (_token$layout12 = token.layout) === null || _token$layout12 === void 0 ? void 0 : (_token$layout12$sider = _token$layout12.sider) === null || _token$layout12$sider === void 0 ? void 0 : _token$layout12$sider.colorTextMenuSelected
59766
58469
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-vertical"), defineProperty_defineProperty({}, "".concat(token.antCls, "-menu-submenu-selected"), {
59767
58470
  borderRadius: token.radiusBase,
59768
- color: token.sider.colorTextMenuSelected
58471
+ color: token === null || token === void 0 ? void 0 : (_token$layout13 = token.layout) === null || _token$layout13 === void 0 ? void 0 : (_token$layout13$sider = _token$layout13.sider) === null || _token$layout13$sider === void 0 ? void 0 : _token$layout13$sider.colorTextMenuSelected
59769
58472
  })), defineProperty_defineProperty(_$concat6, "".concat(token.antCls, "-menu-submenu:hover > ").concat(token.antCls, "-menu-submenu-title > ").concat(token.antCls, "-menu-submenu-arrow"), {
59770
- color: token.sider.colorTextMenuActive
58473
+ color: token === null || token === void 0 ? void 0 : (_token$layout14 = token.layout) === null || _token$layout14 === void 0 ? void 0 : (_token$layout14$sider = _token$layout14.sider) === null || _token$layout14$sider === void 0 ? void 0 : _token$layout14$sider.colorTextMenuActive
59771
58474
  }), defineProperty_defineProperty(_$concat6, "&".concat(token.antCls, "-menu-horizontal"), (_$concat5 = {}, defineProperty_defineProperty(_$concat5, "".concat(token.antCls, "-menu-item:hover,\n ").concat(token.antCls, "-menu-submenu:hover,\n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active"), {
59772
58475
  borderRadius: 4,
59773
- color: token.header.colorTextMenuActive,
59774
- backgroundColor: token.header.colorBgMenuItemHover
58476
+ color: token === null || token === void 0 ? void 0 : (_token$layout15 = token.layout) === null || _token$layout15 === void 0 ? void 0 : (_token$layout15$heade = _token$layout15.header) === null || _token$layout15$heade === void 0 ? void 0 : _token$layout15$heade.colorTextMenuActive,
58477
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout16 = token.layout) === null || _token$layout16 === void 0 ? void 0 : (_token$layout16$heade = _token$layout16.header) === null || _token$layout16$heade === void 0 ? void 0 : _token$layout16$heade.colorBgMenuItemHover
59775
58478
  }), defineProperty_defineProperty(_$concat5, "".concat(token.antCls, "-menu-item-open,\n ").concat(token.antCls, "-menu-submenu-open,\n ").concat(token.antCls, "-menu-item-selected,\n ").concat(token.antCls, "-menu-submenu-selected"), defineProperty_defineProperty({
59776
- backgroundColor: token.header.colorBgMenuItemSelected,
58479
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout17 = token.layout) === null || _token$layout17 === void 0 ? void 0 : (_token$layout17$heade = _token$layout17.header) === null || _token$layout17$heade === void 0 ? void 0 : _token$layout17$heade.colorBgMenuItemSelected,
59777
58480
  borderRadius: token.radiusBase,
59778
- color: token.header.colorTextMenuSelected
58481
+ color: token === null || token === void 0 ? void 0 : (_token$layout18 = token.layout) === null || _token$layout18 === void 0 ? void 0 : (_token$layout18$heade = _token$layout18.header) === null || _token$layout18$heade === void 0 ? void 0 : _token$layout18$heade.colorTextMenuSelected
59779
58482
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
59780
- color: token.header.colorTextMenuSelected
58483
+ color: token === null || token === void 0 ? void 0 : (_token$layout19 = token.layout) === null || _token$layout19 === void 0 ? void 0 : (_token$layout19$heade = _token$layout19.header) === null || _token$layout19$heade === void 0 ? void 0 : _token$layout19$heade.colorTextMenuSelected
59781
58484
  })), defineProperty_defineProperty(_$concat5, "> ".concat(token.antCls, "-menu-item, > ").concat(token.antCls, "-menu-submenu"), {
59782
58485
  paddingInline: 16,
59783
58486
  marginInline: 4
59784
58487
  }), defineProperty_defineProperty(_$concat5, "> ".concat(token.antCls, "-menu-item::after, > ").concat(token.antCls, "-menu-submenu::after"), {
59785
58488
  display: 'none'
59786
58489
  }), _$concat5)), _$concat6)), defineProperty_defineProperty(_token$componentCls, "".concat(token.proComponentsCls, "-top-nav-header-base-menu"), (_$concat9 = {}, defineProperty_defineProperty(_$concat9, "&".concat(token.antCls, "-menu"), defineProperty_defineProperty({
59787
- color: token.header.colorTextMenu
58490
+ color: token === null || token === void 0 ? void 0 : (_token$layout20 = token.layout) === null || _token$layout20 === void 0 ? void 0 : (_token$layout20$heade = _token$layout20.header) === null || _token$layout20$heade === void 0 ? void 0 : _token$layout20$heade.colorTextMenu
59788
58491
  }, "".concat(token.antCls, "-menu-item a"), {
59789
58492
  color: 'inherit'
59790
58493
  })), defineProperty_defineProperty(_$concat9, "&".concat(token.antCls, "-menu-light"), (_$concat8 = {}, defineProperty_defineProperty(_$concat8, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-active, \n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
59791
- color: token.header.colorTextMenuActive,
58494
+ color: token === null || token === void 0 ? void 0 : (_token$layout21 = token.layout) === null || _token$layout21 === void 0 ? void 0 : (_token$layout21$heade = _token$layout21.header) === null || _token$layout21$heade === void 0 ? void 0 : _token$layout21$heade.colorTextMenuActive,
59792
58495
  borderRadius: token.radiusBase,
59793
- backgroundColor: token.header.colorBgMenuItemSelected
58496
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout22 = token.layout) === null || _token$layout22 === void 0 ? void 0 : (_token$layout22$heade = _token$layout22.header) === null || _token$layout22$heade === void 0 ? void 0 : _token$layout22$heade.colorBgMenuItemSelected
59794
58497
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
59795
- color: token.header.colorTextMenuActive
58498
+ color: token === null || token === void 0 ? void 0 : (_token$layout23 = token.layout) === null || _token$layout23 === void 0 ? void 0 : (_token$layout23$heade = _token$layout23.header) === null || _token$layout23$heade === void 0 ? void 0 : _token$layout23$heade.colorTextMenuActive
59796
58499
  })), defineProperty_defineProperty(_$concat8, "".concat(token.antCls, "-menu-item-selected"), {
59797
- color: token.header.colorTextMenuSelected,
58500
+ color: token === null || token === void 0 ? void 0 : (_token$layout24 = token.layout) === null || _token$layout24 === void 0 ? void 0 : (_token$layout24$heade = _token$layout24.header) === null || _token$layout24$heade === void 0 ? void 0 : _token$layout24$heade.colorTextMenuSelected,
59798
58501
  borderRadius: token.radiusBase,
59799
- backgroundColor: token.header.colorBgMenuItemSelected
58502
+ backgroundColor: token === null || token === void 0 ? void 0 : (_token$layout25 = token.layout) === null || _token$layout25 === void 0 ? void 0 : (_token$layout25$heade = _token$layout25.header) === null || _token$layout25$heade === void 0 ? void 0 : _token$layout25$heade.colorBgMenuItemSelected
59800
58503
  }), _$concat8)), _$concat9)), _token$componentCls)), defineProperty_defineProperty(_ref, "".concat(token.antCls, "-menu-sub").concat(token.antCls, "-menu-inline"), {
59801
58504
  backgroundColor: 'transparent!important'
59802
58505
  }), defineProperty_defineProperty(_ref, "".concat(token.antCls, "-menu-submenu-popup"), (_$concat11 = {
@@ -59809,22 +58512,22 @@ var compatibleStyle = function compatibleStyle(token) {
59809
58512
  }, "".concat(token.antCls, "-menu-item:active, \n ").concat(token.antCls, "-menu-submenu-title:active"), {
59810
58513
  backgroundColor: 'transparent!important'
59811
58514
  })), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu-item-selected"), {
59812
- color: token.sider.colorTextMenuSelected
58515
+ color: token === null || token === void 0 ? void 0 : (_token$layout26 = token.layout) === null || _token$layout26 === void 0 ? void 0 : (_token$layout26$sider = _token$layout26.sider) === null || _token$layout26$sider === void 0 ? void 0 : _token$layout26$sider.colorTextMenuSelected
59813
58516
  }), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu-submenu-selected"), {
59814
- color: token.sider.colorTextMenuSelected
58517
+ color: token === null || token === void 0 ? void 0 : (_token$layout27 = token.layout) === null || _token$layout27 === void 0 ? void 0 : (_token$layout27$sider = _token$layout27.sider) === null || _token$layout27$sider === void 0 ? void 0 : _token$layout27$sider.colorTextMenuSelected
59815
58518
  }), defineProperty_defineProperty(_$concat11, "".concat(token.antCls, "-menu:not(").concat(token.antCls, "-menu-horizontal)"), (_$concat$concat2 = {}, defineProperty_defineProperty(_$concat$concat2, "".concat(token.antCls, "-menu-item-selected"), {
59816
58519
  backgroundColor: 'rgba(0, 0, 0, 0.04)',
59817
58520
  borderRadius: token.radiusBase,
59818
- color: token.sider.colorTextMenuSelected
58521
+ color: token === null || token === void 0 ? void 0 : (_token$layout28 = token.layout) === null || _token$layout28 === void 0 ? void 0 : (_token$layout28$sider = _token$layout28.sider) === null || _token$layout28$sider === void 0 ? void 0 : _token$layout28$sider.colorTextMenuSelected
59819
58522
  }), defineProperty_defineProperty(_$concat$concat2, "".concat(token.antCls, "-menu-item:hover, \n ").concat(token.antCls, "-menu-item-active,\n ").concat(token.antCls, "-menu-submenu-title:hover"), defineProperty_defineProperty({
59820
- color: token.sider.colorTextMenuActive,
58523
+ color: token === null || token === void 0 ? void 0 : (_token$layout29 = token.layout) === null || _token$layout29 === void 0 ? void 0 : (_token$layout29$sider = _token$layout29.sider) === null || _token$layout29$sider === void 0 ? void 0 : _token$layout29$sider.colorTextMenuActive,
59821
58524
  borderRadius: token.radiusBase
59822
58525
  }, "".concat(token.antCls, "-menu-submenu-arrow"), {
59823
- color: token.sider.colorTextMenuActive
58526
+ color: token === null || token === void 0 ? void 0 : (_token$layout30 = token.layout) === null || _token$layout30 === void 0 ? void 0 : (_token$layout30$sider = _token$layout30.sider) === null || _token$layout30$sider === void 0 ? void 0 : _token$layout30$sider.colorTextMenuActive
59824
58527
  })), _$concat$concat2)), _$concat11)), _ref;
59825
58528
  };
59826
58529
  var genProLayoutStyle = function genProLayoutStyle(token) {
59827
- var _$concat12, _token$proComponentsC;
58530
+ var _token$layout31, _token$layout31$pageC, _token$layout32, _token$layout32$pageC, _token$layout33, _token$layout33$pageC, _token$layout34, _$concat12, _token$proComponentsC;
59828
58531
  return defineProperty_defineProperty({
59829
58532
  body: {
59830
58533
  paddingBlock: 0,
@@ -59843,13 +58546,13 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
59843
58546
  display: 'flex',
59844
58547
  flexDirection: 'column',
59845
58548
  width: '100%',
59846
- backgroundColor: token.pageContainer.colorBgPageContainer || 'transparent',
58549
+ backgroundColor: (token === null || token === void 0 ? void 0 : (_token$layout31 = token.layout) === null || _token$layout31 === void 0 ? void 0 : (_token$layout31$pageC = _token$layout31.pageContainer) === null || _token$layout31$pageC === void 0 ? void 0 : _token$layout31$pageC.colorBgPageContainer) || 'transparent',
59847
58550
  position: 'relative',
59848
58551
  '*': {
59849
58552
  boxSizing: 'border-box'
59850
58553
  },
59851
- paddingBlock: token.pageContainer.paddingBlockPageContainerContent,
59852
- paddingInline: token.pageContainer.paddingInlinePageContainerContent,
58554
+ paddingBlock: token === null || token === void 0 ? void 0 : (_token$layout32 = token.layout) === null || _token$layout32 === void 0 ? void 0 : (_token$layout32$pageC = _token$layout32.pageContainer) === null || _token$layout32$pageC === void 0 ? void 0 : _token$layout32$pageC.paddingBlockPageContainerContent,
58555
+ paddingInline: token === null || token === void 0 ? void 0 : (_token$layout33 = token.layout) === null || _token$layout33 === void 0 ? void 0 : (_token$layout33$pageC = _token$layout33.pageContainer) === null || _token$layout33$pageC === void 0 ? void 0 : _token$layout33$pageC.paddingInlinePageContainerContent,
59853
58556
  '&-has-page-container': {
59854
58557
  padding: 0
59855
58558
  }
@@ -59868,7 +58571,7 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
59868
58571
  zIndex: 0,
59869
58572
  height: '100%',
59870
58573
  width: '100%',
59871
- background: token.bgLayout
58574
+ background: token === null || token === void 0 ? void 0 : (_token$layout34 = token.layout) === null || _token$layout34 === void 0 ? void 0 : _token$layout34.bgLayout
59872
58575
  }), _$concat12)), defineProperty_defineProperty(_token$proComponentsC, "".concat(token.antCls, "-menu-submenu-popup"), {
59873
58576
  backgroundColor: 'rgba(255, 255, 255, 0.42)',
59874
58577
  '-webkit-backdrop-filter': 'blur(8px)',
@@ -59876,11 +58579,10 @@ var genProLayoutStyle = function genProLayoutStyle(token) {
59876
58579
  }), _token$proComponentsC));
59877
58580
  };
59878
58581
  function es_style_useStyle(prefixCls) {
59879
- var proToken = (0,external_React_.useContext)(ProLayoutContext);
59880
58582
  return useStyle('ProLayout', function (token) {
59881
58583
  var proLayoutToken = objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, token), {}, {
59882
58584
  componentCls: ".".concat(prefixCls)
59883
- }, proToken);
58585
+ });
59884
58586
  return [genProLayoutStyle(proLayoutToken), compatibleStyle(proLayoutToken)];
59885
58587
  });
59886
58588
  }
@@ -60542,6 +59244,7 @@ BaseProLayout.defaultProps = objectSpread2_objectSpread2(objectSpread2_objectSpr
60542
59244
  var ProLayout_ProLayout = function ProLayout(props) {
60543
59245
  var _process$env$NODE_ENV;
60544
59246
  var colorPrimary = props.colorPrimary;
59247
+ var tokenContext = (0,external_React_.useContext)(ProProvider);
60545
59248
  return (0,jsx_runtime.jsx)(external_antd_.ConfigProvider
60546
59249
  // @ts-ignore
60547
59250
  , {
@@ -60557,10 +59260,10 @@ var ProLayout_ProLayout = function ProLayout(props) {
60557
59260
  },
60558
59261
  children: (0,jsx_runtime.jsx)(ConfigProviderWrap, {
60559
59262
  autoClearCache: true,
60560
- children: (0,jsx_runtime.jsx)(ProLayoutProvider, {
60561
- token: props.token,
60562
- children: (0,jsx_runtime.jsx)(BaseProLayout, objectSpread2_objectSpread2({}, props))
60563
- })
59263
+ token: objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, tokenContext.token), {}, {
59264
+ layout: props.token
59265
+ }),
59266
+ children: (0,jsx_runtime.jsx)(BaseProLayout, objectSpread2_objectSpread2({}, props))
60564
59267
  })
60565
59268
  });
60566
59269
  };
@@ -62046,24 +60749,29 @@ function sortableElement(WrappedComponent) {
62046
60749
 
62047
60750
 
62048
60751
  var Alert_style_genProStyle = function genProStyle(token) {
62049
- var _token$componentCls;
62050
- return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
62051
- marginBlockEnd: 16
62052
- }, defineProperty_defineProperty(_token$componentCls, "".concat(token.antCls, "-alert ").concat(token.antCls, "-alert-no-icon"), {
62053
- paddingBlock: token.paddingSM,
62054
- paddingInline: token.paddingLG
62055
- }), defineProperty_defineProperty(_token$componentCls, '&-info', {
62056
- display: 'flex',
62057
- alignItems: 'center',
62058
- transition: 'all 0.3s',
62059
- '&-content': {
62060
- flex: 1
60752
+ return defineProperty_defineProperty({}, token.componentCls, {
60753
+ marginBlockEnd: 16,
60754
+ backgroundColor: 'rgba(0,0,0,0.02)',
60755
+ borderRadius: token.radiusBase,
60756
+ border: '0.5px solid #BFBFBF',
60757
+ '&-container': {
60758
+ paddingBlock: token.paddingSM,
60759
+ paddingInline: token.paddingLG
62061
60760
  },
62062
- '&-option': {
62063
- minWidth: 48,
62064
- paddingInlineStart: 16
60761
+ '&-info': {
60762
+ display: 'flex',
60763
+ alignItems: 'center',
60764
+ transition: 'all 0.3s',
60765
+ color: token.colorTextSecondary,
60766
+ '&-content': {
60767
+ flex: 1
60768
+ },
60769
+ '&-option': {
60770
+ minWidth: 48,
60771
+ paddingInlineStart: 16
60772
+ }
62065
60773
  }
62066
- }), _token$componentCls));
60774
+ });
62067
60775
  };
62068
60776
  function Alert_style_useStyle(prefixCls) {
62069
60777
  return useStyle('ProTableAlert', function (token) {
@@ -62128,9 +60836,10 @@ function TableAlert(_ref) {
62128
60836
  return null;
62129
60837
  }
62130
60838
  return wrapSSR((0,jsx_runtime.jsx)("div", {
62131
- className: className,
62132
- children: (0,jsx_runtime.jsx)(external_antd_.Alert, {
62133
- message: (0,jsx_runtime.jsxs)("div", {
60839
+ className: "".concat(className, " ").concat(hashId),
60840
+ children: (0,jsx_runtime.jsx)("div", {
60841
+ className: "".concat(className, "-container ").concat(hashId),
60842
+ children: (0,jsx_runtime.jsxs)("div", {
62134
60843
  className: "".concat(className, "-info ").concat(hashId),
62135
60844
  children: [(0,jsx_runtime.jsx)("div", {
62136
60845
  className: "".concat(className, "-info-content ").concat(hashId),
@@ -62139,8 +60848,7 @@ function TableAlert(_ref) {
62139
60848
  className: "".concat(className, "-info-option ").concat(hashId),
62140
60849
  children: option
62141
60850
  }) : null]
62142
- }),
62143
- type: "info"
60851
+ })
62144
60852
  })
62145
60853
  }));
62146
60854
  }
@@ -62403,7 +61111,11 @@ function sortData(_ref, data) {
62403
61111
  var oldIndex = _ref.oldIndex,
62404
61112
  newIndex = _ref.newIndex;
62405
61113
  if (oldIndex !== newIndex) {
62406
- var newData = arrayMoveImmutable(toConsumableArray_toConsumableArray(data || []), oldIndex, newIndex).filter(function (el) {
61114
+ var newData = arrayMoveImmutable({
61115
+ array: toConsumableArray_toConsumableArray(data || []),
61116
+ fromIndex: oldIndex,
61117
+ toIndex: newIndex
61118
+ }).filter(function (el) {
62407
61119
  return !!el;
62408
61120
  });
62409
61121
  return toConsumableArray_toConsumableArray(newData);
@@ -63599,7 +62311,8 @@ var HeaderMenu = function HeaderMenu(props) {
63599
62311
  _props$type = props.type,
63600
62312
  type = _props$type === void 0 ? 'inline' : _props$type,
63601
62313
  prefixCls = props.prefixCls,
63602
- propActiveKey = props.activeKey;
62314
+ propActiveKey = props.activeKey,
62315
+ hashId = props.hashId;
63603
62316
  var _useMergedState = (0,useMergedState/* default */.Z)(propActiveKey, {
63604
62317
  value: propActiveKey,
63605
62318
  onChange: props.onChange
@@ -63615,13 +62328,13 @@ var HeaderMenu = function HeaderMenu(props) {
63615
62328
  }) || items[0];
63616
62329
  if (type === 'inline') {
63617
62330
  return (0,jsx_runtime.jsx)("div", {
63618
- className: classnames_default()("".concat(prefixCls, "-menu"), "".concat(prefixCls, "-inline-menu")),
62331
+ className: classnames_default()("".concat(prefixCls, "-menu"), "".concat(prefixCls, "-inline-menu"), hashId),
63619
62332
  children: items.map(function (item, index) {
63620
62333
  return (0,jsx_runtime.jsx)("div", {
63621
62334
  onClick: function onClick() {
63622
62335
  setActiveKey(item.key);
63623
62336
  },
63624
- className: classnames_default()("".concat(prefixCls, "-inline-menu-item"), activeItem.key === item.key ? "".concat(prefixCls, "-inline-menu-item-active") : undefined),
62337
+ className: classnames_default()("".concat(prefixCls, "-inline-menu-item"), activeItem.key === item.key ? "".concat(prefixCls, "-inline-menu-item-active") : undefined, hashId),
63625
62338
  children: item.label
63626
62339
  }, item.key || index);
63627
62340
  })
@@ -63994,7 +62707,8 @@ var ListToolBar = function ListToolBar(_ref2) {
63994
62707
  subTitle: subTitle
63995
62708
  })
63996
62709
  }), menu && (0,jsx_runtime.jsx)(ListToolBar_HeaderMenu, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, menu), {}, {
63997
- prefixCls: prefixCls
62710
+ prefixCls: prefixCls,
62711
+ hashId: hashId
63998
62712
  })), !hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
63999
62713
  className: "".concat(prefixCls, "-search ").concat(hashId),
64000
62714
  children: searchNode
@@ -64006,12 +62720,12 @@ var ListToolBar = function ListToolBar(_ref2) {
64006
62720
  return (0,jsx_runtime.jsxs)(external_antd_.Space, {
64007
62721
  className: "".concat(prefixCls, "-right ").concat(hashId),
64008
62722
  direction: isMobile ? 'vertical' : 'horizontal',
64009
- size: 16,
62723
+ size: 8,
64010
62724
  align: isMobile ? 'end' : 'center',
64011
- children: [hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
62725
+ children: [!multipleLine ? filtersNode : null, hasTitle && searchNode ? (0,jsx_runtime.jsx)("div", {
64012
62726
  className: "".concat(prefixCls, "-search ").concat(hashId),
64013
62727
  children: searchNode
64014
- }) : null, !multipleLine ? filtersNode : null, actionDom, (settings === null || settings === void 0 ? void 0 : settings.length) ? (0,jsx_runtime.jsx)(external_antd_.Space, {
62728
+ }) : null, actionDom, (settings === null || settings === void 0 ? void 0 : settings.length) ? (0,jsx_runtime.jsx)(external_antd_.Space, {
64015
62729
  size: 12,
64016
62730
  align: "center",
64017
62731
  className: "".concat(prefixCls, "-setting-items ").concat(hashId),
@@ -64546,7 +63260,7 @@ var style_genProListStyle = function genProListStyle(token) {
64546
63260
  }), defineProperty_defineProperty(_search, '&-light-filter', {
64547
63261
  marginBlockEnd: 0,
64548
63262
  paddingBlock: 0,
64549
- paddingInline: 8
63263
+ paddingInline: 0
64550
63264
  }), defineProperty_defineProperty(_search, '&-form-option', (_formOption = {}, defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item"), {}), defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item-label"), {}), defineProperty_defineProperty(_formOption, "".concat(token.antCls, "-form-item-control-input"), {}), _formOption)), defineProperty_defineProperty(_search, '@media (max-width: 575px)', defineProperty_defineProperty({}, token.componentCls, defineProperty_defineProperty({
64551
63265
  height: 'auto !important',
64552
63266
  paddingBlockEnd: '24px'
@@ -65501,7 +64215,6 @@ var Table_excluded = ["rowKey", "tableClassName", "action", "tableColumn", "type
65501
64215
 
65502
64216
  // 兼容代码-----------
65503
64217
 
65504
-
65505
64218
  //----------------------
65506
64219
 
65507
64220
 
@@ -66589,7 +65302,7 @@ function RecordCreator(props) {
66589
65302
  }
66590
65303
  /**
66591
65304
  * 可以直接放到 Form 中的可编辑表格
66592
- *
65305
+ * A React component that is used to create a table.
66593
65306
  * @param props
66594
65307
  */
66595
65308
  function EditableTable(props) {
@@ -66706,7 +65419,8 @@ function EditableTable(props) {
66706
65419
  var rowKeyName = [props.name, (_finlayRowKey$toStrin2 = finlayRowKey === null || finlayRowKey === void 0 ? void 0 : finlayRowKey.toString()) !== null && _finlayRowKey$toStrin2 !== void 0 ? _finlayRowKey$toStrin2 : ''].flat(1).filter(Boolean);
66707
65420
  var oldTableDate = ((_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : (_formRef$current4$get = _formRef$current4.getFieldsValue) === null || _formRef$current4$get === void 0 ? void 0 : _formRef$current4$get.call(_formRef$current4)) || {};
66708
65421
  var updateValues = (0,set/* default */.Z)(oldTableDate, rowKeyName, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, getRowData(rowIndex)), data || {}));
66709
- return (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldsValue(updateValues);
65422
+ (_formRef$current5 = formRef.current) === null || _formRef$current5 === void 0 ? void 0 : _formRef$current5.setFieldsValue(updateValues);
65423
+ return true;
66710
65424
  }
66711
65425
  });
66712
65426
  });
@@ -66873,6 +65587,11 @@ function EditableTable(props) {
66873
65587
  }) : null]
66874
65588
  });
66875
65589
  }
65590
+ /**
65591
+ * `FieldEditableTable` is a wrapper around `EditableTable` that adds a `Form.Item` around it
65592
+ * @param props - EditableProTableProps<DataType, Params, ValueType>
65593
+ * @returns A function that takes in props and returns a Form.Item component.
65594
+ */
66876
65595
  function FieldEditableTable(props) {
66877
65596
  var form = form_es.useFormInstance();
66878
65597
  if (!props.name) return (0,jsx_runtime.jsx)(EditableTable, objectSpread2_objectSpread2({}, props));
@@ -86364,17 +85083,17 @@ function BaseProList(props) {
86364
85083
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
86365
85084
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
86366
85085
  var version_version = {
86367
- "@ant-design/pro-card": "2.0.14",
86368
- "@ant-design/pro-components": "2.3.18",
86369
- "@ant-design/pro-descriptions": "2.0.16",
86370
- "@ant-design/pro-field": "2.1.9",
86371
- "@ant-design/pro-form": "2.2.7",
86372
- "@ant-design/pro-layout": "7.1.7",
86373
- "@ant-design/pro-list": "2.0.16",
86374
- "@ant-design/pro-provider": "2.0.6",
85086
+ "@ant-design/pro-card": "2.0.15",
85087
+ "@ant-design/pro-components": "2.3.20",
85088
+ "@ant-design/pro-descriptions": "2.0.17",
85089
+ "@ant-design/pro-field": "2.1.10",
85090
+ "@ant-design/pro-form": "2.2.8",
85091
+ "@ant-design/pro-layout": "7.1.9",
85092
+ "@ant-design/pro-list": "2.0.17",
85093
+ "@ant-design/pro-provider": "2.0.7",
86375
85094
  "@ant-design/pro-skeleton": "2.0.4",
86376
- "@ant-design/pro-table": "3.0.16",
86377
- "@ant-design/pro-utils": "2.2.6"
85095
+ "@ant-design/pro-table": "3.0.17",
85096
+ "@ant-design/pro-utils": "2.2.7"
86378
85097
  };
86379
85098
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
86380
85099