shineout 3.3.0-beta.4 → 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 +182 -96
- 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/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',
|
|
@@ -13933,6 +13941,8 @@ var selectTokens = {
|
|
|
13933
13941
|
selectPaddingY: 'Spacing-2',
|
|
13934
13942
|
selectIconSize: 'Size-7',
|
|
13935
13943
|
selectIconColor: 'Neutral-text-4',
|
|
13944
|
+
selectTagMarginY: 'Spacing-2',
|
|
13945
|
+
selectTagMarginRight: 'Spacing-4',
|
|
13936
13946
|
selectSmallFontSize: 'Font-12',
|
|
13937
13947
|
selectSmallPaddingX: 'Spacing-8',
|
|
13938
13948
|
selectSmallPaddingY: 'Spacing-1',
|
|
@@ -14158,14 +14168,16 @@ var switchTokens = {
|
|
|
14158
14168
|
switchLargeWidth: 'Size-27',
|
|
14159
14169
|
switchBackgroundColor: 'Neutral-fill-4',
|
|
14160
14170
|
switchDisabledBackgroundColor: 'Neutral-fill-2',
|
|
14161
|
-
switchDisabledCircleFill: 'Neutral-
|
|
14171
|
+
switchDisabledCircleFill: 'Neutral-fill-1',
|
|
14162
14172
|
switchDisabledFontColor: 'Neutral-text-2',
|
|
14163
14173
|
switchLoadingBackgroundColor: 'Neutral-fill-2',
|
|
14164
14174
|
switchLoadingCircleFill: 'Neutral-text-2',
|
|
14165
14175
|
switchLoadingFontColor: 'Neutral-text-2',
|
|
14166
14176
|
switchCheckedBackgroundColor: 'Brand-6',
|
|
14177
|
+
switchCheckedCircleFill: 'Neutral-fill-1',
|
|
14167
14178
|
switchCheckedFontColor: 'Neutral-text-1',
|
|
14168
14179
|
switchCheckedDisabledBackgroundColor: 'Brand-3',
|
|
14180
|
+
switchCheckedDisabledCircleFill: 'Neutral-fill-1',
|
|
14169
14181
|
switchCheckedDisabledFontColor: 'Neutral-text-1',
|
|
14170
14182
|
switchCheckedLoadingBackgroundColor: 'Brand-3',
|
|
14171
14183
|
switchCheckedLoadingFontColor: 'Neutral-text-1'
|
|
@@ -14365,9 +14377,9 @@ var tagTokens = {
|
|
|
14365
14377
|
tagSuccessDisabledFontColor: 'Success-3',
|
|
14366
14378
|
tagSuccessDisabledBackgroundColor: 'Success-1',
|
|
14367
14379
|
tagSuccessDisabledBorderColor: 'Success-1',
|
|
14368
|
-
tagSuccessOutlineFontColor: 'Success-
|
|
14380
|
+
tagSuccessOutlineFontColor: 'Success-6',
|
|
14369
14381
|
tagSuccessOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14370
|
-
tagSuccessOutlineBorderColor: 'Success-
|
|
14382
|
+
tagSuccessOutlineBorderColor: 'Success-6',
|
|
14371
14383
|
tagSuccessOutlineDisabledFontColor: 'Success-3',
|
|
14372
14384
|
tagSuccessOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14373
14385
|
tagSuccessOutlineDisabledBorderColor: 'Success-3',
|
|
@@ -14383,9 +14395,9 @@ var tagTokens = {
|
|
|
14383
14395
|
tagWarningDisabledFontColor: 'Warning-3',
|
|
14384
14396
|
tagWarningDisabledBackgroundColor: 'Warning-1',
|
|
14385
14397
|
tagWarningDisabledBorderColor: 'Warning-1',
|
|
14386
|
-
tagWarningOutlineFontColor: 'Warning-
|
|
14398
|
+
tagWarningOutlineFontColor: 'Warning-6',
|
|
14387
14399
|
tagWarningOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14388
|
-
tagWarningOutlineBorderColor: 'Warning-
|
|
14400
|
+
tagWarningOutlineBorderColor: 'Warning-6',
|
|
14389
14401
|
tagWarningOutlineDisabledFontColor: 'Warning-3',
|
|
14390
14402
|
tagWarningOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14391
14403
|
tagWarningOutlineDisabledBorderColor: 'Warning-3',
|
|
@@ -14401,9 +14413,9 @@ var tagTokens = {
|
|
|
14401
14413
|
tagDangerDisabledFontColor: 'Danger-3',
|
|
14402
14414
|
tagDangerDisabledBackgroundColor: 'Danger-1',
|
|
14403
14415
|
tagDangerDisabledBorderColor: 'Danger-1',
|
|
14404
|
-
tagDangerOutlineFontColor: 'Danger-
|
|
14416
|
+
tagDangerOutlineFontColor: 'Danger-6',
|
|
14405
14417
|
tagDangerOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14406
|
-
tagDangerOutlineBorderColor: 'Danger-
|
|
14418
|
+
tagDangerOutlineBorderColor: 'Danger-6',
|
|
14407
14419
|
tagDangerOutlineDisabledFontColor: 'Danger-3',
|
|
14408
14420
|
tagDangerOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14409
14421
|
tagDangerOutlineDisabledBorderColor: 'Danger-3',
|
|
@@ -14419,9 +14431,9 @@ var tagTokens = {
|
|
|
14419
14431
|
tagMagentaDisabledFontColor: 'Magenta-3',
|
|
14420
14432
|
tagMagentaDisabledBackgroundColor: 'Magenta-1',
|
|
14421
14433
|
tagMagentaDisabledBorderColor: 'Magenta-1',
|
|
14422
|
-
tagMagentaOutlineFontColor: 'Magenta-
|
|
14434
|
+
tagMagentaOutlineFontColor: 'Magenta-6',
|
|
14423
14435
|
tagMagentaOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14424
|
-
tagMagentaOutlineBorderColor: 'Magenta-
|
|
14436
|
+
tagMagentaOutlineBorderColor: 'Magenta-6',
|
|
14425
14437
|
tagMagentaOutlineDisabledFontColor: 'Magenta-3',
|
|
14426
14438
|
tagMagentaOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14427
14439
|
tagMagentaOutlineDisabledBorderColor: 'Magenta-3',
|
|
@@ -14437,9 +14449,9 @@ var tagTokens = {
|
|
|
14437
14449
|
tagBrownDisabledFontColor: 'Orange-3',
|
|
14438
14450
|
tagBrownDisabledBackgroundColor: 'Orange-1',
|
|
14439
14451
|
tagBrownDisabledBorderColor: 'Orange-1',
|
|
14440
|
-
tagBrownOutlineFontColor: 'Orange-
|
|
14452
|
+
tagBrownOutlineFontColor: 'Orange-6',
|
|
14441
14453
|
tagBrownOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14442
|
-
tagBrownOutlineBorderColor: 'Orange-
|
|
14454
|
+
tagBrownOutlineBorderColor: 'Orange-6',
|
|
14443
14455
|
tagBrownOutlineDisabledFontColor: 'Orange-3',
|
|
14444
14456
|
tagBrownOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14445
14457
|
tagBrownOutlineDisabledBorderColor: 'Orange-3',
|
|
@@ -14455,9 +14467,9 @@ var tagTokens = {
|
|
|
14455
14467
|
tagPurpleDisabledFontColor: 'Purple-3',
|
|
14456
14468
|
tagPurpleDisabledBackgroundColor: 'Purple-1',
|
|
14457
14469
|
tagPurpleDisabledBorderColor: 'Purple-1',
|
|
14458
|
-
tagPurpleOutlineFontColor: 'Purple-
|
|
14470
|
+
tagPurpleOutlineFontColor: 'Purple-6',
|
|
14459
14471
|
tagPurpleOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14460
|
-
tagPurpleOutlineBorderColor: 'Purple-
|
|
14472
|
+
tagPurpleOutlineBorderColor: 'Purple-6',
|
|
14461
14473
|
tagPurpleOutlineDisabledFontColor: 'Purple-3',
|
|
14462
14474
|
tagPurpleOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14463
14475
|
tagPurpleOutlineDisabledBorderColor: 'Purple-3',
|
|
@@ -14473,9 +14485,9 @@ var tagTokens = {
|
|
|
14473
14485
|
tagIndigoDisabledFontColor: 'Indigo-3',
|
|
14474
14486
|
tagIndigoDisabledBackgroundColor: 'Indigo-1',
|
|
14475
14487
|
tagIndigoDisabledBorderColor: 'Indigo-1',
|
|
14476
|
-
tagIndigoOutlineFontColor: 'Indigo-
|
|
14488
|
+
tagIndigoOutlineFontColor: 'Indigo-6',
|
|
14477
14489
|
tagIndigoOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14478
|
-
tagIndigoOutlineBorderColor: 'Indigo-
|
|
14490
|
+
tagIndigoOutlineBorderColor: 'Indigo-6',
|
|
14479
14491
|
tagIndigoOutlineDisabledFontColor: 'Indigo-3',
|
|
14480
14492
|
tagIndigoOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14481
14493
|
tagIndigoOutlineDisabledBorderColor: 'Indigo-3',
|
|
@@ -14491,9 +14503,9 @@ var tagTokens = {
|
|
|
14491
14503
|
tagCyanDisabledFontColor: 'Cyan-3',
|
|
14492
14504
|
tagCyanDisabledBackgroundColor: 'Cyan-1',
|
|
14493
14505
|
tagCyanDisabledBorderColor: 'Cyan-1',
|
|
14494
|
-
tagCyanOutlineFontColor: 'Cyan-
|
|
14506
|
+
tagCyanOutlineFontColor: 'Cyan-6',
|
|
14495
14507
|
tagCyanOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14496
|
-
tagCyanOutlineBorderColor: 'Cyan-
|
|
14508
|
+
tagCyanOutlineBorderColor: 'Cyan-6',
|
|
14497
14509
|
tagCyanOutlineDisabledFontColor: 'Cyan-3',
|
|
14498
14510
|
tagCyanOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14499
14511
|
tagCyanOutlineDisabledBorderColor: 'Cyan-3',
|
|
@@ -14509,9 +14521,9 @@ var tagTokens = {
|
|
|
14509
14521
|
tagNeonDisabledFontColor: 'Neon-3',
|
|
14510
14522
|
tagNeonDisabledBackgroundColor: 'Neon-1',
|
|
14511
14523
|
tagNeonDisabledBorderColor: 'Neon-1',
|
|
14512
|
-
tagNeonOutlineFontColor: 'Neon-
|
|
14524
|
+
tagNeonOutlineFontColor: 'Neon-6',
|
|
14513
14525
|
tagNeonOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14514
|
-
tagNeonOutlineBorderColor: 'Neon-
|
|
14526
|
+
tagNeonOutlineBorderColor: 'Neon-6',
|
|
14515
14527
|
tagNeonOutlineDisabledFontColor: 'Neon-3',
|
|
14516
14528
|
tagNeonOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14517
14529
|
tagNeonOutlineDisabledBorderColor: 'Neon-3',
|
|
@@ -14527,9 +14539,9 @@ var tagTokens = {
|
|
|
14527
14539
|
tagLemonDisabledFontColor: 'Lemon-3',
|
|
14528
14540
|
tagLemonDisabledBackgroundColor: 'Lemon-1',
|
|
14529
14541
|
tagLemonDisabledBorderColor: 'Lemon-1',
|
|
14530
|
-
tagLemonOutlineFontColor: 'Lemon-
|
|
14542
|
+
tagLemonOutlineFontColor: 'Lemon-6',
|
|
14531
14543
|
tagLemonOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14532
|
-
tagLemonOutlineBorderColor: 'Lemon-
|
|
14544
|
+
tagLemonOutlineBorderColor: 'Lemon-6',
|
|
14533
14545
|
tagLemonOutlineDisabledFontColor: 'Lemon-3',
|
|
14534
14546
|
tagLemonOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14535
14547
|
tagLemonOutlineDisabledBorderColor: 'Lemon-3',
|
|
@@ -14545,9 +14557,9 @@ var tagTokens = {
|
|
|
14545
14557
|
tagTangerineDisabledFontColor: 'Tangerine-3',
|
|
14546
14558
|
tagTangerineDisabledBackgroundColor: 'Tangerine-1',
|
|
14547
14559
|
tagTangerineDisabledBorderColor: 'Tangerine-1',
|
|
14548
|
-
tagTangerineOutlineFontColor: 'Tangerine-
|
|
14560
|
+
tagTangerineOutlineFontColor: 'Tangerine-6',
|
|
14549
14561
|
tagTangerineOutlineBackgroundColor: 'Neutral-fill-1',
|
|
14550
|
-
tagTangerineOutlineBorderColor: 'Tangerine-
|
|
14562
|
+
tagTangerineOutlineBorderColor: 'Tangerine-6',
|
|
14551
14563
|
tagTangerineOutlineDisabledFontColor: 'Tangerine-3',
|
|
14552
14564
|
tagTangerineOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14553
14565
|
tagTangerineOutlineDisabledBorderColor: 'Tangerine-3',
|
|
@@ -14560,11 +14572,11 @@ var tagTokens = {
|
|
|
14560
14572
|
tagFontSize: 'Font-12',
|
|
14561
14573
|
tagBorderRadius: 'Radius-small',
|
|
14562
14574
|
tagPaddingX: 'Spacing-6',
|
|
14563
|
-
tagPaddingY: 'Spacing-
|
|
14575
|
+
tagPaddingY: 'Spacing-0',
|
|
14564
14576
|
tagHeight: 'Size-11',
|
|
14565
14577
|
tagFontWeight: 'Weight-regular',
|
|
14566
14578
|
tagSmallFontSize: 'Font-12',
|
|
14567
|
-
tagSmallBorderRadius: 'Radius-
|
|
14579
|
+
tagSmallBorderRadius: 'Radius-small',
|
|
14568
14580
|
tagSmallPaddingX: 'Spacing-4',
|
|
14569
14581
|
tagSmallHeight: 'Size-10',
|
|
14570
14582
|
tagSmallFontWeight: 'Weight-regular',
|
|
@@ -15150,7 +15162,7 @@ var breadcrumbStyle = {
|
|
|
15150
15162
|
wrapper: {
|
|
15151
15163
|
lineHeight: src.lineHeightDynamic,
|
|
15152
15164
|
fontSize: src.breadcrumbFontSize,
|
|
15153
|
-
fontWeight: src.
|
|
15165
|
+
fontWeight: src.breadcrumbFontWeight,
|
|
15154
15166
|
display: 'flex',
|
|
15155
15167
|
alignItems: 'center',
|
|
15156
15168
|
color: src.breadcrumbFontColor,
|
|
@@ -15225,7 +15237,7 @@ var breadcrumbStyle = {
|
|
|
15225
15237
|
dropdownItem: {
|
|
15226
15238
|
lineHeight: src.lineHeightDynamic,
|
|
15227
15239
|
fontSize: src.dropdownListFontSize,
|
|
15228
|
-
fontWeight: src.
|
|
15240
|
+
fontWeight: src.breadcrumbFontWeight,
|
|
15229
15241
|
cursor: 'pointer',
|
|
15230
15242
|
color: src.dropdownOptionFontColor,
|
|
15231
15243
|
borderRadius: src.dropdownOptionBorderRadius,
|
|
@@ -16280,7 +16292,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
16280
16292
|
}, "&:not($".concat(name, "Disabled):not($").concat(name, "Error)"), {
|
|
16281
16293
|
backgroundColor: token.hoverBackgroundColor
|
|
16282
16294
|
}),
|
|
16283
|
-
'[data-soui-role="input-group"]
|
|
16295
|
+
'[data-soui-role="input-group"] &&&, [data-soui-role="input-group"] &&&:hover': {
|
|
16284
16296
|
borderWidth: 0,
|
|
16285
16297
|
borderRadius: 0,
|
|
16286
16298
|
boxShadow: 'none',
|
|
@@ -16846,11 +16858,13 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
16846
16858
|
optionIcon: {
|
|
16847
16859
|
position: 'absolute',
|
|
16848
16860
|
right: 8,
|
|
16849
|
-
top:
|
|
16861
|
+
top: 0,
|
|
16862
|
+
bottom: 0,
|
|
16850
16863
|
fontSize: src.cascaderFontSize,
|
|
16851
16864
|
color: src.cascaderOptionIconColor,
|
|
16852
|
-
|
|
16853
|
-
|
|
16865
|
+
display: 'flex',
|
|
16866
|
+
alignItems: 'center',
|
|
16867
|
+
justifyContent: 'center',
|
|
16854
16868
|
'& svg': {
|
|
16855
16869
|
verticalAlign: 'middle',
|
|
16856
16870
|
width: 14
|
|
@@ -17837,6 +17851,10 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17837
17851
|
visibility: 'visible'
|
|
17838
17852
|
}
|
|
17839
17853
|
},
|
|
17854
|
+
datetimeHide: {
|
|
17855
|
+
opacity: '0',
|
|
17856
|
+
pointerEvents: 'none'
|
|
17857
|
+
},
|
|
17840
17858
|
quickPicker: {
|
|
17841
17859
|
padding: "".concat(src.datePickerQuickPanelPaddingY, " ").concat(src.datePickerQuickPanelPaddingX),
|
|
17842
17860
|
display: 'flex',
|
|
@@ -18149,7 +18167,7 @@ var dropdown_dropdown = {
|
|
|
18149
18167
|
},
|
|
18150
18168
|
list: {
|
|
18151
18169
|
position: 'absolute',
|
|
18152
|
-
fontWeight:
|
|
18170
|
+
fontWeight: src.dropdownListFontWeight,
|
|
18153
18171
|
minWidth: '100%',
|
|
18154
18172
|
zIndex: 1000,
|
|
18155
18173
|
textAlign: 'left',
|
|
@@ -18168,12 +18186,12 @@ var dropdown_dropdown = {
|
|
|
18168
18186
|
},
|
|
18169
18187
|
listSmall: {
|
|
18170
18188
|
fontSize: src.dropdownListSmallFontSize,
|
|
18171
|
-
borderRadius: src.
|
|
18189
|
+
borderRadius: src.dropdownListBorderRadius,
|
|
18172
18190
|
padding: "".concat(src.dropdownListSmallPaddingY, " ").concat(src.dropdownListSmallPaddingX)
|
|
18173
18191
|
},
|
|
18174
18192
|
listLarge: {
|
|
18175
18193
|
fontSize: src.dropdownListLargeFontSize,
|
|
18176
|
-
borderRadius: src.
|
|
18194
|
+
borderRadius: src.dropdownListBorderRadius,
|
|
18177
18195
|
padding: "".concat(src.dropdownListLargePaddingY, " ").concat(src.dropdownListLargePaddingX)
|
|
18178
18196
|
},
|
|
18179
18197
|
listHasChildren: {
|
|
@@ -18296,6 +18314,7 @@ var dropdown_dropdown = {
|
|
|
18296
18314
|
optionGroup: {
|
|
18297
18315
|
padding: "".concat(src.dropdownOptionGroupPaddingTop, " ").concat(src.dropdownOptionGroupPaddingX, " ").concat(src.dropdownOptionGroupPaddingBottom, " ").concat(src.dropdownOptionGroupPaddingX),
|
|
18298
18316
|
fontSize: src.dropdownOptionGroupFontSize,
|
|
18317
|
+
fontWeight: src.dropdownOptionGroupFontWeight,
|
|
18299
18318
|
color: src.dropdownOptionGroupFontColor,
|
|
18300
18319
|
'$listSmall &': {
|
|
18301
18320
|
padding: "".concat(src.dropdownOptionGroupSmallTop, " ").concat(src.dropdownOptionGroupSmallX, " 0 ").concat(src.dropdownOptionGroupSmallX)
|
|
@@ -19323,9 +19342,14 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
|
|
|
19323
19342
|
backgroundColor: 'transparent',
|
|
19324
19343
|
boxSizing: 'border-box',
|
|
19325
19344
|
fontWeight: 'inherit',
|
|
19345
|
+
'$wrapper:not($wrapperDisabled) &::placeholder': {
|
|
19346
|
+
color: src.inputPlaceholderColor
|
|
19347
|
+
},
|
|
19348
|
+
'$wrapperDisabled &::placeholder': {
|
|
19349
|
+
color: src.inputDisabledPlaceholderColor
|
|
19350
|
+
},
|
|
19326
19351
|
'&::placeholder': {
|
|
19327
19352
|
fontWeight: src.inputPlaceholderFontWeight,
|
|
19328
|
-
color: src.inputPlaceholderColor,
|
|
19329
19353
|
fontSize: 'inherit'
|
|
19330
19354
|
}
|
|
19331
19355
|
},
|
|
@@ -20025,7 +20049,11 @@ var menuStyle = {
|
|
|
20025
20049
|
display: 'inline-flex'
|
|
20026
20050
|
},
|
|
20027
20051
|
titleContent: {
|
|
20028
|
-
whiteSpace: 'pre-wrap'
|
|
20052
|
+
whiteSpace: 'pre-wrap',
|
|
20053
|
+
display: 'flex',
|
|
20054
|
+
minWidth: 0,
|
|
20055
|
+
alignItems: 'center',
|
|
20056
|
+
fontWeight: src.menuItemFontWeight
|
|
20029
20057
|
// '$wrapperCollpase &': {
|
|
20030
20058
|
// transition: `opacity ${animationDuration} ${transitionFunc}`,
|
|
20031
20059
|
// },
|
|
@@ -20646,7 +20674,8 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
|
|
|
20646
20674
|
flex: '1',
|
|
20647
20675
|
minWidth: 0,
|
|
20648
20676
|
textAlign: 'left',
|
|
20649
|
-
|
|
20677
|
+
color: src.modalHeaderFontColor,
|
|
20678
|
+
fontWeight: src.modalHeaderFontWeight,
|
|
20650
20679
|
fontSize: src.modalHeaderFontSize
|
|
20651
20680
|
},
|
|
20652
20681
|
headerClose: {
|
|
@@ -20676,8 +20705,12 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({}, animationSt
|
|
|
20676
20705
|
},
|
|
20677
20706
|
body: {
|
|
20678
20707
|
flex: '1 1 auto',
|
|
20679
|
-
minHeight: '1px'
|
|
20708
|
+
minHeight: '1px',
|
|
20680
20709
|
// overflow: 'auto',
|
|
20710
|
+
color: src.modalBodyFontColor,
|
|
20711
|
+
fontSize: src.modalBodyFontSize,
|
|
20712
|
+
fontWeight: src.modalBodyFontWeight,
|
|
20713
|
+
lineHeight: src.lineHeightDynamic
|
|
20681
20714
|
},
|
|
20682
20715
|
bodyWithIcon: {
|
|
20683
20716
|
paddingLeft: "calc(".concat(src.modalHeaderIconMarginEnd, " + ").concat(src.modalHeaderIconSize, ")")
|
|
@@ -22034,9 +22067,9 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
22034
22067
|
marginLeft: 0
|
|
22035
22068
|
},
|
|
22036
22069
|
maxWidth: '80%',
|
|
22037
|
-
marginRight:
|
|
22038
|
-
marginTop: src.
|
|
22039
|
-
marginBottom: src.
|
|
22070
|
+
marginRight: src.selectTagMarginRight,
|
|
22071
|
+
marginTop: src.selectTagMarginY,
|
|
22072
|
+
marginBottom: src.selectTagMarginY,
|
|
22040
22073
|
textWrap: 'nowrap',
|
|
22041
22074
|
'&$hideTag': {
|
|
22042
22075
|
marginRight: 0
|
|
@@ -23956,6 +23989,7 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
|
|
|
23956
23989
|
justifyContent: 'center',
|
|
23957
23990
|
color: 'red',
|
|
23958
23991
|
'$wrapperChecked &': {
|
|
23992
|
+
backgroundColor: src.switchCheckedCircleFill,
|
|
23959
23993
|
'&[dir=ltr]': {
|
|
23960
23994
|
right: src.switchPaddingX,
|
|
23961
23995
|
left: "calc(100% - ".concat(src.switchCircleSize, " - ").concat(src.switchPaddingX, ")")
|
|
@@ -23997,6 +24031,12 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({}, switch_ani
|
|
|
23997
24031
|
left: src.switchLargePaddingX,
|
|
23998
24032
|
top: src.switchLargePaddingY
|
|
23999
24033
|
},
|
|
24034
|
+
'$wrapperDisabled:not($wrapperChecked) &': {
|
|
24035
|
+
backgroundColor: src.switchDisabledCircleFill
|
|
24036
|
+
},
|
|
24037
|
+
'$wrapperDisabled &': {
|
|
24038
|
+
backgroundColor: src.switchCheckedDisabledCircleFill
|
|
24039
|
+
},
|
|
24000
24040
|
borderRadius: '50%',
|
|
24001
24041
|
position: 'absolute',
|
|
24002
24042
|
backgroundColor: src.switchCircleFill,
|
|
@@ -25539,7 +25579,7 @@ var tag_tag = function tag(type) {
|
|
|
25539
25579
|
var TagStyle = {
|
|
25540
25580
|
tag: {
|
|
25541
25581
|
display: 'inline-flex',
|
|
25542
|
-
padding: "
|
|
25582
|
+
padding: "".concat(src.tagPaddingY, " ").concat(src.tagPaddingX),
|
|
25543
25583
|
fontSize: src.tagFontSize,
|
|
25544
25584
|
fontWeight: src.tagFontWeight,
|
|
25545
25585
|
borderRadius: src.tagBorderRadius,
|
|
@@ -25571,6 +25611,7 @@ var TagStyle = {
|
|
|
25571
25611
|
fontSize: src.tagLargeFontSize,
|
|
25572
25612
|
lineHeight: "calc(".concat(src.tagLargeFontSize, " + 8px)"),
|
|
25573
25613
|
fontWeight: src.tagLargeFontWeight,
|
|
25614
|
+
borderRadius: src.tagLargeBorderRadius,
|
|
25574
25615
|
padding: "".concat(src.tagLargePaddingY, " ").concat(src.tagLargePaddingX),
|
|
25575
25616
|
'& $closeIconWrapper': {
|
|
25576
25617
|
'& svg': {
|
|
@@ -25580,9 +25621,11 @@ var TagStyle = {
|
|
|
25580
25621
|
}
|
|
25581
25622
|
},
|
|
25582
25623
|
small: {
|
|
25624
|
+
fontSize: src.tagSmallFontSize,
|
|
25583
25625
|
lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)"),
|
|
25584
25626
|
padding: "0 ".concat(src.tagSmallPaddingX),
|
|
25585
25627
|
fontWeight: src.tagSmallFontWeight,
|
|
25628
|
+
borderRadius: src.tagSmallBorderRadius,
|
|
25586
25629
|
'& $container': {
|
|
25587
25630
|
lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
|
|
25588
25631
|
},
|
|
@@ -28117,7 +28160,7 @@ var horizontalPosition = ['left-bottom', 'left-top', 'right-bottom', 'right-top'
|
|
|
28117
28160
|
var verticalPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'bottom', 'top'];
|
|
28118
28161
|
var hideStyle = {
|
|
28119
28162
|
pointerEvents: 'none',
|
|
28120
|
-
position: '
|
|
28163
|
+
position: 'fixed',
|
|
28121
28164
|
zIndex: -1000,
|
|
28122
28165
|
opacity: 0
|
|
28123
28166
|
};
|
|
@@ -32737,7 +32780,6 @@ function removeProtocol(url) {
|
|
|
32737
32780
|
short: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
32738
32781
|
long: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
|
|
32739
32782
|
},
|
|
32740
|
-
pickerTitle: ['开始时间', '结束时间'],
|
|
32741
32783
|
timeOfDayValues: ['上午', '下午'],
|
|
32742
32784
|
ok: '确定',
|
|
32743
32785
|
cancel: '取消',
|
|
@@ -32803,7 +32845,6 @@ function removeProtocol(url) {
|
|
|
32803
32845
|
short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
32804
32846
|
long: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
|
32805
32847
|
},
|
|
32806
|
-
pickerTitle: ['Start Time', 'End Time'],
|
|
32807
32848
|
timeOfDayValues: ['a.m.', 'p.m.'],
|
|
32808
32849
|
ok: 'Ok',
|
|
32809
32850
|
cancel: 'Cancel',
|
|
@@ -40020,6 +40061,19 @@ function formatted(date, fmt, options) {
|
|
|
40020
40061
|
function getStartYear(date, options) {
|
|
40021
40062
|
return Math.floor(getDateInfo(date, 'year', options) / 10) * 10;
|
|
40022
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
|
+
};
|
|
40023
40077
|
/* harmony default export */ var util = ({
|
|
40024
40078
|
clearHMS: clearHMS,
|
|
40025
40079
|
addDays: addDays,
|
|
@@ -40056,7 +40110,8 @@ function getStartYear(date, options) {
|
|
|
40056
40110
|
compatibleFmt: compatibleFmt,
|
|
40057
40111
|
transDateWithZone: transDateWithZone,
|
|
40058
40112
|
getStartYear: getStartYear,
|
|
40059
|
-
isValidString: isValidString
|
|
40113
|
+
isValidString: isValidString,
|
|
40114
|
+
getDateWithTime: getDateWithTime
|
|
40060
40115
|
});
|
|
40061
40116
|
;// CONCATENATED MODULE: ../hooks/src/components/use-datepicker/use-datepicker-format.ts
|
|
40062
40117
|
|
|
@@ -40187,6 +40242,7 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
40187
40242
|
});
|
|
40188
40243
|
var setCurrentArrWithParams = usePersistFn(function (arg, type, quick) {
|
|
40189
40244
|
setCurrentArr(arg);
|
|
40245
|
+
if (!type && !quick) return;
|
|
40190
40246
|
setParams({
|
|
40191
40247
|
type: type,
|
|
40192
40248
|
quick: quick
|
|
@@ -40446,17 +40502,7 @@ var useDate = function useDate(props) {
|
|
|
40446
40502
|
return util.getDateInfo(date, 'week', options);
|
|
40447
40503
|
};
|
|
40448
40504
|
var getDateWithTime = function getDateWithTime(date) {
|
|
40449
|
-
|
|
40450
|
-
max = props.max;
|
|
40451
|
-
var timeDate = props.value || props.defaultTime && util.cloneTime(date, props.defaultTime, util.TIME_FORMAT, options);
|
|
40452
|
-
var newDate = util.toDate(date);
|
|
40453
|
-
if (timeDate) {
|
|
40454
|
-
newDate = util.setTime(newDate, timeDate, options);
|
|
40455
|
-
}
|
|
40456
|
-
// only can select day with the same day of min/max
|
|
40457
|
-
if (min && util.compareAsc(newDate, min) < 0) newDate = util.setTime(newDate, min, options);
|
|
40458
|
-
if (max && util.compareAsc(newDate, max) > 0) newDate = util.setTime(newDate, max, options);
|
|
40459
|
-
return newDate;
|
|
40505
|
+
return util.getDateWithTime(date, props.value, props.defaultTime, props.min, props.max, options);
|
|
40460
40506
|
};
|
|
40461
40507
|
var handleDayClick = function handleDayClick(date) {
|
|
40462
40508
|
var _props$onChange;
|
|
@@ -41034,8 +41080,8 @@ var Day = function Day(props) {
|
|
|
41034
41080
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooter,
|
|
41035
41081
|
dir: direction,
|
|
41036
41082
|
children: [props.type === 'datetime' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
41037
|
-
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerFooterLeft, styles === null || styles === void 0 ? void 0 : styles.datetime),
|
|
41038
|
-
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, {
|
|
41039
41085
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
41040
41086
|
children: icons_config.datepicker.Time
|
|
41041
41087
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(time, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
@@ -41043,7 +41089,7 @@ var Day = function Day(props) {
|
|
|
41043
41089
|
showTitle: false,
|
|
41044
41090
|
format: format
|
|
41045
41091
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
41046
|
-
children:
|
|
41092
|
+
children: timeStr
|
|
41047
41093
|
})]
|
|
41048
41094
|
})
|
|
41049
41095
|
}), showRight && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -41916,7 +41962,7 @@ var useRangePick = function useRangePick(props) {
|
|
|
41916
41962
|
newArr[1] = rangeMax;
|
|
41917
41963
|
}
|
|
41918
41964
|
} else if (date.getTime() > newArr[1].getTime()) {
|
|
41919
|
-
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);
|
|
41920
41966
|
newArr[1] = a.getTime() > date.getTime() ? a : new Date(date);
|
|
41921
41967
|
}
|
|
41922
41968
|
}
|
|
@@ -41984,6 +42030,14 @@ var useRangePick = function useRangePick(props) {
|
|
|
41984
42030
|
var setTargetStart = usePersistFn(function (date) {
|
|
41985
42031
|
setTargetArr([date, undefined]);
|
|
41986
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
|
+
});
|
|
41987
42041
|
var setTargetEnd = usePersistFn(function (date) {
|
|
41988
42042
|
setTargetArr([undefined, date]);
|
|
41989
42043
|
});
|
|
@@ -42040,7 +42094,9 @@ var useRangePick = function useRangePick(props) {
|
|
|
42040
42094
|
setTargetStart: setTargetStart,
|
|
42041
42095
|
setTargetEnd: setTargetEnd,
|
|
42042
42096
|
startDisabled: startDisabled,
|
|
42043
|
-
endDisabled: endDisabled
|
|
42097
|
+
endDisabled: endDisabled,
|
|
42098
|
+
getStartDobule: getStartDobule,
|
|
42099
|
+
getEndDobule: getEndDobule
|
|
42044
42100
|
});
|
|
42045
42101
|
var minDate = min ? util.toDate(min, options) : undefined;
|
|
42046
42102
|
var maxDate = max ? util.toDate(max, options) : undefined;
|
|
@@ -42184,12 +42240,18 @@ var Picker = function Picker(props) {
|
|
|
42184
42240
|
onDoubleClick: function onDoubleClick(item, type) {
|
|
42185
42241
|
// 双击同时设置开始和结束日期
|
|
42186
42242
|
if (props.range && props.type === 'datetime') {
|
|
42187
|
-
if (position === 'start'
|
|
42188
|
-
func.
|
|
42189
|
-
|
|
42190
|
-
|
|
42191
|
-
|
|
42192
|
-
|
|
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
|
+
}
|
|
42193
42255
|
}
|
|
42194
42256
|
}
|
|
42195
42257
|
}
|
|
@@ -43035,15 +43097,17 @@ var Modal = function Modal(props) {
|
|
|
43035
43097
|
defaultHeight: height,
|
|
43036
43098
|
panelRef: panelRef
|
|
43037
43099
|
});
|
|
43100
|
+
var rerender = useRender();
|
|
43038
43101
|
var handleMaskVisible = function handleMaskVisible() {
|
|
43039
43102
|
// 多个moal 只有第一个显示的时候才显示遮罩
|
|
43040
43103
|
// context.isMask 用来判断是否是第一个显示的modal
|
|
43041
43104
|
if (visible && !hasMask) {
|
|
43042
43105
|
context.isMask = true;
|
|
43043
43106
|
hasMask = true;
|
|
43107
|
+
rerender();
|
|
43044
43108
|
}
|
|
43045
43109
|
};
|
|
43046
|
-
|
|
43110
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(handleMaskVisible, [visible]);
|
|
43047
43111
|
var updateOrigin = function updateOrigin() {
|
|
43048
43112
|
// 更新transform-origin
|
|
43049
43113
|
if (props.position || props.moveable || !props.zoom) return;
|
|
@@ -47487,7 +47551,7 @@ var useNumberFormat = function useNumberFormat(props) {
|
|
|
47487
47551
|
;// CONCATENATED MODULE: ../base/src/input/input-number.tsx
|
|
47488
47552
|
|
|
47489
47553
|
|
|
47490
|
-
var input_number_excluded = ["jssStyle", "hideArrow"],
|
|
47554
|
+
var input_number_excluded = ["jssStyle", "hideArrow", "numType", "integerLimit", "digits", "min", "max", "step", "allowNull"],
|
|
47491
47555
|
input_number_excluded2 = ["onMinus", "onPlus"];
|
|
47492
47556
|
|
|
47493
47557
|
|
|
@@ -47502,18 +47566,25 @@ var InputNumber = function InputNumber(props) {
|
|
|
47502
47566
|
var commonProps = use_input_common(props);
|
|
47503
47567
|
var jssStyle = commonProps.jssStyle,
|
|
47504
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,
|
|
47505
47576
|
restProps = objectWithoutProperties_default()(commonProps, input_number_excluded);
|
|
47506
47577
|
var inputStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$input = jssStyle.input) === null || _jssStyle$input === void 0 ? void 0 : _jssStyle$input.call(jssStyle);
|
|
47507
47578
|
var numberFormatParams = {
|
|
47508
47579
|
onBlur: restProps.onBlur,
|
|
47509
47580
|
onFocus: restProps.onFocus,
|
|
47510
|
-
digits:
|
|
47511
|
-
integerLimit:
|
|
47512
|
-
numType:
|
|
47513
|
-
min:
|
|
47514
|
-
max:
|
|
47515
|
-
step:
|
|
47516
|
-
allowNull:
|
|
47581
|
+
digits: digits,
|
|
47582
|
+
integerLimit: integerLimit,
|
|
47583
|
+
numType: numType,
|
|
47584
|
+
min: min,
|
|
47585
|
+
max: max,
|
|
47586
|
+
step: step,
|
|
47587
|
+
allowNull: allowNull
|
|
47517
47588
|
};
|
|
47518
47589
|
var _useInputNumber = use_input_number(objectSpread2_default()({
|
|
47519
47590
|
value: commonProps.value,
|
|
@@ -47523,7 +47594,9 @@ var InputNumber = function InputNumber(props) {
|
|
|
47523
47594
|
onMinus = _useInputNumber.onMinus,
|
|
47524
47595
|
onPlus = _useInputNumber.onPlus,
|
|
47525
47596
|
numberFormatProps = objectWithoutProperties_default()(_useInputNumber, input_number_excluded2);
|
|
47526
|
-
var forwardProps = removeProps(commonProps, objectSpread2_default()({}, numberFormatParams)
|
|
47597
|
+
var forwardProps = removeProps(commonProps, objectSpread2_default()(objectSpread2_default()({}, numberFormatParams), {}, {
|
|
47598
|
+
hideArrow: hideArrow
|
|
47599
|
+
}));
|
|
47527
47600
|
var addEnd = hideArrow ? null : /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
47528
47601
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
47529
47602
|
className: inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.numberStep,
|
|
@@ -47664,17 +47737,20 @@ var Scroll = function Scroll(props) {
|
|
|
47664
47737
|
isMouseDown: false
|
|
47665
47738
|
}),
|
|
47666
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;
|
|
47667
47746
|
var _useResize = useResize({
|
|
47668
47747
|
targetRef: containerRef
|
|
47669
47748
|
}),
|
|
47670
47749
|
width = _useResize.width,
|
|
47671
|
-
|
|
47750
|
+
h = _useResize.height;
|
|
47751
|
+
var height = h || defaultHeight;
|
|
47672
47752
|
var config = useConfig();
|
|
47673
47753
|
var isRtl = config.direction === 'rtl';
|
|
47674
|
-
var _props$scrollHeight = props.scrollHeight,
|
|
47675
|
-
scrollHeight = _props$scrollHeight === void 0 ? 0 : _props$scrollHeight,
|
|
47676
|
-
_props$scrollWidth = props.scrollWidth,
|
|
47677
|
-
scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth;
|
|
47678
47754
|
var scrollerStyle = props.scrollerStyle || {
|
|
47679
47755
|
height: '100%',
|
|
47680
47756
|
width: '100%',
|
|
@@ -49237,7 +49313,7 @@ var Tree = function Tree(props) {
|
|
|
49237
49313
|
handleUpdateExpanded(expanded);
|
|
49238
49314
|
}, [expanded]);
|
|
49239
49315
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
49240
|
-
if (!active) return;
|
|
49316
|
+
// if (!active) return;
|
|
49241
49317
|
handleUpdateActive(active);
|
|
49242
49318
|
}, [active]);
|
|
49243
49319
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
@@ -50848,6 +50924,7 @@ var PaginationSimple = function PaginationSimple(props) {
|
|
|
50848
50924
|
|
|
50849
50925
|
|
|
50850
50926
|
|
|
50927
|
+
|
|
50851
50928
|
var usePagination = function usePagination(props) {
|
|
50852
50929
|
var totalProp = props.total,
|
|
50853
50930
|
pageSizeProp = props.pageSize,
|
|
@@ -50868,14 +50945,15 @@ var usePagination = function usePagination(props) {
|
|
|
50868
50945
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50869
50946
|
if (pageSizeProp !== pageSize) setPageSize(pageSizeProp);
|
|
50870
50947
|
}, [pageSizeProp]);
|
|
50871
|
-
var handleChange = function
|
|
50872
|
-
|
|
50948
|
+
var handleChange = usePersistFn(function (c, size) {
|
|
50949
|
+
if (c === current && size === undefined) return;
|
|
50950
|
+
setCurrent(c);
|
|
50873
50951
|
setPageSize(size || pageSizeProp);
|
|
50874
50952
|
if (onChange) {
|
|
50875
|
-
var sizeChange = pageSize !== size;
|
|
50876
|
-
onChange(
|
|
50953
|
+
var sizeChange = size !== undefined && pageSize !== size;
|
|
50954
|
+
onChange(c, size || pageSize, sizeChange);
|
|
50877
50955
|
}
|
|
50878
|
-
};
|
|
50956
|
+
});
|
|
50879
50957
|
var getRootProps = function getRootProps() {
|
|
50880
50958
|
var externalProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
50881
50959
|
var externalEventHandlers = extractEventHandlers(externalProps);
|
|
@@ -56391,8 +56469,8 @@ var Tr = function Tr(props) {
|
|
|
56391
56469
|
};
|
|
56392
56470
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
56393
56471
|
if (props.setRowHeight && trRef.current) {
|
|
56394
|
-
var expandHeight = expandRef.current ? expandRef.current.
|
|
56395
|
-
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);
|
|
56396
56474
|
}
|
|
56397
56475
|
}, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
|
|
56398
56476
|
var renderTreeExpand = function renderTreeExpand(content) {
|
|
@@ -56825,6 +56903,10 @@ var emptyRef = {
|
|
|
56825
56903
|
var tfootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56826
56904
|
var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56827
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;
|
|
56828
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');
|
|
56829
56911
|
|
|
56830
56912
|
// 虚拟列表高度另外计算
|
|
@@ -56994,6 +57076,9 @@ var emptyRef = {
|
|
|
56994
57076
|
if ((_props$data2 = props.data) !== null && _props$data2 !== void 0 && _props$data2.length) return null;
|
|
56995
57077
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
56996
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
|
+
},
|
|
56997
57082
|
children: props.empty || /*#__PURE__*/(0,jsx_runtime.jsx)(src_empty_empty, {
|
|
56998
57083
|
jssStyle: props.jssStyle
|
|
56999
57084
|
})
|
|
@@ -57110,6 +57195,7 @@ var emptyRef = {
|
|
|
57110
57195
|
scrollWidth: width || 1,
|
|
57111
57196
|
scrollHeight: virtual ? virtualInfo.scrollHeight : tbodyHeight,
|
|
57112
57197
|
onScroll: handleVirtualScroll,
|
|
57198
|
+
defaultHeight: context.emptyHeight,
|
|
57113
57199
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
57114
57200
|
style: {
|
|
57115
57201
|
width: width,
|
|
@@ -59676,7 +59762,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
59676
59762
|
keygen: keygen,
|
|
59677
59763
|
unmatch: unmatch,
|
|
59678
59764
|
value: value,
|
|
59679
|
-
highlight:
|
|
59765
|
+
highlight: !multiple,
|
|
59680
59766
|
loader: loader,
|
|
59681
59767
|
onExpand: onExpandTree,
|
|
59682
59768
|
expanded: controlExpanded,
|
|
@@ -63312,7 +63398,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63312
63398
|
|
|
63313
63399
|
|
|
63314
63400
|
/* harmony default export */ var src_0 = ({
|
|
63315
|
-
version: '3.3.0-beta.
|
|
63401
|
+
version: '3.3.0-beta.6'
|
|
63316
63402
|
});
|
|
63317
63403
|
}();
|
|
63318
63404
|
/******/ return __webpack_exports__;
|