shineout 3.3.0-beta.5 → 3.3.0-beta.6
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/cjs/index.js +1 -1
- package/dist/shineout.js +144 -65
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.3.0-beta.
|
|
479
|
+
version: '3.3.0-beta.6'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11962
11962
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11963
|
-
/* harmony default export */ var version = ('3.3.0-beta.
|
|
11963
|
+
/* harmony default export */ var version = ('3.3.0-beta.6');
|
|
11964
11964
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11965
11965
|
|
|
11966
11966
|
|
|
@@ -12524,7 +12524,7 @@ var alertTokens = {
|
|
|
12524
12524
|
var breadcrumbTokens = {
|
|
12525
12525
|
breadcrumbFontSize: 'Font-14',
|
|
12526
12526
|
breadcrumbFontColor: 'Neutral-text-5',
|
|
12527
|
-
|
|
12527
|
+
breadcrumbFontWeight: 'Weight-regular',
|
|
12528
12528
|
breadcrumbLinkColor: 'Neutral-text-3',
|
|
12529
12529
|
breadcrumbLinkHoverColor: 'Brand-5',
|
|
12530
12530
|
breadcrumbDefaultLinkColor: 'Brand-6',
|
|
@@ -13357,6 +13357,7 @@ var dropdownTokens = {
|
|
|
13357
13357
|
dropdownListPaddingX: 'Spacing-4',
|
|
13358
13358
|
dropdownListPaddingY: 'Spacing-4',
|
|
13359
13359
|
dropdownListFontSize: 'Font-14',
|
|
13360
|
+
dropdownListFontWeight: 'Weight-regular',
|
|
13360
13361
|
dropdownListSmallBorderRadius: 'Radius-default',
|
|
13361
13362
|
dropdownListSmallPaddingX: 'Spacing-4',
|
|
13362
13363
|
dropdownListSmallPaddingY: 'Spacing-4',
|
|
@@ -13395,6 +13396,7 @@ var dropdownTokens = {
|
|
|
13395
13396
|
dropdownOptionGroupPaddingBottom: 'Spacing-2',
|
|
13396
13397
|
dropdownOptionGroupFontSize: 'Font-12',
|
|
13397
13398
|
dropdownOptionGroupFontColor: 'Neutral-text-3',
|
|
13399
|
+
dropdownOptionGroupFontWeight: 'Weight-regular',
|
|
13398
13400
|
dropdownOptionGroupSmallX: 'Spacing-8',
|
|
13399
13401
|
dropdownOptionGroupSmallTop: 'Spacing-4',
|
|
13400
13402
|
dropdownOptionGroupLargeX: 'Spacing-12',
|
|
@@ -13633,6 +13635,7 @@ var menuTokens = {
|
|
|
13633
13635
|
menuPopoverPaddingY: 'Spacing-4',
|
|
13634
13636
|
menuItemBackgroundColor: 'Neutral-fill-1',
|
|
13635
13637
|
menuItemFontColor: 'Neutral-text-5',
|
|
13638
|
+
menuItemFontWeight: 'Weight-regular',
|
|
13636
13639
|
menuItemHoverBackgroundColor: 'Neutral-fill-2',
|
|
13637
13640
|
menuItemHoverFontColor: 'Neutral-text-5',
|
|
13638
13641
|
menuItemActiveBackgroundColor: 'Brand-1',
|
|
@@ -13730,7 +13733,7 @@ var modalTokens = {
|
|
|
13730
13733
|
modalPanelRadius: 'Radius-default',
|
|
13731
13734
|
modalPanelFontSize: 'Font-14',
|
|
13732
13735
|
modalHeaderIconMarginEnd: 'Spacing-8',
|
|
13733
|
-
modalHeaderIconMarginTop: '
|
|
13736
|
+
modalHeaderIconMarginTop: 'Spacing-2',
|
|
13734
13737
|
modalHeaderIconSize: 'Size-8',
|
|
13735
13738
|
modalHeaderCloseMarginXStart: 'Spacing-16',
|
|
13736
13739
|
modalHeaderCloseSize: 'Size-8',
|
|
@@ -13738,6 +13741,11 @@ var modalTokens = {
|
|
|
13738
13741
|
modalHeaderCloseColor: 'Neutral-text-4',
|
|
13739
13742
|
modalHeaderCloseBackgroundColor: 'Neutral-fill-2',
|
|
13740
13743
|
modalHeaderFontSize: 'Font-16',
|
|
13744
|
+
modalHeaderFontWeight: 'Weight-medium',
|
|
13745
|
+
modalHeaderFontColor: 'Neutral-text-5',
|
|
13746
|
+
modalBodyFontColor: 'Neutral-text-5',
|
|
13747
|
+
modalBodyFontWeight: 'Weight-regular',
|
|
13748
|
+
modalBodyFontSize: 'Font-14',
|
|
13741
13749
|
modalDrawerTitlePaddingY: 'Spacing-12',
|
|
13742
13750
|
modalDrawerTitlePaddingX: 'Spacing-16',
|
|
13743
13751
|
modalDrawerTitleBackgroundColor: 'Neutral-fill-2',
|
|
@@ -14160,14 +14168,16 @@ var switchTokens = {
|
|
|
14160
14168
|
switchLargeWidth: 'Size-27',
|
|
14161
14169
|
switchBackgroundColor: 'Neutral-fill-4',
|
|
14162
14170
|
switchDisabledBackgroundColor: 'Neutral-fill-2',
|
|
14163
|
-
switchDisabledCircleFill: 'Neutral-
|
|
14171
|
+
switchDisabledCircleFill: 'Neutral-fill-1',
|
|
14164
14172
|
switchDisabledFontColor: 'Neutral-text-2',
|
|
14165
14173
|
switchLoadingBackgroundColor: 'Neutral-fill-2',
|
|
14166
14174
|
switchLoadingCircleFill: 'Neutral-text-2',
|
|
14167
14175
|
switchLoadingFontColor: 'Neutral-text-2',
|
|
14168
14176
|
switchCheckedBackgroundColor: 'Brand-6',
|
|
14177
|
+
switchCheckedCircleFill: 'Neutral-fill-1',
|
|
14169
14178
|
switchCheckedFontColor: 'Neutral-text-1',
|
|
14170
14179
|
switchCheckedDisabledBackgroundColor: 'Brand-3',
|
|
14180
|
+
switchCheckedDisabledCircleFill: 'Neutral-fill-1',
|
|
14171
14181
|
switchCheckedDisabledFontColor: 'Neutral-text-1',
|
|
14172
14182
|
switchCheckedLoadingBackgroundColor: 'Brand-3',
|
|
14173
14183
|
switchCheckedLoadingFontColor: 'Neutral-text-1'
|
|
@@ -15152,7 +15162,7 @@ var breadcrumbStyle = {
|
|
|
15152
15162
|
wrapper: {
|
|
15153
15163
|
lineHeight: src.lineHeightDynamic,
|
|
15154
15164
|
fontSize: src.breadcrumbFontSize,
|
|
15155
|
-
fontWeight: src.
|
|
15165
|
+
fontWeight: src.breadcrumbFontWeight,
|
|
15156
15166
|
display: 'flex',
|
|
15157
15167
|
alignItems: 'center',
|
|
15158
15168
|
color: src.breadcrumbFontColor,
|
|
@@ -15227,7 +15237,7 @@ var breadcrumbStyle = {
|
|
|
15227
15237
|
dropdownItem: {
|
|
15228
15238
|
lineHeight: src.lineHeightDynamic,
|
|
15229
15239
|
fontSize: src.dropdownListFontSize,
|
|
15230
|
-
fontWeight: src.
|
|
15240
|
+
fontWeight: src.breadcrumbFontWeight,
|
|
15231
15241
|
cursor: 'pointer',
|
|
15232
15242
|
color: src.dropdownOptionFontColor,
|
|
15233
15243
|
borderRadius: src.dropdownOptionBorderRadius,
|
|
@@ -16282,7 +16292,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
16282
16292
|
}, "&:not($".concat(name, "Disabled):not($").concat(name, "Error)"), {
|
|
16283
16293
|
backgroundColor: token.hoverBackgroundColor
|
|
16284
16294
|
}),
|
|
16285
|
-
'[data-soui-role="input-group"]
|
|
16295
|
+
'[data-soui-role="input-group"] &&&, [data-soui-role="input-group"] &&&:hover': {
|
|
16286
16296
|
borderWidth: 0,
|
|
16287
16297
|
borderRadius: 0,
|
|
16288
16298
|
boxShadow: 'none',
|
|
@@ -17841,6 +17851,10 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17841
17851
|
visibility: 'visible'
|
|
17842
17852
|
}
|
|
17843
17853
|
},
|
|
17854
|
+
datetimeHide: {
|
|
17855
|
+
opacity: '0',
|
|
17856
|
+
pointerEvents: 'none'
|
|
17857
|
+
},
|
|
17844
17858
|
quickPicker: {
|
|
17845
17859
|
padding: "".concat(src.datePickerQuickPanelPaddingY, " ").concat(src.datePickerQuickPanelPaddingX),
|
|
17846
17860
|
display: 'flex',
|
|
@@ -18153,7 +18167,7 @@ var dropdown_dropdown = {
|
|
|
18153
18167
|
},
|
|
18154
18168
|
list: {
|
|
18155
18169
|
position: 'absolute',
|
|
18156
|
-
fontWeight:
|
|
18170
|
+
fontWeight: src.dropdownListFontWeight,
|
|
18157
18171
|
minWidth: '100%',
|
|
18158
18172
|
zIndex: 1000,
|
|
18159
18173
|
textAlign: 'left',
|
|
@@ -18172,12 +18186,12 @@ var dropdown_dropdown = {
|
|
|
18172
18186
|
},
|
|
18173
18187
|
listSmall: {
|
|
18174
18188
|
fontSize: src.dropdownListSmallFontSize,
|
|
18175
|
-
borderRadius: src.
|
|
18189
|
+
borderRadius: src.dropdownListBorderRadius,
|
|
18176
18190
|
padding: "".concat(src.dropdownListSmallPaddingY, " ").concat(src.dropdownListSmallPaddingX)
|
|
18177
18191
|
},
|
|
18178
18192
|
listLarge: {
|
|
18179
18193
|
fontSize: src.dropdownListLargeFontSize,
|
|
18180
|
-
borderRadius: src.
|
|
18194
|
+
borderRadius: src.dropdownListBorderRadius,
|
|
18181
18195
|
padding: "".concat(src.dropdownListLargePaddingY, " ").concat(src.dropdownListLargePaddingX)
|
|
18182
18196
|
},
|
|
18183
18197
|
listHasChildren: {
|
|
@@ -18300,6 +18314,7 @@ var dropdown_dropdown = {
|
|
|
18300
18314
|
optionGroup: {
|
|
18301
18315
|
padding: "".concat(src.dropdownOptionGroupPaddingTop, " ").concat(src.dropdownOptionGroupPaddingX, " ").concat(src.dropdownOptionGroupPaddingBottom, " ").concat(src.dropdownOptionGroupPaddingX),
|
|
18302
18316
|
fontSize: src.dropdownOptionGroupFontSize,
|
|
18317
|
+
fontWeight: src.dropdownOptionGroupFontWeight,
|
|
18303
18318
|
color: src.dropdownOptionGroupFontColor,
|
|
18304
18319
|
'$listSmall &': {
|
|
18305
18320
|
padding: "".concat(src.dropdownOptionGroupSmallTop, " ").concat(src.dropdownOptionGroupSmallX, " 0 ").concat(src.dropdownOptionGroupSmallX)
|
|
@@ -19327,9 +19342,14 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
|
|
|
19327
19342
|
backgroundColor: 'transparent',
|
|
19328
19343
|
boxSizing: 'border-box',
|
|
19329
19344
|
fontWeight: 'inherit',
|
|
19345
|
+
'$wrapper:not($wrapperDisabled) &::placeholder': {
|
|
19346
|
+
color: src.inputPlaceholderColor
|
|
19347
|
+
},
|
|
19348
|
+
'$wrapperDisabled &::placeholder': {
|
|
19349
|
+
color: src.inputDisabledPlaceholderColor
|
|
19350
|
+
},
|
|
19330
19351
|
'&::placeholder': {
|
|
19331
19352
|
fontWeight: src.inputPlaceholderFontWeight,
|
|
19332
|
-
color: src.inputPlaceholderColor,
|
|
19333
19353
|
fontSize: 'inherit'
|
|
19334
19354
|
}
|
|
19335
19355
|
},
|
|
@@ -20029,7 +20049,11 @@ var menuStyle = {
|
|
|
20029
20049
|
display: 'inline-flex'
|
|
20030
20050
|
},
|
|
20031
20051
|
titleContent: {
|
|
20032
|
-
whiteSpace: 'pre-wrap'
|
|
20052
|
+
whiteSpace: 'pre-wrap',
|
|
20053
|
+
display: 'flex',
|
|
20054
|
+
minWidth: 0,
|
|
20055
|
+
alignItems: 'center',
|
|
20056
|
+
fontWeight: src.menuItemFontWeight
|
|
20033
20057
|
// '$wrapperCollpase &': {
|
|
20034
20058
|
// transition: `opacity ${animationDuration} ${transitionFunc}`,
|
|
20035
20059
|
// },
|
|
@@ -20650,7 +20674,8 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
|
|
|
20650
20674
|
flex: '1',
|
|
20651
20675
|
minWidth: 0,
|
|
20652
20676
|
textAlign: 'left',
|
|
20653
|
-
|
|
20677
|
+
color: src.modalHeaderFontColor,
|
|
20678
|
+
fontWeight: src.modalHeaderFontWeight,
|
|
20654
20679
|
fontSize: src.modalHeaderFontSize
|
|
20655
20680
|
},
|
|
20656
20681
|
headerClose: {
|
|
@@ -20680,8 +20705,12 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
|
|
|
20680
20705
|
},
|
|
20681
20706
|
body: {
|
|
20682
20707
|
flex: '1 1 auto',
|
|
20683
|
-
minHeight: '1px'
|
|
20708
|
+
minHeight: '1px',
|
|
20684
20709
|
// overflow: 'auto',
|
|
20710
|
+
color: src.modalBodyFontColor,
|
|
20711
|
+
fontSize: src.modalBodyFontSize,
|
|
20712
|
+
fontWeight: src.modalBodyFontWeight,
|
|
20713
|
+
lineHeight: src.lineHeightDynamic
|
|
20685
20714
|
},
|
|
20686
20715
|
bodyWithIcon: {
|
|
20687
20716
|
paddingLeft: "calc(".concat(src.modalHeaderIconMarginEnd, " + ").concat(src.modalHeaderIconSize, ")")
|
|
@@ -23960,6 +23989,7 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
|
|
|
23960
23989
|
justifyContent: 'center',
|
|
23961
23990
|
color: 'red',
|
|
23962
23991
|
'$wrapperChecked &': {
|
|
23992
|
+
backgroundColor: src.switchCheckedCircleFill,
|
|
23963
23993
|
'&[dir=ltr]': {
|
|
23964
23994
|
right: src.switchPaddingX,
|
|
23965
23995
|
left: "calc(100% - ".concat(src.switchCircleSize, " - ").concat(src.switchPaddingX, ")")
|
|
@@ -24001,6 +24031,12 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
|
|
|
24001
24031
|
left: src.switchLargePaddingX,
|
|
24002
24032
|
top: src.switchLargePaddingY
|
|
24003
24033
|
},
|
|
24034
|
+
'$wrapperDisabled:not($wrapperChecked) &': {
|
|
24035
|
+
backgroundColor: src.switchDisabledCircleFill
|
|
24036
|
+
},
|
|
24037
|
+
'$wrapperDisabled &': {
|
|
24038
|
+
backgroundColor: src.switchCheckedDisabledCircleFill
|
|
24039
|
+
},
|
|
24004
24040
|
borderRadius: '50%',
|
|
24005
24041
|
position: 'absolute',
|
|
24006
24042
|
backgroundColor: src.switchCircleFill,
|
|
@@ -28124,7 +28160,7 @@ var horizontalPosition = ['left-bottom', 'left-top', 'right-bottom', 'right-top'
|
|
|
28124
28160
|
var verticalPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'bottom', 'top'];
|
|
28125
28161
|
var hideStyle = {
|
|
28126
28162
|
pointerEvents: 'none',
|
|
28127
|
-
position: '
|
|
28163
|
+
position: 'fixed',
|
|
28128
28164
|
zIndex: -1000,
|
|
28129
28165
|
opacity: 0
|
|
28130
28166
|
};
|
|
@@ -32744,7 +32780,6 @@ function removeProtocol(url) {
|
|
|
32744
32780
|
short: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
32745
32781
|
long: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
|
|
32746
32782
|
},
|
|
32747
|
-
pickerTitle: ['开始时间', '结束时间'],
|
|
32748
32783
|
timeOfDayValues: ['上午', '下午'],
|
|
32749
32784
|
ok: '确定',
|
|
32750
32785
|
cancel: '取消',
|
|
@@ -32810,7 +32845,6 @@ function removeProtocol(url) {
|
|
|
32810
32845
|
short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
32811
32846
|
long: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
|
32812
32847
|
},
|
|
32813
|
-
pickerTitle: ['Start Time', 'End Time'],
|
|
32814
32848
|
timeOfDayValues: ['a.m.', 'p.m.'],
|
|
32815
32849
|
ok: 'Ok',
|
|
32816
32850
|
cancel: 'Cancel',
|
|
@@ -40027,6 +40061,19 @@ function formatted(date, fmt, options) {
|
|
|
40027
40061
|
function getStartYear(date, options) {
|
|
40028
40062
|
return Math.floor(getDateInfo(date, 'year', options) / 10) * 10;
|
|
40029
40063
|
}
|
|
40064
|
+
|
|
40065
|
+
// 如果有 value 取 value 的 time 否则取 defaultTime
|
|
40066
|
+
var getDateWithTime = function getDateWithTime(date, value, defaultTime, min, max, options) {
|
|
40067
|
+
var timeDate = value || defaultTime && cloneTime(date, defaultTime, TIME_FORMAT, options);
|
|
40068
|
+
var newDate = util_toDate(date);
|
|
40069
|
+
if (timeDate) {
|
|
40070
|
+
newDate = setTime(newDate, timeDate, options);
|
|
40071
|
+
}
|
|
40072
|
+
// only can select day with the same day of min/max
|
|
40073
|
+
if (min && compareAsc(newDate, min) < 0) newDate = setTime(newDate, min, options);
|
|
40074
|
+
if (max && compareAsc(newDate, max) > 0) newDate = setTime(newDate, max, options);
|
|
40075
|
+
return newDate;
|
|
40076
|
+
};
|
|
40030
40077
|
/* harmony default export */ var util = ({
|
|
40031
40078
|
clearHMS: clearHMS,
|
|
40032
40079
|
addDays: addDays,
|
|
@@ -40063,7 +40110,8 @@ function getStartYear(date, options) {
|
|
|
40063
40110
|
compatibleFmt: compatibleFmt,
|
|
40064
40111
|
transDateWithZone: transDateWithZone,
|
|
40065
40112
|
getStartYear: getStartYear,
|
|
40066
|
-
isValidString: isValidString
|
|
40113
|
+
isValidString: isValidString,
|
|
40114
|
+
getDateWithTime: getDateWithTime
|
|
40067
40115
|
});
|
|
40068
40116
|
;// CONCATENATED MODULE: ../hooks/src/components/use-datepicker/use-datepicker-format.ts
|
|
40069
40117
|
|
|
@@ -40194,6 +40242,7 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
40194
40242
|
});
|
|
40195
40243
|
var setCurrentArrWithParams = usePersistFn(function (arg, type, quick) {
|
|
40196
40244
|
setCurrentArr(arg);
|
|
40245
|
+
if (!type && !quick) return;
|
|
40197
40246
|
setParams({
|
|
40198
40247
|
type: type,
|
|
40199
40248
|
quick: quick
|
|
@@ -40453,17 +40502,7 @@ var useDate = function useDate(props) {
|
|
|
40453
40502
|
return util.getDateInfo(date, 'week', options);
|
|
40454
40503
|
};
|
|
40455
40504
|
var getDateWithTime = function getDateWithTime(date) {
|
|
40456
|
-
|
|
40457
|
-
max = props.max;
|
|
40458
|
-
var timeDate = props.value || props.defaultTime && util.cloneTime(date, props.defaultTime, util.TIME_FORMAT, options);
|
|
40459
|
-
var newDate = util.toDate(date);
|
|
40460
|
-
if (timeDate) {
|
|
40461
|
-
newDate = util.setTime(newDate, timeDate, options);
|
|
40462
|
-
}
|
|
40463
|
-
// only can select day with the same day of min/max
|
|
40464
|
-
if (min && util.compareAsc(newDate, min) < 0) newDate = util.setTime(newDate, min, options);
|
|
40465
|
-
if (max && util.compareAsc(newDate, max) > 0) newDate = util.setTime(newDate, max, options);
|
|
40466
|
-
return newDate;
|
|
40505
|
+
return util.getDateWithTime(date, props.value, props.defaultTime, props.min, props.max, options);
|
|
40467
40506
|
};
|
|
40468
40507
|
var handleDayClick = function handleDayClick(date) {
|
|
40469
40508
|
var _props$onChange;
|
|
@@ -41041,8 +41080,8 @@ var Day = function Day(props) {
|
|
|
41041
41080
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooter,
|
|
41042
41081
|
dir: direction,
|
|
41043
41082
|
children: [props.type === 'datetime' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
41044
|
-
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerFooterLeft, styles === null || styles === void 0 ? void 0 : styles.datetime),
|
|
41045
|
-
children:
|
|
41083
|
+
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerFooterLeft, styles === null || styles === void 0 ? void 0 : styles.datetime, !timeStr && (styles === null || styles === void 0 ? void 0 : styles.datetimeHide)),
|
|
41084
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
41046
41085
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
41047
41086
|
children: icons_config.datepicker.Time
|
|
41048
41087
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(time, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
@@ -41050,7 +41089,7 @@ var Day = function Day(props) {
|
|
|
41050
41089
|
showTitle: false,
|
|
41051
41090
|
format: format
|
|
41052
41091
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
41053
|
-
children:
|
|
41092
|
+
children: timeStr
|
|
41054
41093
|
})]
|
|
41055
41094
|
})
|
|
41056
41095
|
}), showRight && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -41923,7 +41962,7 @@ var useRangePick = function useRangePick(props) {
|
|
|
41923
41962
|
newArr[1] = rangeMax;
|
|
41924
41963
|
}
|
|
41925
41964
|
} else if (date.getTime() > newArr[1].getTime()) {
|
|
41926
|
-
var a = util.cloneTime(new Date(date), defaultTimeArr[1], 'HH:mm:ss', options);
|
|
41965
|
+
var a = util.cloneTime(new Date(date), arr[1] || defaultTimeArr[1], 'HH:mm:ss', options);
|
|
41927
41966
|
newArr[1] = a.getTime() > date.getTime() ? a : new Date(date);
|
|
41928
41967
|
}
|
|
41929
41968
|
}
|
|
@@ -41991,6 +42030,14 @@ var useRangePick = function useRangePick(props) {
|
|
|
41991
42030
|
var setTargetStart = usePersistFn(function (date) {
|
|
41992
42031
|
setTargetArr([date, undefined]);
|
|
41993
42032
|
});
|
|
42033
|
+
var getStartDobule = usePersistFn(function (date) {
|
|
42034
|
+
var end = util.getDateWithTime(date, props.dateArr[1], defaultTimeArr[1], endMin, endMax, options);
|
|
42035
|
+
return end;
|
|
42036
|
+
});
|
|
42037
|
+
var getEndDobule = usePersistFn(function (date) {
|
|
42038
|
+
var start = util.getDateWithTime(date, props.dateArr[1], defaultTimeArr[1], startMin, startMax, options);
|
|
42039
|
+
return start;
|
|
42040
|
+
});
|
|
41994
42041
|
var setTargetEnd = usePersistFn(function (date) {
|
|
41995
42042
|
setTargetArr([undefined, date]);
|
|
41996
42043
|
});
|
|
@@ -42047,7 +42094,9 @@ var useRangePick = function useRangePick(props) {
|
|
|
42047
42094
|
setTargetStart: setTargetStart,
|
|
42048
42095
|
setTargetEnd: setTargetEnd,
|
|
42049
42096
|
startDisabled: startDisabled,
|
|
42050
|
-
endDisabled: endDisabled
|
|
42097
|
+
endDisabled: endDisabled,
|
|
42098
|
+
getStartDobule: getStartDobule,
|
|
42099
|
+
getEndDobule: getEndDobule
|
|
42051
42100
|
});
|
|
42052
42101
|
var minDate = min ? util.toDate(min, options) : undefined;
|
|
42053
42102
|
var maxDate = max ? util.toDate(max, options) : undefined;
|
|
@@ -42191,12 +42240,18 @@ var Picker = function Picker(props) {
|
|
|
42191
42240
|
onDoubleClick: function onDoubleClick(item, type) {
|
|
42192
42241
|
// 双击同时设置开始和结束日期
|
|
42193
42242
|
if (props.range && props.type === 'datetime') {
|
|
42194
|
-
if (position === 'start'
|
|
42195
|
-
func.
|
|
42196
|
-
|
|
42197
|
-
|
|
42198
|
-
|
|
42199
|
-
|
|
42243
|
+
if (position === 'start') {
|
|
42244
|
+
var end = func.getStartDobule(item);
|
|
42245
|
+
if (!isDisabledDate(end, 'end')) {
|
|
42246
|
+
func.setCurrentEnd(end, type);
|
|
42247
|
+
func.setDateEnd(end, true);
|
|
42248
|
+
}
|
|
42249
|
+
} else if (position === 'end') {
|
|
42250
|
+
var start = func.getEndDobule(item);
|
|
42251
|
+
if (!isDisabledDate(start, 'start')) {
|
|
42252
|
+
func.setCurrentStart(start, type);
|
|
42253
|
+
func.setDateStart(start, true);
|
|
42254
|
+
}
|
|
42200
42255
|
}
|
|
42201
42256
|
}
|
|
42202
42257
|
}
|
|
@@ -43042,15 +43097,17 @@ var Modal = function Modal(props) {
|
|
|
43042
43097
|
defaultHeight: height,
|
|
43043
43098
|
panelRef: panelRef
|
|
43044
43099
|
});
|
|
43100
|
+
var rerender = useRender();
|
|
43045
43101
|
var handleMaskVisible = function handleMaskVisible() {
|
|
43046
43102
|
// 多个moal 只有第一个显示的时候才显示遮罩
|
|
43047
43103
|
// context.isMask 用来判断是否是第一个显示的modal
|
|
43048
43104
|
if (visible && !hasMask) {
|
|
43049
43105
|
context.isMask = true;
|
|
43050
43106
|
hasMask = true;
|
|
43107
|
+
rerender();
|
|
43051
43108
|
}
|
|
43052
43109
|
};
|
|
43053
|
-
|
|
43110
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(handleMaskVisible, [visible]);
|
|
43054
43111
|
var updateOrigin = function updateOrigin() {
|
|
43055
43112
|
// 更新transform-origin
|
|
43056
43113
|
if (props.position || props.moveable || !props.zoom) return;
|
|
@@ -47494,7 +47551,7 @@ var useNumberFormat = function useNumberFormat(props) {
|
|
|
47494
47551
|
;// CONCATENATED MODULE: ../base/src/input/input-number.tsx
|
|
47495
47552
|
|
|
47496
47553
|
|
|
47497
|
-
var input_number_excluded = ["jssStyle", "hideArrow"],
|
|
47554
|
+
var input_number_excluded = ["jssStyle", "hideArrow", "numType", "integerLimit", "digits", "min", "max", "step", "allowNull"],
|
|
47498
47555
|
input_number_excluded2 = ["onMinus", "onPlus"];
|
|
47499
47556
|
|
|
47500
47557
|
|
|
@@ -47509,18 +47566,25 @@ var InputNumber = function InputNumber(props) {
|
|
|
47509
47566
|
var commonProps = use_input_common(props);
|
|
47510
47567
|
var jssStyle = commonProps.jssStyle,
|
|
47511
47568
|
hideArrow = commonProps.hideArrow,
|
|
47569
|
+
numType = commonProps.numType,
|
|
47570
|
+
integerLimit = commonProps.integerLimit,
|
|
47571
|
+
digits = commonProps.digits,
|
|
47572
|
+
min = commonProps.min,
|
|
47573
|
+
max = commonProps.max,
|
|
47574
|
+
step = commonProps.step,
|
|
47575
|
+
allowNull = commonProps.allowNull,
|
|
47512
47576
|
restProps = objectWithoutProperties_default()(commonProps, input_number_excluded);
|
|
47513
47577
|
var inputStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$input = jssStyle.input) === null || _jssStyle$input === void 0 ? void 0 : _jssStyle$input.call(jssStyle);
|
|
47514
47578
|
var numberFormatParams = {
|
|
47515
47579
|
onBlur: restProps.onBlur,
|
|
47516
47580
|
onFocus: restProps.onFocus,
|
|
47517
|
-
digits:
|
|
47518
|
-
integerLimit:
|
|
47519
|
-
numType:
|
|
47520
|
-
min:
|
|
47521
|
-
max:
|
|
47522
|
-
step:
|
|
47523
|
-
allowNull:
|
|
47581
|
+
digits: digits,
|
|
47582
|
+
integerLimit: integerLimit,
|
|
47583
|
+
numType: numType,
|
|
47584
|
+
min: min,
|
|
47585
|
+
max: max,
|
|
47586
|
+
step: step,
|
|
47587
|
+
allowNull: allowNull
|
|
47524
47588
|
};
|
|
47525
47589
|
var _useInputNumber = use_input_number(objectSpread2_default()({
|
|
47526
47590
|
value: commonProps.value,
|
|
@@ -47530,7 +47594,9 @@ var InputNumber = function InputNumber(props) {
|
|
|
47530
47594
|
onMinus = _useInputNumber.onMinus,
|
|
47531
47595
|
onPlus = _useInputNumber.onPlus,
|
|
47532
47596
|
numberFormatProps = objectWithoutProperties_default()(_useInputNumber, input_number_excluded2);
|
|
47533
|
-
var forwardProps = removeProps(commonProps, objectSpread2_default()({}, numberFormatParams)
|
|
47597
|
+
var forwardProps = removeProps(commonProps, objectSpread2_default()(objectSpread2_default()({}, numberFormatParams), {}, {
|
|
47598
|
+
hideArrow: hideArrow
|
|
47599
|
+
}));
|
|
47534
47600
|
var addEnd = hideArrow ? null : /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
47535
47601
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
47536
47602
|
className: inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.numberStep,
|
|
@@ -47671,17 +47737,20 @@ var Scroll = function Scroll(props) {
|
|
|
47671
47737
|
isMouseDown: false
|
|
47672
47738
|
}),
|
|
47673
47739
|
context = _useRef.current;
|
|
47740
|
+
var _props$scrollHeight = props.scrollHeight,
|
|
47741
|
+
scrollHeight = _props$scrollHeight === void 0 ? 0 : _props$scrollHeight,
|
|
47742
|
+
_props$scrollWidth = props.scrollWidth,
|
|
47743
|
+
scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth,
|
|
47744
|
+
_props$defaultHeight = props.defaultHeight,
|
|
47745
|
+
defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight;
|
|
47674
47746
|
var _useResize = useResize({
|
|
47675
47747
|
targetRef: containerRef
|
|
47676
47748
|
}),
|
|
47677
47749
|
width = _useResize.width,
|
|
47678
|
-
|
|
47750
|
+
h = _useResize.height;
|
|
47751
|
+
var height = h || defaultHeight;
|
|
47679
47752
|
var config = useConfig();
|
|
47680
47753
|
var isRtl = config.direction === 'rtl';
|
|
47681
|
-
var _props$scrollHeight = props.scrollHeight,
|
|
47682
|
-
scrollHeight = _props$scrollHeight === void 0 ? 0 : _props$scrollHeight,
|
|
47683
|
-
_props$scrollWidth = props.scrollWidth,
|
|
47684
|
-
scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth;
|
|
47685
47754
|
var scrollerStyle = props.scrollerStyle || {
|
|
47686
47755
|
height: '100%',
|
|
47687
47756
|
width: '100%',
|
|
@@ -49244,7 +49313,7 @@ var Tree = function Tree(props) {
|
|
|
49244
49313
|
handleUpdateExpanded(expanded);
|
|
49245
49314
|
}, [expanded]);
|
|
49246
49315
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
49247
|
-
if (!active) return;
|
|
49316
|
+
// if (!active) return;
|
|
49248
49317
|
handleUpdateActive(active);
|
|
49249
49318
|
}, [active]);
|
|
49250
49319
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
@@ -50855,6 +50924,7 @@ var PaginationSimple = function PaginationSimple(props) {
|
|
|
50855
50924
|
|
|
50856
50925
|
|
|
50857
50926
|
|
|
50927
|
+
|
|
50858
50928
|
var usePagination = function usePagination(props) {
|
|
50859
50929
|
var totalProp = props.total,
|
|
50860
50930
|
pageSizeProp = props.pageSize,
|
|
@@ -50875,14 +50945,15 @@ var usePagination = function usePagination(props) {
|
|
|
50875
50945
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50876
50946
|
if (pageSizeProp !== pageSize) setPageSize(pageSizeProp);
|
|
50877
50947
|
}, [pageSizeProp]);
|
|
50878
|
-
var handleChange = function
|
|
50879
|
-
|
|
50948
|
+
var handleChange = usePersistFn(function (c, size) {
|
|
50949
|
+
if (c === current && size === undefined) return;
|
|
50950
|
+
setCurrent(c);
|
|
50880
50951
|
setPageSize(size || pageSizeProp);
|
|
50881
50952
|
if (onChange) {
|
|
50882
|
-
var sizeChange = pageSize !== size;
|
|
50883
|
-
onChange(
|
|
50953
|
+
var sizeChange = size !== undefined && pageSize !== size;
|
|
50954
|
+
onChange(c, size || pageSize, sizeChange);
|
|
50884
50955
|
}
|
|
50885
|
-
};
|
|
50956
|
+
});
|
|
50886
50957
|
var getRootProps = function getRootProps() {
|
|
50887
50958
|
var externalProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
50888
50959
|
var externalEventHandlers = extractEventHandlers(externalProps);
|
|
@@ -56398,8 +56469,8 @@ var Tr = function Tr(props) {
|
|
|
56398
56469
|
};
|
|
56399
56470
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
56400
56471
|
if (props.setRowHeight && trRef.current) {
|
|
56401
|
-
var expandHeight = expandRef.current ? expandRef.current.
|
|
56402
|
-
props.setRowHeight(props.rowIndex, trRef.current.
|
|
56472
|
+
var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
|
|
56473
|
+
props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
|
|
56403
56474
|
}
|
|
56404
56475
|
}, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
|
|
56405
56476
|
var renderTreeExpand = function renderTreeExpand(content) {
|
|
@@ -56832,6 +56903,10 @@ var emptyRef = {
|
|
|
56832
56903
|
var tfootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56833
56904
|
var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56834
56905
|
var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56906
|
+
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
56907
|
+
emptyHeight: 0
|
|
56908
|
+
}),
|
|
56909
|
+
context = _useRef.current;
|
|
56835
56910
|
var virtual = ((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) && props.rowsInView !== 0 && (!!props.virtual || props.fixed === 'both' || props.fixed === 'y' || props.fixed === 'auto');
|
|
56836
56911
|
|
|
56837
56912
|
// 虚拟列表高度另外计算
|
|
@@ -57001,6 +57076,9 @@ var emptyRef = {
|
|
|
57001
57076
|
if ((_props$data2 = props.data) !== null && _props$data2 !== void 0 && _props$data2.length) return null;
|
|
57002
57077
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
57003
57078
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper,
|
|
57079
|
+
ref: function ref(el) {
|
|
57080
|
+
context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
|
|
57081
|
+
},
|
|
57004
57082
|
children: props.empty || /*#__PURE__*/(0,jsx_runtime.jsx)(src_empty_empty, {
|
|
57005
57083
|
jssStyle: props.jssStyle
|
|
57006
57084
|
})
|
|
@@ -57117,6 +57195,7 @@ var emptyRef = {
|
|
|
57117
57195
|
scrollWidth: width || 1,
|
|
57118
57196
|
scrollHeight: virtual ? virtualInfo.scrollHeight : tbodyHeight,
|
|
57119
57197
|
onScroll: handleVirtualScroll,
|
|
57198
|
+
defaultHeight: context.emptyHeight,
|
|
57120
57199
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
57121
57200
|
style: {
|
|
57122
57201
|
width: width,
|
|
@@ -59683,7 +59762,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
59683
59762
|
keygen: keygen,
|
|
59684
59763
|
unmatch: unmatch,
|
|
59685
59764
|
value: value,
|
|
59686
|
-
highlight:
|
|
59765
|
+
highlight: !multiple,
|
|
59687
59766
|
loader: loader,
|
|
59688
59767
|
onExpand: onExpandTree,
|
|
59689
59768
|
expanded: controlExpanded,
|
|
@@ -63319,7 +63398,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63319
63398
|
|
|
63320
63399
|
|
|
63321
63400
|
/* harmony default export */ var src_0 = ({
|
|
63322
|
-
version: '3.3.0-beta.
|
|
63401
|
+
version: '3.3.0-beta.6'
|
|
63323
63402
|
});
|
|
63324
63403
|
}();
|
|
63325
63404
|
/******/ return __webpack_exports__;
|