uiw 4.21.17 → 4.21.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uiw.css CHANGED
@@ -123,16 +123,7 @@
123
123
  top: 0.125em;
124
124
  }
125
125
  .w-icon-spin svg {
126
- -webkit-animation: loading-circle 1s infinite linear;
127
- animation: loading-circle 1s infinite linear;
128
- }
129
- @-webkit-keyframes loading-circle {
130
- 0% {
131
- transform: rotate(0deg);
132
- }
133
- 100% {
134
- transform: rotate(360deg);
135
- }
126
+ animation: loading-circle 1s infinite linear;
136
127
  }
137
128
  @keyframes loading-circle {
138
129
  0% {
@@ -601,16 +592,7 @@
601
592
  margin: 0 3px 0 0;
602
593
  -webkit-clip-path: polygon(0% 0%, 100% 0, 100% 30%, 0% 30%);
603
594
  clip-path: polygon(0% 0%, 100% 0, 100% 30%, 0% 30%);
604
- -webkit-animation: rotate 0.5s linear infinite;
605
- animation: rotate 0.5s linear infinite;
606
- }
607
- @-webkit-keyframes rotate {
608
- from {
609
- transform: rotateZ(0deg);
610
- }
611
- to {
612
- transform: rotateZ(360deg);
613
- }
595
+ animation: rotate 0.5s linear infinite;
614
596
  }
615
597
  @keyframes rotate {
616
598
  from {
@@ -805,7 +787,7 @@
805
787
  line-height: 1;
806
788
  vertical-align: middle;
807
789
  }
808
- sup.w-badge-count {
790
+ .w-badge sup.w-badge-count {
809
791
  position: absolute;
810
792
  transform: translateX(-50%);
811
793
  top: -10px;
@@ -871,18 +853,7 @@ sup.w-badge-count {
871
853
  border-radius: 50%;
872
854
  background-color: inherit;
873
855
  content: '';
874
- -webkit-animation: wStatusProcessing 1.2s infinite ease-in-out;
875
- animation: wStatusProcessing 1.2s infinite ease-in-out;
876
- }
877
- @-webkit-keyframes wStatusProcessing {
878
- 0% {
879
- transform: scale(0.8);
880
- opacity: 0.5;
881
- }
882
- 100% {
883
- transform: scale(2.8);
884
- opacity: 0;
885
- }
856
+ animation: wStatusProcessing 1.2s infinite ease-in-out;
886
857
  }
887
858
  @keyframes wStatusProcessing {
888
859
  0% {
@@ -2229,7 +2200,7 @@ sup.w-badge-count {
2229
2200
  border-spacing: 0;
2230
2201
  border-collapse: collapse;
2231
2202
  table-layout: fixed;
2232
- width: 100%;
2203
+ width: 100% !important;
2233
2204
  }
2234
2205
  .w-descriptions {
2235
2206
  background: #fff;
@@ -2290,6 +2261,8 @@ sup.w-badge-count {
2290
2261
  .w-descriptions-bordered tbody tr td {
2291
2262
  border-top: 1px solid #dfe2e5;
2292
2263
  border-right: 1px solid #dfe2e5;
2264
+ border-left: 0;
2265
+ border-bottom: 0;
2293
2266
  }
2294
2267
  .w-descriptions-bordered tbody:first-child tr:first-child th,
2295
2268
  .w-descriptions-bordered tbody:first-child tr:first-child td {
@@ -3084,8 +3057,7 @@ a.w-list-item:hover:not(.w-disabled) {
3084
3057
  .w-loader-tips-nested svg {
3085
3058
  height: 100%;
3086
3059
  width: 100%;
3087
- -webkit-animation: loaderRotate 2s linear infinite;
3088
- animation: loaderRotate 2s linear infinite;
3060
+ animation: loaderRotate 2s linear infinite;
3089
3061
  transform-origin: center center;
3090
3062
  fill: currentcolor;
3091
3063
  vertical-align: middle;
@@ -3093,8 +3065,7 @@ a.w-list-item:hover:not(.w-disabled) {
3093
3065
  .w-loader-tips-nested svg circle {
3094
3066
  stroke-dasharray: 1, 200;
3095
3067
  stroke-dashoffset: 0;
3096
- -webkit-animation: loaderDash 1.5s ease-in-out infinite, loaderColor 6s ease-in-out infinite;
3097
- animation: loaderDash 1.5s ease-in-out infinite, loaderColor 6s ease-in-out infinite;
3068
+ animation: loaderDash 1.5s ease-in-out infinite, loaderColor 6s ease-in-out infinite;
3098
3069
  stroke-linecap: round;
3099
3070
  }
3100
3071
  .w-loader-large .w-loader-tips-nested svg {
@@ -3161,30 +3132,11 @@ a.w-list-item:hover:not(.w-disabled) {
3161
3132
  left: 0px;
3162
3133
  z-index: 99999;
3163
3134
  }
3164
- @-webkit-keyframes loaderRotate {
3165
- to {
3166
- transform: rotate(1turn);
3167
- }
3168
- }
3169
3135
  @keyframes loaderRotate {
3170
3136
  to {
3171
3137
  transform: rotate(1turn);
3172
3138
  }
3173
3139
  }
3174
- @-webkit-keyframes loaderDash {
3175
- 0% {
3176
- stroke-dasharray: 1, 200;
3177
- stroke-dashoffset: 0;
3178
- }
3179
- 50% {
3180
- stroke-dasharray: 89, 200;
3181
- stroke-dashoffset: -35;
3182
- }
3183
- to {
3184
- stroke-dasharray: 89, 200;
3185
- stroke-dashoffset: -124;
3186
- }
3187
- }
3188
3140
  @keyframes loaderDash {
3189
3141
  0% {
3190
3142
  stroke-dasharray: 1, 200;
@@ -3199,16 +3151,6 @@ a.w-list-item:hover:not(.w-disabled) {
3199
3151
  stroke-dashoffset: -124;
3200
3152
  }
3201
3153
  }
3202
- @-webkit-keyframes loaderColor {
3203
- 0%,
3204
- to {
3205
- stroke: currentColor;
3206
- }
3207
- 80%,
3208
- 90% {
3209
- stroke: currentColor;
3210
- }
3211
- }
3212
3154
  @keyframes loaderColor {
3213
3155
  0%,
3214
3156
  to {
@@ -3681,8 +3623,7 @@ a.w-list-item:hover:not(.w-disabled) {
3681
3623
  .w-progress-status-active .w-progress-bg {
3682
3624
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
3683
3625
  background-size: 12px 12px;
3684
- -webkit-animation: progress-bar-stripes 1s linear infinite;
3685
- animation: progress-bar-stripes 1s linear infinite;
3626
+ animation: progress-bar-stripes 1s linear infinite;
3686
3627
  }
3687
3628
  .w-progress-status-active .w-progress-bg:before {
3688
3629
  content: ' ';
@@ -3694,8 +3635,7 @@ a.w-list-item:hover:not(.w-disabled) {
3694
3635
  bottom: 0;
3695
3636
  background: #fff;
3696
3637
  border-radius: 10px;
3697
- -webkit-animation: w-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
3698
- animation: w-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
3638
+ animation: w-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
3699
3639
  }
3700
3640
  .w-progress-status-exception .w-progress-bg {
3701
3641
  background-color: #dc3545;
@@ -3727,14 +3667,6 @@ a.w-list-item:hover:not(.w-disabled) {
3727
3667
  transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
3728
3668
  position: relative;
3729
3669
  }
3730
- @-webkit-keyframes progress-bar-stripes {
3731
- from {
3732
- background-position: 0 0;
3733
- }
3734
- to {
3735
- background-position: 24px 0;
3736
- }
3737
- }
3738
3670
  @keyframes progress-bar-stripes {
3739
3671
  from {
3740
3672
  background-position: 0 0;
@@ -3743,20 +3675,6 @@ a.w-list-item:hover:not(.w-disabled) {
3743
3675
  background-position: 24px 0;
3744
3676
  }
3745
3677
  }
3746
- @-webkit-keyframes w-progress-active {
3747
- 0% {
3748
- opacity: 0.1;
3749
- width: 0;
3750
- }
3751
- 20% {
3752
- opacity: 0.5;
3753
- width: 0;
3754
- }
3755
- 100% {
3756
- opacity: 0;
3757
- width: 100%;
3758
- }
3759
- }
3760
3678
  @keyframes w-progress-active {
3761
3679
  0% {
3762
3680
  opacity: 0.1;
package/dist/uiw.js CHANGED
@@ -86,111 +86,14 @@ return /******/ (() => { // webpackBootstrap
86
86
  //# sourceMappingURL=copy-to-clipboard.umd.js.map
87
87
 
88
88
 
89
- /***/ }),
90
-
91
- /***/ 382:
92
- /***/ ((module) => {
93
-
94
- "use strict";
95
- /*
96
- object-assign
97
- (c) Sindre Sorhus
98
- @license MIT
99
- */
100
-
101
-
102
- /* eslint-disable no-unused-vars */
103
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
104
- var hasOwnProperty = Object.prototype.hasOwnProperty;
105
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
106
-
107
- function toObject(val) {
108
- if (val === null || val === undefined) {
109
- throw new TypeError('Object.assign cannot be called with null or undefined');
110
- }
111
-
112
- return Object(val);
113
- }
114
-
115
- function shouldUseNative() {
116
- try {
117
- if (!Object.assign) {
118
- return false;
119
- }
120
-
121
- // Detect buggy property enumeration order in older V8 versions.
122
-
123
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
124
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
125
- test1[5] = 'de';
126
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
127
- return false;
128
- }
129
-
130
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
131
- var test2 = {};
132
- for (var i = 0; i < 10; i++) {
133
- test2['_' + String.fromCharCode(i)] = i;
134
- }
135
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
136
- return test2[n];
137
- });
138
- if (order2.join('') !== '0123456789') {
139
- return false;
140
- }
141
-
142
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
143
- var test3 = {};
144
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
145
- test3[letter] = letter;
146
- });
147
- if (Object.keys(Object.assign({}, test3)).join('') !==
148
- 'abcdefghijklmnopqrst') {
149
- return false;
150
- }
151
-
152
- return true;
153
- } catch (err) {
154
- // We don't expect any of the above to throw, but better to be safe.
155
- return false;
156
- }
157
- }
158
-
159
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
160
- var from;
161
- var to = toObject(target);
162
- var symbols;
163
-
164
- for (var s = 1; s < arguments.length; s++) {
165
- from = Object(arguments[s]);
166
-
167
- for (var key in from) {
168
- if (hasOwnProperty.call(from, key)) {
169
- to[key] = from[key];
170
- }
171
- }
172
-
173
- if (getOwnPropertySymbols) {
174
- symbols = getOwnPropertySymbols(from);
175
- for (var i = 0; i < symbols.length; i++) {
176
- if (propIsEnumerable.call(from, symbols[i])) {
177
- to[symbols[i]] = from[symbols[i]];
178
- }
179
- }
180
- }
181
- }
182
-
183
- return to;
184
- };
185
-
186
-
187
89
  /***/ }),
188
90
 
189
91
  /***/ 858:
190
92
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
191
93
 
192
94
  "use strict";
193
- /** @license React v17.0.2
95
+ /**
96
+ * @license React
194
97
  * react-jsx-runtime.production.min.js
195
98
  *
196
99
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -198,8 +101,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
198
101
  * This source code is licensed under the MIT license found in the
199
102
  * LICENSE file in the root directory of this source tree.
200
103
  */
201
- __webpack_require__(382);var f=__webpack_require__(787),g=60103;exports.Fragment=60107;if("function"===typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element");exports.Fragment=h("react.fragment")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};
202
- function q(c,a,k){var b,d={},e=null,l=null;void 0!==k&&(e=""+k);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(l=a.ref);for(b in a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q;exports.jsxs=q;
104
+ var f=__webpack_require__(787),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
105
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
203
106
 
204
107
 
205
108
  /***/ }),
@@ -4645,10 +4548,13 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4645
4548
  node.style.height = '0px';
4646
4549
  refNode.current = node;
4647
4550
  setIsOpen(true);
4648
- setContextHeight({
4649
- height: popupRef.current.overlayDom.current.getBoundingClientRect().height,
4650
- ele: elementSource.current
4651
- });
4551
+
4552
+ if (popupRef.current && popupRef.current.overlayDom.current) {
4553
+ setContextHeight({
4554
+ height: popupRef.current.overlayDom.current.getBoundingClientRect().height,
4555
+ ele: elementSource.current
4556
+ });
4557
+ }
4652
4558
  }
4653
4559
 
4654
4560
  function onEntering(node) {
@@ -4657,15 +4563,20 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4657
4563
 
4658
4564
  function onEntered(node) {
4659
4565
  // node.style.height = 'initial';
4660
- node.style.height = popupRef.current.overlayDom.current.getBoundingClientRect().height + 'px';
4566
+ if (popupRef.current && popupRef.current.overlayDom.current) {
4567
+ node.style.height = popupRef.current.overlayDom.current.getBoundingClientRect().height + 'px';
4568
+ }
4661
4569
  }
4662
4570
 
4663
4571
  function onExiting(node) {
4664
4572
  node.style.height = '0px';
4665
- setContextHeight({
4666
- height: -popupRef.current.overlayDom.current.getBoundingClientRect().height,
4667
- ele: elementSource.current
4668
- });
4573
+
4574
+ if (popupRef.current && popupRef.current.overlayDom.current) {
4575
+ setContextHeight({
4576
+ height: -popupRef.current.overlayDom.current.getBoundingClientRect().height,
4577
+ ele: elementSource.current
4578
+ });
4579
+ }
4669
4580
  }
4670
4581
 
4671
4582
  function onExit(node) {
@@ -4695,7 +4606,9 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4695
4606
  menuProps.onClick = onClick;
4696
4607
  }
4697
4608
 
4698
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
4609
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
4610
+ "data-menu": "subitem",
4611
+ ref: ref,
4699
4612
  onClick: e => {
4700
4613
  if (collapse) {
4701
4614
  e.stopPropagation();
@@ -4704,36 +4617,32 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4704
4617
 
4705
4618
  elementSource.current = e.target;
4706
4619
  },
4707
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
4708
- "data-menu": "subitem",
4709
- ref: ref,
4710
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
4711
- placement: "rightTop",
4712
- autoAdjustOverflow: true,
4620
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
4621
+ placement: "rightTop",
4622
+ autoAdjustOverflow: true,
4623
+ disabled: disabled,
4624
+ isOpen: isOpen,
4625
+ usePortal: false,
4626
+ isOutside: true
4627
+ }, overlayTriggerProps, overlayProps, {
4628
+ ref: popupRef,
4629
+ overlay: /*#__PURE__*/(0,jsx_runtime.jsx)(Menu, _extends({}, menuProps, {
4630
+ style: !collapse ? {
4631
+ paddingLeft: inlineIndent
4632
+ } : {}
4633
+ })),
4634
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
4635
+ ref: null,
4713
4636
  disabled: disabled,
4714
- isOpen: isOpen,
4715
- usePortal: false,
4716
- isOutside: true
4717
- }, overlayTriggerProps, overlayProps, {
4718
- ref: popupRef,
4719
- overlay: /*#__PURE__*/(0,jsx_runtime.jsx)(Menu, _extends({}, menuProps, {
4720
- style: !collapse ? {
4721
- paddingLeft: inlineIndent
4722
- } : {}
4723
- })),
4724
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
4725
- ref: null,
4726
- disabled: disabled,
4727
- isSubMenuItem: true,
4728
- addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)(IconView, {
4729
- collapse: collapse,
4730
- prefixCls: prefixCls,
4731
- isOpen: isOpen
4732
- }),
4733
- className: [prefixCls ? prefixCls + "-title" : null, !collapse ? prefixCls + "-collapse-title" : null, className].filter(Boolean).join(' ').trim()
4734
- }))
4637
+ isSubMenuItem: true,
4638
+ addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)(IconView, {
4639
+ collapse: collapse,
4640
+ prefixCls: prefixCls,
4641
+ isOpen: isOpen
4642
+ }),
4643
+ className: [prefixCls ? prefixCls + "-title" : null, !collapse ? prefixCls + "-collapse-title" : null, className].filter(Boolean).join(' ').trim()
4735
4644
  }))
4736
- })
4645
+ }))
4737
4646
  });
4738
4647
  });
4739
4648
  SubMenu.displayName = 'uiw.SubMenu';