acud 1.0.6 → 1.0.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.
- package/dist/acud.css +31 -2
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +215 -696
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +6 -8
- package/dist/acud.min.js.map +1 -1
- package/es/card/style/index.css +1 -0
- package/es/date-picker/src/PickerPanel.js +1 -0
- package/es/date-picker/src/RangePicker.js +1 -0
- package/es/dialog-box/style/index.css +1 -0
- package/es/form/style/index.css +2 -1
- package/es/input-number/src/hooks/useFrame.d.ts +1 -1
- package/es/input-number/style/index.css +7 -0
- package/es/modal/style/index.css +1 -0
- package/es/pagination/style/index.css +2 -0
- package/es/popover/style/index.css +1 -0
- package/es/rate/style/index.css +1 -0
- package/es/select/style/index.css +2 -0
- package/es/slider/style/index.css +1 -0
- package/es/switch/style/index.css +1 -0
- package/es/tabs/style/index.css +1 -0
- package/es/tag/style/index.css +1 -0
- package/es/timeline/style/index.css +2 -0
- package/es/toast/style/index.less +1 -1
- package/es/tree/style/index.css +3 -0
- package/es/tree-select/style/index.css +3 -0
- package/es/virtual-list/List.js +7 -0
- package/lib/card/style/index.css +1 -0
- package/lib/date-picker/src/PickerPanel.js +1 -0
- package/lib/date-picker/src/RangePicker.js +1 -0
- package/lib/dialog-box/style/index.css +1 -0
- package/lib/form/style/index.css +2 -1
- package/lib/input-number/src/hooks/useFrame.d.ts +1 -1
- package/lib/input-number/style/index.css +7 -0
- package/lib/modal/style/index.css +1 -0
- package/lib/pagination/style/index.css +2 -0
- package/lib/popover/style/index.css +1 -0
- package/lib/rate/style/index.css +1 -0
- package/lib/select/style/index.css +2 -0
- package/lib/slider/style/index.css +1 -0
- package/lib/switch/style/index.css +1 -0
- package/lib/tabs/style/index.css +1 -0
- package/lib/tag/style/index.css +1 -0
- package/lib/timeline/style/index.css +2 -0
- package/lib/toast/style/index.less +1 -1
- package/lib/tree/style/index.css +3 -0
- package/lib/tree-select/style/index.css +3 -0
- package/lib/virtual-list/List.js +7 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -279
package/es/card/style/index.css
CHANGED
|
@@ -122,6 +122,7 @@ function PickerPanel(props) {
|
|
|
122
122
|
var now = generateConfig.getNow();
|
|
123
123
|
if (!date) return now; // When value is null and set showTime
|
|
124
124
|
|
|
125
|
+
// When value is null and set showTime
|
|
125
126
|
if (!mergedValue && showTime) {
|
|
126
127
|
if (_typeof(showTime) === 'object') {
|
|
127
128
|
return setDateTime(generateConfig, date, showTime.defaultValue || now);
|
|
@@ -172,6 +172,7 @@ function InnerRangePicker(props) {
|
|
|
172
172
|
} // Fill disabled unit
|
|
173
173
|
|
|
174
174
|
|
|
175
|
+
// Fill disabled unit
|
|
175
176
|
for (var i = 0; i < 2; i += 1) {
|
|
176
177
|
if (mergedDisabled[i] && !getValue(postValues, i) && !getValue(allowEmpty, i)) {
|
|
177
178
|
postValues = updateValues(postValues, generateConfig.getNow(), i);
|
package/es/form/style/index.css
CHANGED
|
@@ -742,7 +742,8 @@
|
|
|
742
742
|
.acud-form-item-label > label .acud-form-item-tooltip {
|
|
743
743
|
color: #B8BABF;
|
|
744
744
|
cursor: help;
|
|
745
|
-
writing-mode:
|
|
745
|
+
-ms-writing-mode: lr-tb;
|
|
746
|
+
writing-mode: horizontal-tb;
|
|
746
747
|
-webkit-margin-start: 4px;
|
|
747
748
|
margin-inline-start: 4px;
|
|
748
749
|
}
|
|
@@ -249,6 +249,7 @@
|
|
|
249
249
|
transition: all 0.1s linear;
|
|
250
250
|
-webkit-user-select: none;
|
|
251
251
|
-moz-user-select: none;
|
|
252
|
+
-ms-user-select: none;
|
|
252
253
|
user-select: none;
|
|
253
254
|
}
|
|
254
255
|
.acud-input-number-handler-up-inner > *,
|
|
@@ -313,12 +314,18 @@
|
|
|
313
314
|
.acud-input-number-input::-moz-placeholder {
|
|
314
315
|
opacity: 1;
|
|
315
316
|
}
|
|
317
|
+
.acud-input-number-input:-ms-input-placeholder {
|
|
318
|
+
color: #D4D6D9;
|
|
319
|
+
}
|
|
316
320
|
.acud-input-number-input::placeholder {
|
|
317
321
|
color: #D4D6D9;
|
|
318
322
|
}
|
|
319
323
|
.acud-input-number-input:-moz-placeholder-shown {
|
|
320
324
|
text-overflow: ellipsis;
|
|
321
325
|
}
|
|
326
|
+
.acud-input-number-input:-ms-input-placeholder {
|
|
327
|
+
text-overflow: ellipsis;
|
|
328
|
+
}
|
|
322
329
|
.acud-input-number-input:placeholder-shown {
|
|
323
330
|
text-overflow: ellipsis;
|
|
324
331
|
}
|
package/es/modal/style/index.css
CHANGED
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
cursor: pointer;
|
|
68
68
|
-webkit-user-select: none;
|
|
69
69
|
-moz-user-select: none;
|
|
70
|
+
-ms-user-select: none;
|
|
70
71
|
user-select: none;
|
|
71
72
|
box-sizing: border-box;
|
|
72
73
|
font-weight: 400;
|
|
@@ -250,6 +251,7 @@
|
|
|
250
251
|
cursor: pointer;
|
|
251
252
|
-webkit-user-select: none;
|
|
252
253
|
-moz-user-select: none;
|
|
254
|
+
-ms-user-select: none;
|
|
253
255
|
user-select: none;
|
|
254
256
|
}
|
|
255
257
|
.acud-pagination-prev.acud-pagination-disabled button,
|
package/es/rate/style/index.css
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
position: relative;
|
|
39
39
|
-webkit-user-select: none;
|
|
40
40
|
-moz-user-select: none;
|
|
41
|
+
-ms-user-select: none;
|
|
41
42
|
user-select: none;
|
|
42
43
|
color: #151B26;
|
|
43
44
|
}
|
|
@@ -190,6 +191,7 @@
|
|
|
190
191
|
transition: font-size 0.3s, line-height 0.3s, height 0.3s;
|
|
191
192
|
-webkit-user-select: none;
|
|
192
193
|
-moz-user-select: none;
|
|
194
|
+
-ms-user-select: none;
|
|
193
195
|
user-select: none;
|
|
194
196
|
-webkit-margin-end: 5px;
|
|
195
197
|
margin-inline-end: 5px;
|
package/es/tabs/style/index.css
CHANGED
package/es/tag/style/index.css
CHANGED
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
cursor: pointer;
|
|
167
167
|
-webkit-user-select: none;
|
|
168
168
|
-moz-user-select: none;
|
|
169
|
+
-ms-user-select: none;
|
|
169
170
|
user-select: none;
|
|
170
171
|
}
|
|
171
172
|
.common-content-link {
|
|
@@ -578,6 +579,7 @@
|
|
|
578
579
|
cursor: pointer;
|
|
579
580
|
-webkit-user-select: none;
|
|
580
581
|
-moz-user-select: none;
|
|
582
|
+
-ms-user-select: none;
|
|
581
583
|
user-select: none;
|
|
582
584
|
}
|
|
583
585
|
.acud-timeline-item-content-link {
|
package/es/tree/style/index.css
CHANGED
|
@@ -277,6 +277,7 @@
|
|
|
277
277
|
white-space: nowrap;
|
|
278
278
|
-webkit-user-select: none;
|
|
279
279
|
-moz-user-select: none;
|
|
280
|
+
-ms-user-select: none;
|
|
280
281
|
user-select: none;
|
|
281
282
|
}
|
|
282
283
|
.acud-tree-indent-unit {
|
|
@@ -294,6 +295,7 @@
|
|
|
294
295
|
cursor: pointer;
|
|
295
296
|
-webkit-user-select: none;
|
|
296
297
|
-moz-user-select: none;
|
|
298
|
+
-ms-user-select: none;
|
|
297
299
|
user-select: none;
|
|
298
300
|
}
|
|
299
301
|
.acud-tree-switcher .acud-tree-switcher-icon,
|
|
@@ -435,6 +437,7 @@
|
|
|
435
437
|
line-height: 24px;
|
|
436
438
|
-webkit-user-select: none;
|
|
437
439
|
-moz-user-select: none;
|
|
440
|
+
-ms-user-select: none;
|
|
438
441
|
user-select: none;
|
|
439
442
|
}
|
|
440
443
|
.acud-tree-node-content-wrapper .acud-tree-drop-indicator {
|
|
@@ -292,6 +292,7 @@
|
|
|
292
292
|
white-space: nowrap;
|
|
293
293
|
-webkit-user-select: none;
|
|
294
294
|
-moz-user-select: none;
|
|
295
|
+
-ms-user-select: none;
|
|
295
296
|
user-select: none;
|
|
296
297
|
}
|
|
297
298
|
.acud-select-tree-indent-unit {
|
|
@@ -309,6 +310,7 @@
|
|
|
309
310
|
cursor: pointer;
|
|
310
311
|
-webkit-user-select: none;
|
|
311
312
|
-moz-user-select: none;
|
|
313
|
+
-ms-user-select: none;
|
|
312
314
|
user-select: none;
|
|
313
315
|
}
|
|
314
316
|
.acud-select-tree-switcher .acud-tree-switcher-icon,
|
|
@@ -450,6 +452,7 @@
|
|
|
450
452
|
line-height: 24px;
|
|
451
453
|
-webkit-user-select: none;
|
|
452
454
|
-moz-user-select: none;
|
|
455
|
+
-ms-user-select: none;
|
|
453
456
|
user-select: none;
|
|
454
457
|
}
|
|
455
458
|
.acud-select-tree-node-content-wrapper .acud-tree-drop-indicator {
|
package/es/virtual-list/List.js
CHANGED
|
@@ -135,6 +135,7 @@ export function RawList(props, ref) {
|
|
|
135
135
|
} // Always use virtual scroll bar in avoid shaking
|
|
136
136
|
|
|
137
137
|
|
|
138
|
+
// Always use virtual scroll bar in avoid shaking
|
|
138
139
|
if (!inVirtual) {
|
|
139
140
|
return {
|
|
140
141
|
scrollHeight: ((_a = fillerInnerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0,
|
|
@@ -156,12 +157,14 @@ export function RawList(props, ref) {
|
|
|
156
157
|
var cacheHeight = heights.get(key);
|
|
157
158
|
var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
|
|
158
159
|
|
|
160
|
+
// Check item top in the range
|
|
159
161
|
if (currentItemBottom >= scrollTop && startIndex === undefined) {
|
|
160
162
|
startIndex = i;
|
|
161
163
|
startOffset = itemTop;
|
|
162
164
|
} // Check item bottom in the range. We will render additional one item for motion usage
|
|
163
165
|
|
|
164
166
|
|
|
167
|
+
// Check item bottom in the range. We will render additional one item for motion usage
|
|
165
168
|
if (currentItemBottom > scrollTop + height && endIndex === undefined) {
|
|
166
169
|
endIndex = i;
|
|
167
170
|
}
|
|
@@ -172,6 +175,9 @@ export function RawList(props, ref) {
|
|
|
172
175
|
/* istanbul ignore next */
|
|
173
176
|
|
|
174
177
|
|
|
178
|
+
// Fallback to normal if not match. This code should never reach
|
|
179
|
+
|
|
180
|
+
/* istanbul ignore next */
|
|
175
181
|
if (startIndex === undefined) {
|
|
176
182
|
startIndex = 0;
|
|
177
183
|
startOffset = 0;
|
|
@@ -182,6 +188,7 @@ export function RawList(props, ref) {
|
|
|
182
188
|
} // Give cache to improve scroll experience
|
|
183
189
|
|
|
184
190
|
|
|
191
|
+
// Give cache to improve scroll experience
|
|
185
192
|
endIndex = Math.min(endIndex + 1, mergedData.length);
|
|
186
193
|
return {
|
|
187
194
|
scrollHeight: itemTop,
|
package/lib/card/style/index.css
CHANGED
|
@@ -159,6 +159,7 @@ function PickerPanel(props) {
|
|
|
159
159
|
var now = generateConfig.getNow();
|
|
160
160
|
if (!date) return now; // When value is null and set showTime
|
|
161
161
|
|
|
162
|
+
// When value is null and set showTime
|
|
162
163
|
if (!mergedValue && showTime) {
|
|
163
164
|
if ((0, _typeof2["default"])(showTime) === 'object') {
|
|
164
165
|
return (0, _timeUtil.setDateTime)(generateConfig, date, showTime.defaultValue || now);
|
|
@@ -212,6 +212,7 @@ function InnerRangePicker(props) {
|
|
|
212
212
|
} // Fill disabled unit
|
|
213
213
|
|
|
214
214
|
|
|
215
|
+
// Fill disabled unit
|
|
215
216
|
for (var i = 0; i < 2; i += 1) {
|
|
216
217
|
if (mergedDisabled[i] && !(0, _miscUtil.getValue)(postValues, i) && !(0, _miscUtil.getValue)(allowEmpty, i)) {
|
|
217
218
|
postValues = (0, _miscUtil.updateValues)(postValues, generateConfig.getNow(), i);
|
package/lib/form/style/index.css
CHANGED
|
@@ -742,7 +742,8 @@
|
|
|
742
742
|
.acud-form-item-label > label .acud-form-item-tooltip {
|
|
743
743
|
color: #B8BABF;
|
|
744
744
|
cursor: help;
|
|
745
|
-
writing-mode:
|
|
745
|
+
-ms-writing-mode: lr-tb;
|
|
746
|
+
writing-mode: horizontal-tb;
|
|
746
747
|
-webkit-margin-start: 4px;
|
|
747
748
|
margin-inline-start: 4px;
|
|
748
749
|
}
|
|
@@ -249,6 +249,7 @@
|
|
|
249
249
|
transition: all 0.1s linear;
|
|
250
250
|
-webkit-user-select: none;
|
|
251
251
|
-moz-user-select: none;
|
|
252
|
+
-ms-user-select: none;
|
|
252
253
|
user-select: none;
|
|
253
254
|
}
|
|
254
255
|
.acud-input-number-handler-up-inner > *,
|
|
@@ -313,12 +314,18 @@
|
|
|
313
314
|
.acud-input-number-input::-moz-placeholder {
|
|
314
315
|
opacity: 1;
|
|
315
316
|
}
|
|
317
|
+
.acud-input-number-input:-ms-input-placeholder {
|
|
318
|
+
color: #D4D6D9;
|
|
319
|
+
}
|
|
316
320
|
.acud-input-number-input::placeholder {
|
|
317
321
|
color: #D4D6D9;
|
|
318
322
|
}
|
|
319
323
|
.acud-input-number-input:-moz-placeholder-shown {
|
|
320
324
|
text-overflow: ellipsis;
|
|
321
325
|
}
|
|
326
|
+
.acud-input-number-input:-ms-input-placeholder {
|
|
327
|
+
text-overflow: ellipsis;
|
|
328
|
+
}
|
|
322
329
|
.acud-input-number-input:placeholder-shown {
|
|
323
330
|
text-overflow: ellipsis;
|
|
324
331
|
}
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
cursor: pointer;
|
|
68
68
|
-webkit-user-select: none;
|
|
69
69
|
-moz-user-select: none;
|
|
70
|
+
-ms-user-select: none;
|
|
70
71
|
user-select: none;
|
|
71
72
|
box-sizing: border-box;
|
|
72
73
|
font-weight: 400;
|
|
@@ -250,6 +251,7 @@
|
|
|
250
251
|
cursor: pointer;
|
|
251
252
|
-webkit-user-select: none;
|
|
252
253
|
-moz-user-select: none;
|
|
254
|
+
-ms-user-select: none;
|
|
253
255
|
user-select: none;
|
|
254
256
|
}
|
|
255
257
|
.acud-pagination-prev.acud-pagination-disabled button,
|
package/lib/rate/style/index.css
CHANGED
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
position: relative;
|
|
39
39
|
-webkit-user-select: none;
|
|
40
40
|
-moz-user-select: none;
|
|
41
|
+
-ms-user-select: none;
|
|
41
42
|
user-select: none;
|
|
42
43
|
color: #151B26;
|
|
43
44
|
}
|
|
@@ -190,6 +191,7 @@
|
|
|
190
191
|
transition: font-size 0.3s, line-height 0.3s, height 0.3s;
|
|
191
192
|
-webkit-user-select: none;
|
|
192
193
|
-moz-user-select: none;
|
|
194
|
+
-ms-user-select: none;
|
|
193
195
|
user-select: none;
|
|
194
196
|
-webkit-margin-end: 5px;
|
|
195
197
|
margin-inline-end: 5px;
|
package/lib/tabs/style/index.css
CHANGED
package/lib/tag/style/index.css
CHANGED
|
@@ -166,6 +166,7 @@
|
|
|
166
166
|
cursor: pointer;
|
|
167
167
|
-webkit-user-select: none;
|
|
168
168
|
-moz-user-select: none;
|
|
169
|
+
-ms-user-select: none;
|
|
169
170
|
user-select: none;
|
|
170
171
|
}
|
|
171
172
|
.common-content-link {
|
|
@@ -578,6 +579,7 @@
|
|
|
578
579
|
cursor: pointer;
|
|
579
580
|
-webkit-user-select: none;
|
|
580
581
|
-moz-user-select: none;
|
|
582
|
+
-ms-user-select: none;
|
|
581
583
|
user-select: none;
|
|
582
584
|
}
|
|
583
585
|
.acud-timeline-item-content-link {
|
package/lib/tree/style/index.css
CHANGED
|
@@ -277,6 +277,7 @@
|
|
|
277
277
|
white-space: nowrap;
|
|
278
278
|
-webkit-user-select: none;
|
|
279
279
|
-moz-user-select: none;
|
|
280
|
+
-ms-user-select: none;
|
|
280
281
|
user-select: none;
|
|
281
282
|
}
|
|
282
283
|
.acud-tree-indent-unit {
|
|
@@ -294,6 +295,7 @@
|
|
|
294
295
|
cursor: pointer;
|
|
295
296
|
-webkit-user-select: none;
|
|
296
297
|
-moz-user-select: none;
|
|
298
|
+
-ms-user-select: none;
|
|
297
299
|
user-select: none;
|
|
298
300
|
}
|
|
299
301
|
.acud-tree-switcher .acud-tree-switcher-icon,
|
|
@@ -435,6 +437,7 @@
|
|
|
435
437
|
line-height: 24px;
|
|
436
438
|
-webkit-user-select: none;
|
|
437
439
|
-moz-user-select: none;
|
|
440
|
+
-ms-user-select: none;
|
|
438
441
|
user-select: none;
|
|
439
442
|
}
|
|
440
443
|
.acud-tree-node-content-wrapper .acud-tree-drop-indicator {
|
|
@@ -292,6 +292,7 @@
|
|
|
292
292
|
white-space: nowrap;
|
|
293
293
|
-webkit-user-select: none;
|
|
294
294
|
-moz-user-select: none;
|
|
295
|
+
-ms-user-select: none;
|
|
295
296
|
user-select: none;
|
|
296
297
|
}
|
|
297
298
|
.acud-select-tree-indent-unit {
|
|
@@ -309,6 +310,7 @@
|
|
|
309
310
|
cursor: pointer;
|
|
310
311
|
-webkit-user-select: none;
|
|
311
312
|
-moz-user-select: none;
|
|
313
|
+
-ms-user-select: none;
|
|
312
314
|
user-select: none;
|
|
313
315
|
}
|
|
314
316
|
.acud-select-tree-switcher .acud-tree-switcher-icon,
|
|
@@ -450,6 +452,7 @@
|
|
|
450
452
|
line-height: 24px;
|
|
451
453
|
-webkit-user-select: none;
|
|
452
454
|
-moz-user-select: none;
|
|
455
|
+
-ms-user-select: none;
|
|
453
456
|
user-select: none;
|
|
454
457
|
}
|
|
455
458
|
.acud-select-tree-node-content-wrapper .acud-tree-drop-indicator {
|
package/lib/virtual-list/List.js
CHANGED
|
@@ -165,6 +165,7 @@ function RawList(props, ref) {
|
|
|
165
165
|
} // Always use virtual scroll bar in avoid shaking
|
|
166
166
|
|
|
167
167
|
|
|
168
|
+
// Always use virtual scroll bar in avoid shaking
|
|
168
169
|
if (!inVirtual) {
|
|
169
170
|
return {
|
|
170
171
|
scrollHeight: ((_a = fillerInnerRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0,
|
|
@@ -186,12 +187,14 @@ function RawList(props, ref) {
|
|
|
186
187
|
var cacheHeight = heights.get(key);
|
|
187
188
|
var currentItemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight); // Check item top in the range
|
|
188
189
|
|
|
190
|
+
// Check item top in the range
|
|
189
191
|
if (currentItemBottom >= scrollTop && startIndex === undefined) {
|
|
190
192
|
startIndex = i;
|
|
191
193
|
startOffset = itemTop;
|
|
192
194
|
} // Check item bottom in the range. We will render additional one item for motion usage
|
|
193
195
|
|
|
194
196
|
|
|
197
|
+
// Check item bottom in the range. We will render additional one item for motion usage
|
|
195
198
|
if (currentItemBottom > scrollTop + height && endIndex === undefined) {
|
|
196
199
|
endIndex = i;
|
|
197
200
|
}
|
|
@@ -202,6 +205,9 @@ function RawList(props, ref) {
|
|
|
202
205
|
/* istanbul ignore next */
|
|
203
206
|
|
|
204
207
|
|
|
208
|
+
// Fallback to normal if not match. This code should never reach
|
|
209
|
+
|
|
210
|
+
/* istanbul ignore next */
|
|
205
211
|
if (startIndex === undefined) {
|
|
206
212
|
startIndex = 0;
|
|
207
213
|
startOffset = 0;
|
|
@@ -212,6 +218,7 @@ function RawList(props, ref) {
|
|
|
212
218
|
} // Give cache to improve scroll experience
|
|
213
219
|
|
|
214
220
|
|
|
221
|
+
// Give cache to improve scroll experience
|
|
215
222
|
endIndex = Math.min(endIndex + 1, mergedData.length);
|
|
216
223
|
return {
|
|
217
224
|
scrollHeight: itemTop,
|