@cloudtower/eagle 0.26.6 → 0.26.7

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.
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
2
  type NoticeType = "info" | "success" | "error" | "warning" | "loading";
3
3
  export declare function getKeyThenIncreaseKey(): number;
4
- export declare let pageVisible: boolean;
5
4
  export interface ConfigOptions {
6
5
  top?: number;
7
6
  duration?: number;
@@ -3245,87 +3245,6 @@ input.rrg1fkn.ant-input {
3245
3245
  background: #fff;
3246
3246
  }
3247
3247
 
3248
- .s1fc623g {
3249
- width: 430px !important;
3250
- }
3251
-
3252
- .da3mx0o .ant-select-item-group {
3253
- padding: 8px 16px;
3254
- line-height: 18px;
3255
- border-top: 1px solid rgba(211, 218, 235, 0.6);
3256
- height: 34px;
3257
- min-height: 34px;
3258
- box-sizing: border-box;
3259
- margin-top: 8px;
3260
- }
3261
-
3262
- .onr9gzt {
3263
- display: flex;
3264
- flex-direction: column;
3265
- margin: 1px 8px;
3266
- padding: 8px;
3267
- border-radius: 4px;
3268
- }
3269
- .onr9gzt .selected-icon {
3270
- display: none;
3271
- }
3272
- .onr9gzt.ant-select-item-option-grouped {
3273
- padding-left: 8px;
3274
- }
3275
- .onr9gzt.ant-select-item-option-selected {
3276
- background-color: white;
3277
- }
3278
- .onr9gzt.ant-select-item-option-selected .timezone-title {
3279
- color: #0080ff;
3280
- }
3281
- .onr9gzt.ant-select-item-option-selected .selected-icon {
3282
- display: block;
3283
- }
3284
- .onr9gzt.ant-select-item-option-active {
3285
- background: rgba(0, 136, 255, 0.16);
3286
- }
3287
- .onr9gzt.ant-select-item-option-active .timezone-title {
3288
- color: #0080ff;
3289
- }
3290
- .onr9gzt.ant-select-item-option-active .timezone-tag {
3291
- background: rgba(0, 136, 255, 0.1);
3292
- color: #0080ff;
3293
- }
3294
-
3295
- .oiy0apc {
3296
- display: flex;
3297
- justify-content: space-between;
3298
- height: 20px;
3299
- line-height: 20px;
3300
- }
3301
- .oiy0apc .timezone-title {
3302
- color: #2d3a56;
3303
- overflow: hidden;
3304
- text-overflow: ellipsis;
3305
- }
3306
-
3307
- .of4y382 {
3308
- display: flex;
3309
- justify-content: space-between;
3310
- color: rgba(44, 56, 82, 0.6);
3311
- height: 18px;
3312
- line-height: 18px;
3313
- margin-top: 2px;
3314
- }
3315
-
3316
- .t19903l9 {
3317
- border: none;
3318
- margin-right: 0;
3319
- background: rgba(225, 230, 241, 0.6);
3320
- }
3321
-
3322
- .ohwbvxu {
3323
- pointer-events: none;
3324
- height: 32px;
3325
- width: 100%;
3326
- opacity: 0;
3327
- }
3328
-
3329
3248
  .i1e4sgug {
3330
3249
  display: inline-block;
3331
3250
  }
@@ -3805,6 +3724,87 @@ input.rrg1fkn.ant-input {
3805
3724
  line-height: 12px;
3806
3725
  }
3807
3726
 
3727
+ .s1fc623g {
3728
+ width: 430px !important;
3729
+ }
3730
+
3731
+ .da3mx0o .ant-select-item-group {
3732
+ padding: 8px 16px;
3733
+ line-height: 18px;
3734
+ border-top: 1px solid rgba(211, 218, 235, 0.6);
3735
+ height: 34px;
3736
+ min-height: 34px;
3737
+ box-sizing: border-box;
3738
+ margin-top: 8px;
3739
+ }
3740
+
3741
+ .onr9gzt {
3742
+ display: flex;
3743
+ flex-direction: column;
3744
+ margin: 1px 8px;
3745
+ padding: 8px;
3746
+ border-radius: 4px;
3747
+ }
3748
+ .onr9gzt .selected-icon {
3749
+ display: none;
3750
+ }
3751
+ .onr9gzt.ant-select-item-option-grouped {
3752
+ padding-left: 8px;
3753
+ }
3754
+ .onr9gzt.ant-select-item-option-selected {
3755
+ background-color: white;
3756
+ }
3757
+ .onr9gzt.ant-select-item-option-selected .timezone-title {
3758
+ color: #0080ff;
3759
+ }
3760
+ .onr9gzt.ant-select-item-option-selected .selected-icon {
3761
+ display: block;
3762
+ }
3763
+ .onr9gzt.ant-select-item-option-active {
3764
+ background: rgba(0, 136, 255, 0.16);
3765
+ }
3766
+ .onr9gzt.ant-select-item-option-active .timezone-title {
3767
+ color: #0080ff;
3768
+ }
3769
+ .onr9gzt.ant-select-item-option-active .timezone-tag {
3770
+ background: rgba(0, 136, 255, 0.1);
3771
+ color: #0080ff;
3772
+ }
3773
+
3774
+ .oiy0apc {
3775
+ display: flex;
3776
+ justify-content: space-between;
3777
+ height: 20px;
3778
+ line-height: 20px;
3779
+ }
3780
+ .oiy0apc .timezone-title {
3781
+ color: #2d3a56;
3782
+ overflow: hidden;
3783
+ text-overflow: ellipsis;
3784
+ }
3785
+
3786
+ .of4y382 {
3787
+ display: flex;
3788
+ justify-content: space-between;
3789
+ color: rgba(44, 56, 82, 0.6);
3790
+ height: 18px;
3791
+ line-height: 18px;
3792
+ margin-top: 2px;
3793
+ }
3794
+
3795
+ .t19903l9 {
3796
+ border: none;
3797
+ margin-right: 0;
3798
+ background: rgba(225, 230, 241, 0.6);
3799
+ }
3800
+
3801
+ .ohwbvxu {
3802
+ pointer-events: none;
3803
+ height: 32px;
3804
+ width: 100%;
3805
+ opacity: 0;
3806
+ }
3807
+
3808
3808
  .c198s9j3 {
3809
3809
  color: #2d3a56;
3810
3810
  line-height: 22px;
@@ -3876,16 +3876,6 @@ input.rrg1fkn.ant-input {
3876
3876
  margin-left: 24px;
3877
3877
  }
3878
3878
 
3879
- .igz4le8 {
3880
- height: 24px;
3881
- width: 56px !important;
3882
- margin-right: 4px;
3883
- }
3884
-
3885
- .c1riexje {
3886
- color: rgba(44, 56, 82, 0.6);
3887
- }
3888
-
3889
3879
  .shq1k1g.ant-select, .shq1k1g.ant-select .ant-select-selector {
3890
3880
  border-radius: 6px;
3891
3881
  }
@@ -3941,6 +3931,16 @@ input.rrg1fkn.ant-input {
3941
3931
  transform: rotate(180deg);
3942
3932
  }
3943
3933
 
3934
+ .igz4le8 {
3935
+ height: 24px;
3936
+ width: 56px !important;
3937
+ margin-right: 4px;
3938
+ }
3939
+
3940
+ .c1riexje {
3941
+ color: rgba(44, 56, 82, 0.6);
3942
+ }
3943
+
3944
3944
  .iiqau4c.ant-input-group.ant-input-group-compact {
3945
3945
  display: flex;
3946
3946
  }
package/dist/esm/index.js CHANGED
@@ -1950,7 +1950,8 @@ function useElementsSize(classMap, config) {
1950
1950
  return;
1951
1951
  const nextSizes = getAllSize(classMapRef.current);
1952
1952
  if (key) {
1953
- if (!elementsSizes[key] || !_.isEqual(
1953
+ if (!elementsSizes[key] || // FIXME: antd 4.0 table thead will be delay render
1954
+ !_.isEqual(
1954
1955
  _.omit(elementsSizes[key], "thead"),
1955
1956
  _.omit(nextSizes, "thead")
1956
1957
  )) {
@@ -2441,14 +2442,6 @@ let transitionName = "move-up";
2441
2442
  let getContainer;
2442
2443
  let maxCount;
2443
2444
  let rtl = false;
2444
- let pageVisible = true;
2445
- const visibilitychangeHandler = () => {
2446
- if (document.hidden) {
2447
- pageVisible = false;
2448
- } else {
2449
- pageVisible = true;
2450
- }
2451
- };
2452
2445
  function setMessageConfig(options) {
2453
2446
  if (options.top !== void 0) {
2454
2447
  defaultTop = options.top;
@@ -2475,9 +2468,6 @@ function setMessageConfig(options) {
2475
2468
  rtl = options.rtl;
2476
2469
  }
2477
2470
  }
2478
- if (typeof window !== "undefined") {
2479
- document.addEventListener("visibilitychange", visibilitychangeHandler);
2480
- }
2481
2471
  function getRCNotificationInstance(args, callback) {
2482
2472
  const prefixCls = args.prefixCls || localPrefixCls;
2483
2473
  if (messageInstance) {
@@ -2492,6 +2482,7 @@ function getRCNotificationInstance(args, callback) {
2492
2482
  prefixCls,
2493
2483
  transitionName,
2494
2484
  style: { top: defaultTop },
2485
+ // 覆盖原来的样式
2495
2486
  getContainer,
2496
2487
  maxCount
2497
2488
  },
@@ -2543,12 +2534,12 @@ function notice(args) {
2543
2534
  }
2544
2535
  return resolve(true);
2545
2536
  };
2537
+ if (document.hidden) {
2538
+ return;
2539
+ }
2546
2540
  getRCNotificationInstance(args, ({ prefixCls, instance }) => {
2547
2541
  instance.notice(
2548
- getRCNoticeProps(
2549
- __spreadProps$g(__spreadValues$m({}, args), { key: target, onClose: callback }),
2550
- prefixCls
2551
- )
2542
+ getRCNoticeProps(__spreadProps$g(__spreadValues$m({}, args), { key: target, onClose: callback }), prefixCls)
2552
2543
  );
2553
2544
  });
2554
2545
  });
@@ -2559,9 +2550,6 @@ function notice(args) {
2559
2550
  };
2560
2551
  result.then = (filled, rejected) => closePromise.then(filled, rejected);
2561
2552
  result.promise = closePromise;
2562
- if (!pageVisible) {
2563
- result();
2564
- }
2565
2553
  return result;
2566
2554
  }
2567
2555
  function isArgsProps(content) {
@@ -5030,6 +5018,10 @@ var __spreadValues$2 = (a, b) => {
5030
5018
  return a;
5031
5019
  };
5032
5020
  var __spreadProps$2 = (a, b) => __defProps$2(a, __getOwnPropDescs$2(b));
5021
+ var __publicField = (obj, key, value) => {
5022
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
5023
+ return value;
5024
+ };
5033
5025
  function makeUUID(length = 25) {
5034
5026
  let result = "";
5035
5027
  const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
@@ -5041,13 +5033,18 @@ function makeUUID(length = 25) {
5041
5033
  }
5042
5034
  class Batcher {
5043
5035
  constructor(originalMethod, batchHelper) {
5044
- this.batchSize = 2;
5045
- this.batchTime = 200;
5046
- this.scheduler = {};
5036
+ __publicField(this, "batchSize", 2);
5037
+ __publicField(this, "batchTime", 200);
5038
+ __publicField(this, "scheduler", {});
5039
+ __publicField(this, "originalMethod");
5040
+ __publicField(this, "batchHelper");
5047
5041
  this.originalMethod = originalMethod;
5048
5042
  this.batchHelper = batchHelper;
5049
5043
  }
5050
5044
  addMessage(originContent) {
5045
+ if (document.hidden) {
5046
+ return;
5047
+ }
5051
5048
  const batchKey = this.batchHelper.getBatchKey(originContent.content);
5052
5049
  if (batchKey == null) {
5053
5050
  this.originalMethod(originContent);