shineout 3.9.2 → 3.9.3-beta.10
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 +306 -176
- 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
|
@@ -4548,15 +4548,14 @@ const figma = [
|
|
|
4548
4548
|
{
|
|
4549
4549
|
name: 'Shadow-4',
|
|
4550
4550
|
value: '0px -2px 10px rgba(232, 235, 240, 0.8)',
|
|
4551
|
-
describe: '
|
|
4551
|
+
describe: '详情页底部按钮模块阴影(向上)',
|
|
4552
4552
|
token: 'Shadow-4',
|
|
4553
4553
|
locked: true,
|
|
4554
4554
|
},
|
|
4555
4555
|
{
|
|
4556
4556
|
name: 'Shadow-5',
|
|
4557
|
-
value:
|
|
4558
|
-
|
|
4559
|
-
describe: 'Switch圆圈阴影',
|
|
4557
|
+
value: '0px 2px 10px rgba(232, 235, 240, 0.8)',
|
|
4558
|
+
describe: '详情页底部按钮模块阴影(向下)',
|
|
4560
4559
|
token: 'Shadow-5',
|
|
4561
4560
|
locked: true,
|
|
4562
4561
|
},
|
|
@@ -7447,7 +7446,7 @@ var devUseWarning = {
|
|
|
7447
7446
|
|
|
7448
7447
|
|
|
7449
7448
|
|
|
7450
|
-
var _excluded = ["jssStyle", "type", "className", "children", "icon", "title", "titleStyle", "iconSize", "closable", "hideClose", "bordered", "closeItem", "onClose"];
|
|
7449
|
+
var _excluded = ["jssStyle", "type", "className", "children", "icon", "iconClassName", "title", "titleStyle", "iconSize", "closable", "hideClose", "bordered", "closeItem", "onClose"];
|
|
7451
7450
|
|
|
7452
7451
|
|
|
7453
7452
|
|
|
@@ -7467,6 +7466,7 @@ var Alert = function Alert(props) {
|
|
|
7467
7466
|
className = props.className,
|
|
7468
7467
|
children = props.children,
|
|
7469
7468
|
icon = props.icon,
|
|
7469
|
+
iconClassName = props.iconClassName,
|
|
7470
7470
|
title = props.title,
|
|
7471
7471
|
titleStyle = props.titleStyle,
|
|
7472
7472
|
iconSize = props.iconSize,
|
|
@@ -7523,7 +7523,8 @@ var Alert = function Alert(props) {
|
|
|
7523
7523
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(alert_icon, {
|
|
7524
7524
|
jssStyle: props.jssStyle,
|
|
7525
7525
|
style: style,
|
|
7526
|
-
type: props.type
|
|
7526
|
+
type: props.type,
|
|
7527
|
+
className: iconClassName
|
|
7527
7528
|
});
|
|
7528
7529
|
}
|
|
7529
7530
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -7534,7 +7535,7 @@ var Alert = function Alert(props) {
|
|
|
7534
7535
|
};
|
|
7535
7536
|
var renderTitle = function renderTitle() {
|
|
7536
7537
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
7537
|
-
className: alertStyle.title,
|
|
7538
|
+
className: classnames_default()(alertStyle.title, props.titleClassName),
|
|
7538
7539
|
style: titleStyle,
|
|
7539
7540
|
children: title
|
|
7540
7541
|
});
|
|
@@ -12400,17 +12401,21 @@ var handleStyle = function handleStyle(style) {
|
|
|
12400
12401
|
};
|
|
12401
12402
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12402
12403
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12403
|
-
/* harmony default export */ var version = ('3.9.
|
|
12404
|
+
/* harmony default export */ var version = ('3.9.3-beta.10');
|
|
12404
12405
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12405
12406
|
|
|
12406
12407
|
|
|
12407
12408
|
|
|
12408
12409
|
|
|
12410
|
+
|
|
12409
12411
|
var jss_style_prefix = 'soui';
|
|
12410
12412
|
var jss_style_config = {};
|
|
12411
12413
|
var setJssConfig = function setJssConfig(newConfig) {
|
|
12412
12414
|
Object.assign(jss_style_config, newConfig);
|
|
12413
12415
|
};
|
|
12416
|
+
var getJssConfig = function getJssConfig() {
|
|
12417
|
+
return jss_style_config;
|
|
12418
|
+
};
|
|
12414
12419
|
var stringToHash = function stringToHash(str) {
|
|
12415
12420
|
var hash = 0;
|
|
12416
12421
|
if (str.length === 0) return '';
|
|
@@ -12444,12 +12449,27 @@ var createClassname = function createClassname(rule, sheet) {
|
|
|
12444
12449
|
// };
|
|
12445
12450
|
|
|
12446
12451
|
var styled = function styled(style, ns) {
|
|
12452
|
+
var styleElement = typeof window !== 'undefined' ? document.createElement('style') : undefined;
|
|
12447
12453
|
var hoc = createUseStyles(jss_style_handleStyle(style), {
|
|
12448
12454
|
name: ns,
|
|
12449
|
-
generateId: createClassname
|
|
12455
|
+
generateId: createClassname,
|
|
12456
|
+
element: styleElement
|
|
12450
12457
|
});
|
|
12451
12458
|
var styledCacheMap = {};
|
|
12459
|
+
var attributesApplied = false;
|
|
12452
12460
|
var getClassName = function getClassName() {
|
|
12461
|
+
if (!attributesApplied && styleElement) {
|
|
12462
|
+
var jssConfig = getJssConfig();
|
|
12463
|
+
if (jssConfig.styleAttributes) {
|
|
12464
|
+
Object.entries(jssConfig.styleAttributes).forEach(function (_ref) {
|
|
12465
|
+
var _ref2 = slicedToArray_default()(_ref, 2),
|
|
12466
|
+
key = _ref2[0],
|
|
12467
|
+
value = _ref2[1];
|
|
12468
|
+
styleElement.setAttribute(key, value);
|
|
12469
|
+
});
|
|
12470
|
+
}
|
|
12471
|
+
attributesApplied = true;
|
|
12472
|
+
}
|
|
12453
12473
|
var classes = hoc();
|
|
12454
12474
|
if (styledCacheMap[ns]) {
|
|
12455
12475
|
return styledCacheMap[ns];
|
|
@@ -12791,7 +12811,7 @@ var Token = {
|
|
|
12791
12811
|
'Shadow-2': '0px 4px 10px rgba(2, 11, 24, 0.1)',
|
|
12792
12812
|
'Shadow-3': '0px 8px 20px rgba(2, 11, 24, 0.1)',
|
|
12793
12813
|
'Shadow-4': '0px -2px 10px rgba(232, 235, 240, 0.8)',
|
|
12794
|
-
'Shadow-5': '
|
|
12814
|
+
'Shadow-5': '0px 2px 10px rgba(232, 235, 240, 0.8)',
|
|
12795
12815
|
'Line-height-dynamic': 'calc( 1em + 8px )',
|
|
12796
12816
|
'Line-height-dynamic-min': 'calc( max(1em, 14px) + 8px )',
|
|
12797
12817
|
Transparent: 'transparent',
|
|
@@ -12956,7 +12976,7 @@ var alertTokens = {
|
|
|
12956
12976
|
alertDangerBackgroundColor: 'Danger-1',
|
|
12957
12977
|
alertDangerBorderColor: 'Danger-2',
|
|
12958
12978
|
alertDangerFontColor: 'Danger-6',
|
|
12959
|
-
alertIconSize: '
|
|
12979
|
+
alertIconSize: 'Font-16',
|
|
12960
12980
|
alertFontSize: 'Font-14',
|
|
12961
12981
|
alertFontWeight: 'Weight-regular',
|
|
12962
12982
|
alertFontColor: 'Neutral-text-5',
|
|
@@ -12966,8 +12986,8 @@ var alertTokens = {
|
|
|
12966
12986
|
alertNearlyMargin: 'Spacing-8',
|
|
12967
12987
|
alertTitleFontSize: 'Font-16',
|
|
12968
12988
|
alertTitleFontWeight: 'Weight-medium',
|
|
12969
|
-
alertTitleMarginY: 'Spacing-
|
|
12970
|
-
alertTitleIconWidth: '
|
|
12989
|
+
alertTitleMarginY: 'Spacing-4',
|
|
12990
|
+
alertTitleIconWidth: 'Font-16',
|
|
12971
12991
|
alertTitleIconHeight: 'Size-12',
|
|
12972
12992
|
alertCloseFontColor: 'Neutral-text-4',
|
|
12973
12993
|
alertCloseHoverColor: 'Neutral-text-5',
|
|
@@ -13063,7 +13083,8 @@ var breadcrumbTokens = {
|
|
|
13063
13083
|
breadcrumbListItemHoverFontColor: 'Neutral-text-3',
|
|
13064
13084
|
breadcrumbPrevFontWeight: 'Weight-regular',
|
|
13065
13085
|
breadcrumbSeparatorMarginX: 'Spacing-8',
|
|
13066
|
-
breadcrumbIconBackgroundColor: 'Neutral-text-4'
|
|
13086
|
+
breadcrumbIconBackgroundColor: 'Neutral-text-4',
|
|
13087
|
+
breadcrumbDownIconSize: 'Font-14'
|
|
13067
13088
|
};
|
|
13068
13089
|
/* harmony default export */ var breadcrumb = (breadcrumbTokens);
|
|
13069
13090
|
;// CONCATENATED MODULE: ../theme/src/breadcrumb/index.ts
|
|
@@ -13536,7 +13557,7 @@ var cascaderTokens = {
|
|
|
13536
13557
|
cascaderBorderColor: 'Neutral-border-2',
|
|
13537
13558
|
cascaderPaddingX: 'Spacing-8',
|
|
13538
13559
|
cascaderPaddingY: 'Spacing-2',
|
|
13539
|
-
cascaderIconSize: '
|
|
13560
|
+
cascaderIconSize: 'Font-14',
|
|
13540
13561
|
cascaderIconColor: 'Neutral-text-4',
|
|
13541
13562
|
cascaderTagMarginY: 'Spacing-2',
|
|
13542
13563
|
cascaderTagMarginRight: 'Spacing-4',
|
|
@@ -13595,6 +13616,7 @@ var cascaderTokens = {
|
|
|
13595
13616
|
cascaderOptionInnerPaddingRight: 'Size-15',
|
|
13596
13617
|
cascaderOptionInnerBorderRadius: 'Radius-lesser',
|
|
13597
13618
|
cascaderOptionIconColor: 'Neutral-text-4',
|
|
13619
|
+
cascaderOptionIconSize: 'Font-14',
|
|
13598
13620
|
cascaderOptionHoverBackgroundColor: 'Neutral-fill-2',
|
|
13599
13621
|
cascaderOptionHoverFontColor: 'Neutral-text-5',
|
|
13600
13622
|
cascaderOptionFocusBackgroundColor: 'Neutral-fill-3',
|
|
@@ -13624,7 +13646,7 @@ var cascaderTokens = {
|
|
|
13624
13646
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
13625
13647
|
|
|
13626
13648
|
var checkboxTokens = {
|
|
13627
|
-
checkboxIconSize: '
|
|
13649
|
+
checkboxIconSize: 'Font-14',
|
|
13628
13650
|
checkboxIconBorderColor: 'Neutral-border-2',
|
|
13629
13651
|
checkboxIconBorderRadius: 'Radius-lesser',
|
|
13630
13652
|
checkboxIconBorderWidth: 'Border-1',
|
|
@@ -13650,9 +13672,9 @@ var checkboxTokens = {
|
|
|
13650
13672
|
checkboxLabelDisabledFontColor: 'Neutral-text-2',
|
|
13651
13673
|
checkboxGap: 'Spacing-24',
|
|
13652
13674
|
checkboxBlockGap: 'Spacing-12',
|
|
13653
|
-
checkboxSmallIconSize: '
|
|
13675
|
+
checkboxSmallIconSize: 'Font-12',
|
|
13654
13676
|
checkboxSmallLabelFontSize: 'Font-12',
|
|
13655
|
-
checkboxLargeIconSize: '
|
|
13677
|
+
checkboxLargeIconSize: 'Font-16',
|
|
13656
13678
|
checkboxLargeLabelFontSize: 'Font-16'
|
|
13657
13679
|
};
|
|
13658
13680
|
/* harmony default export */ var checkbox_checkbox = (checkboxTokens);
|
|
@@ -13728,13 +13750,15 @@ var datePickerTokens = {
|
|
|
13728
13750
|
datePickerBorderColor: 'Neutral-border-2',
|
|
13729
13751
|
datePickerPaddingX: 'Spacing-8',
|
|
13730
13752
|
datePickerPaddingY: 'Spacing-4',
|
|
13731
|
-
datePickerIconSize: '
|
|
13753
|
+
datePickerIconSize: 'Font-14',
|
|
13732
13754
|
datePickerIconColor: 'Neutral-text-4',
|
|
13755
|
+
datePickerSmallIconSize: 'Font-12',
|
|
13733
13756
|
datePickerSmallPanelFooterNowPaddingX: 'Spacing-16',
|
|
13734
13757
|
datePickerSmallPanelFooterNowPaddingY: 'Spacing-11',
|
|
13735
13758
|
datePickerSmallFontSize: 'Font-12',
|
|
13736
13759
|
datePickerSmallPaddingX: 'Spacing-8',
|
|
13737
13760
|
datePickerSmallPaddingY: 'Spacing-1',
|
|
13761
|
+
datePickerLargeIconSize: 'Font-16',
|
|
13738
13762
|
datePickerLargeFontSize: 'Font-16',
|
|
13739
13763
|
datePickerLargePaddingX: 'Spacing-12',
|
|
13740
13764
|
datePickerLargePaddingY: 'Spacing-7',
|
|
@@ -13772,7 +13796,7 @@ var datePickerTokens = {
|
|
|
13772
13796
|
datePickerPanelHeaderPaddingY: 'Spacing-8',
|
|
13773
13797
|
datePickerPanelHeaderBorderColor: 'Neutral-border-1',
|
|
13774
13798
|
datePickerPanelHeaderIconColor: 'Neutral-text-4',
|
|
13775
|
-
datePickerPanelHeaderIconWidth: '
|
|
13799
|
+
datePickerPanelHeaderIconWidth: 'Font-14',
|
|
13776
13800
|
datePickerPanelHeaderIconHotWidth: 'Size-13',
|
|
13777
13801
|
datePickerPanelHeaderIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
13778
13802
|
datePickerPanelHeaderTitlePaddingX: 'Spacing-4',
|
|
@@ -13890,12 +13914,14 @@ var dividerTokens = {
|
|
|
13890
13914
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
13891
13915
|
|
|
13892
13916
|
var dropdownTokens = {
|
|
13893
|
-
dropdownCaretMarginLeft: 'Spacing-4',
|
|
13894
13917
|
dropdownListBorderRadius: 'Radius-default',
|
|
13918
|
+
dropdownListBorderColor: 'Neutral-border-1',
|
|
13919
|
+
dropdownListBorderWidth: 'Border-1',
|
|
13895
13920
|
dropdownListPaddingX: 'Spacing-4',
|
|
13896
13921
|
dropdownListPaddingY: 'Spacing-4',
|
|
13897
13922
|
dropdownListFontSize: 'Font-14',
|
|
13898
13923
|
dropdownListFontWeight: 'Weight-regular',
|
|
13924
|
+
dropdownListFontColor: 'Neutral-text-5',
|
|
13899
13925
|
dropdownListSmallBorderRadius: 'Radius-default',
|
|
13900
13926
|
dropdownListSmallPaddingX: 'Spacing-4',
|
|
13901
13927
|
dropdownListSmallPaddingY: 'Spacing-4',
|
|
@@ -13905,10 +13931,7 @@ var dropdownTokens = {
|
|
|
13905
13931
|
dropdownListLargePaddingY: 'Spacing-4',
|
|
13906
13932
|
dropdownListLargeFontSize: 'Font-16',
|
|
13907
13933
|
dropdownListBackgroundColor: 'Neutral-fill-1',
|
|
13908
|
-
dropdownListBorderColor: 'Neutral-border-1',
|
|
13909
|
-
dropdownListFontColor: 'Neutral-text-5',
|
|
13910
13934
|
dropdownListBoxShadow: 'Shadow-2',
|
|
13911
|
-
dropdownListBorderWidth: 'Border-1',
|
|
13912
13935
|
dropdownOptionPaddingX: 'Spacing-8',
|
|
13913
13936
|
dropdownOptionPaddingY: 'Spacing-5',
|
|
13914
13937
|
dropdownOptionSmallPaddingX: 'Spacing-8',
|
|
@@ -13917,6 +13940,7 @@ var dropdownTokens = {
|
|
|
13917
13940
|
dropdownOptionLargePaddingY: 'Spacing-8',
|
|
13918
13941
|
dropdownOptionBackgroundColor: 'Neutral-fill-1',
|
|
13919
13942
|
dropdownOptionFontColor: 'Neutral-text-5',
|
|
13943
|
+
dropdownOptionFontWeight: 'Weight-regular',
|
|
13920
13944
|
dropdownOptionHoverBackgroundColor: 'Neutral-fill-2',
|
|
13921
13945
|
dropdownOptionHoverFontColor: 'Neutral-text-5',
|
|
13922
13946
|
dropdownOptionActiveBackgroundColor: 'Neutral-fill-3',
|
|
@@ -13926,11 +13950,8 @@ var dropdownTokens = {
|
|
|
13926
13950
|
dropdownOptionDisabledBackgroundColor: 'Neutral-fill-1',
|
|
13927
13951
|
dropdownOptionDisabledFontColor: 'Neutral-text-2',
|
|
13928
13952
|
dropdownOptionBorderRadius: 'Radius-2',
|
|
13929
|
-
dropdownOptionFontWeight: 'Weight-regular',
|
|
13930
|
-
dropdownColumnPaddingX: 'Spacing-4',
|
|
13931
|
-
dropdownColumnPaddingY: 'Spacing-4',
|
|
13932
13953
|
dropdownOptionGroupPaddingX: 'Spacing-8',
|
|
13933
|
-
dropdownOptionGroupPaddingTop: '
|
|
13954
|
+
dropdownOptionGroupPaddingTop: 'Font-14',
|
|
13934
13955
|
dropdownOptionGroupPaddingBottom: 'Spacing-2',
|
|
13935
13956
|
dropdownOptionGroupFontSize: 'Font-12',
|
|
13936
13957
|
dropdownOptionGroupFontColor: 'Neutral-text-3',
|
|
@@ -13938,12 +13959,16 @@ var dropdownTokens = {
|
|
|
13938
13959
|
dropdownOptionGroupSmallX: 'Spacing-8',
|
|
13939
13960
|
dropdownOptionGroupSmallTop: 'Spacing-4',
|
|
13940
13961
|
dropdownOptionGroupLargeX: 'Spacing-12',
|
|
13941
|
-
dropdownOptionGroupLargeTop: '
|
|
13962
|
+
dropdownOptionGroupLargeTop: 'Font-16',
|
|
13942
13963
|
dropdownOptionGroupLargeBottom: 'Spacing-4',
|
|
13964
|
+
dropdownOptionGroupLargeFontSize: 'Font-14',
|
|
13943
13965
|
dropdownOptionDividerBackgroundColor: 'Neutral-border-1',
|
|
13944
13966
|
dropdownOptionDividerPaddingX: 'Spacing-8',
|
|
13945
13967
|
dropdownOptionDividerPaddingY: 'Spacing-2',
|
|
13946
|
-
dropdownOptionDividerHeight: 'Border-1'
|
|
13968
|
+
dropdownOptionDividerHeight: 'Border-1',
|
|
13969
|
+
dropdownColumnPaddingX: 'Spacing-4',
|
|
13970
|
+
dropdownColumnPaddingY: 'Spacing-4',
|
|
13971
|
+
dropdownCaretMarginLeft: 'Spacing-4'
|
|
13947
13972
|
};
|
|
13948
13973
|
/* harmony default export */ var dropdown = (dropdownTokens);
|
|
13949
13974
|
;// CONCATENATED MODULE: ../theme/src/dropdown/index.ts
|
|
@@ -14075,14 +14100,16 @@ var inputTokens = {
|
|
|
14075
14100
|
inputBorderWidth: 'Border-1',
|
|
14076
14101
|
inputPaddingX: 'Spacing-8',
|
|
14077
14102
|
inputPaddingY: 'Spacing-4',
|
|
14078
|
-
inputIconSize: '
|
|
14103
|
+
inputIconSize: 'Font-14',
|
|
14079
14104
|
inputIconColor: 'Neutral-text-4',
|
|
14080
14105
|
inputSmallFontSize: 'Font-12',
|
|
14081
14106
|
inputSmallPaddingX: 'Spacing-8',
|
|
14082
14107
|
inputSmallPaddingY: 'Spacing-1',
|
|
14108
|
+
inputSmallIconSize: 'Font-12',
|
|
14083
14109
|
inputLargeFontSize: 'Font-16',
|
|
14084
14110
|
inputLargePaddingX: 'Spacing-12',
|
|
14085
14111
|
inputLargePaddingY: 'Spacing-7',
|
|
14112
|
+
inputLargeIconSize: 'Font-16',
|
|
14086
14113
|
inputPlaceholderColor: 'Neutral-text-2',
|
|
14087
14114
|
inputPlaceholderFontWeight: 'Weight-regular',
|
|
14088
14115
|
inputBackgroundColor: 'Neutral-fill-1',
|
|
@@ -14141,9 +14168,9 @@ var inputTokens = {
|
|
|
14141
14168
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
14142
14169
|
|
|
14143
14170
|
var linkTokens = {
|
|
14144
|
-
linkDefaultFontSize: '
|
|
14145
|
-
linkSmallFontSize: '
|
|
14146
|
-
linkLargeFontSize: '
|
|
14171
|
+
linkDefaultFontSize: 'Font-14',
|
|
14172
|
+
linkSmallFontSize: 'Font-12',
|
|
14173
|
+
linkLargeFontSize: 'Font-16',
|
|
14147
14174
|
linkPrimaryFontColor: 'Brand-6',
|
|
14148
14175
|
linkPrimaryDisabledFontColor: 'Brand-3',
|
|
14149
14176
|
linkPrimaryHoverFontColor: 'Brand-5',
|
|
@@ -14227,7 +14254,7 @@ var menuTokens = {
|
|
|
14227
14254
|
menuTitlePaddingX: 'Spacing-16',
|
|
14228
14255
|
menuTitlePaddingY: 'Spacing-9',
|
|
14229
14256
|
menuExpandWidth: 'Spacing-46',
|
|
14230
|
-
menuExpandSize: '
|
|
14257
|
+
menuExpandSize: 'Font-14',
|
|
14231
14258
|
menuExpandHoverBackgroundColor: 'Neutral-fill-3',
|
|
14232
14259
|
menuChildrenBoxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
|
|
14233
14260
|
menuHeaderBorderColor: 'Neutral-border-1',
|
|
@@ -14367,14 +14394,14 @@ var paginationTokens = {
|
|
|
14367
14394
|
var popoverTokens = {
|
|
14368
14395
|
popoverFontSize: 'Font-14',
|
|
14369
14396
|
popoverFontWeight: 'Weight-regular',
|
|
14397
|
+
popoverFontColor: 'Neutral-text-5',
|
|
14370
14398
|
popoverPaddingX: 'Spacing-8',
|
|
14371
14399
|
popoverPaddingY: 'Spacing-8',
|
|
14372
14400
|
popoverRadius: 'Radius-default',
|
|
14373
14401
|
popoverBorderWidth: 'Border-1',
|
|
14374
|
-
|
|
14402
|
+
popoverBorderColor: 'Neutral-border-1',
|
|
14375
14403
|
popoverBackgroundColor: 'Neutral-fill-1',
|
|
14376
14404
|
popoverShadow: 'Shadow-2',
|
|
14377
|
-
popoverBorderColor: 'Neutral-border-1',
|
|
14378
14405
|
popoverSuccessBackgroundColor: 'Success-1',
|
|
14379
14406
|
popoverSuccessBorderColor: 'Success-2',
|
|
14380
14407
|
popoverWarningBackgroundColor: 'Warning-1',
|
|
@@ -14389,7 +14416,8 @@ var popoverTokens = {
|
|
|
14389
14416
|
popoverConfirmPaddingX: 'Spacing-16',
|
|
14390
14417
|
popoverConfirmPaddingY: 'Spacing-16',
|
|
14391
14418
|
popoverConfirmMarginY: 'Spacing-16',
|
|
14392
|
-
popoverConfirmBackgroundColor: 'transparent'
|
|
14419
|
+
popoverConfirmBackgroundColor: 'transparent',
|
|
14420
|
+
popoverConfirmTitleFontSize: 'Font-14'
|
|
14393
14421
|
};
|
|
14394
14422
|
/* harmony default export */ var popover = (popoverTokens);
|
|
14395
14423
|
;// CONCATENATED MODULE: ../theme/src/popover/index.ts
|
|
@@ -14448,7 +14476,7 @@ var progressTokens = {
|
|
|
14448
14476
|
var radioTokens = {
|
|
14449
14477
|
radioGap: 'Spacing-24',
|
|
14450
14478
|
radioBlockGap: 'Spacing-12',
|
|
14451
|
-
radioIconWidth: '
|
|
14479
|
+
radioIconWidth: 'Font-14',
|
|
14452
14480
|
radioIconGap: 'Spacing-8',
|
|
14453
14481
|
radioIconBorderWidth: 'Border-2',
|
|
14454
14482
|
radioIconInnerSize: 'Size-3',
|
|
@@ -14465,12 +14493,12 @@ var radioTokens = {
|
|
|
14465
14493
|
radioIconWrapperFill: 'Neutral-fill-2',
|
|
14466
14494
|
radioIconWrapperDark: 'Neutral-fill-3',
|
|
14467
14495
|
radioPaddingY: 'Spacing-4',
|
|
14468
|
-
radioSmallIconWidth: '
|
|
14496
|
+
radioSmallIconWidth: 'Font-12',
|
|
14469
14497
|
radioSmallIconBorderWidth: 'Border-1',
|
|
14470
14498
|
radioSmallIconInnerSize: 'Size-3',
|
|
14471
14499
|
radioSmallLabelFontSize: 'Font-12',
|
|
14472
14500
|
radioSmallPaddingY: 'Spacing-1',
|
|
14473
|
-
radioLargeIconWidth: '
|
|
14501
|
+
radioLargeIconWidth: 'Font-16',
|
|
14474
14502
|
radioLargeIconBorderWidth: 'Border-2',
|
|
14475
14503
|
radioLargeLabelFontSize: 'Font-16',
|
|
14476
14504
|
radioLargePaddingY: 'Spacing-7',
|
|
@@ -14764,7 +14792,7 @@ var switchTokens = {
|
|
|
14764
14792
|
switchPaddingY: 'Spacing-2',
|
|
14765
14793
|
switchCircleSize: 'Size-9',
|
|
14766
14794
|
switchCircleFill: 'Neutral-text-1',
|
|
14767
|
-
switchCircleShadow: 'Shadow-
|
|
14795
|
+
switchCircleShadow: 'Shadow-3',
|
|
14768
14796
|
switchWidth: 'Size-21',
|
|
14769
14797
|
switchTextPaddingLeft: 'Spacing-8',
|
|
14770
14798
|
switchTextPaddingRight: 'Spacing-4',
|
|
@@ -14855,7 +14883,7 @@ var tableTokens = {
|
|
|
14855
14883
|
tableFilterFooterPaddingY: 'Spacing-8',
|
|
14856
14884
|
tableFilterFooterBorderColor: 'Neutral-border-1',
|
|
14857
14885
|
tableFilterInputMarginBottom: 'Spacing-8',
|
|
14858
|
-
tableFilterInputIconSize: '
|
|
14886
|
+
tableFilterInputIconSize: 'Font-14',
|
|
14859
14887
|
tableFilterInputIconColor: 'Neutral-text-4',
|
|
14860
14888
|
tableFilterInputIconMarginRight: 'Spacing-8',
|
|
14861
14889
|
tableFilterIconColor: 'Neutral-text-3',
|
|
@@ -14863,7 +14891,7 @@ var tableTokens = {
|
|
|
14863
14891
|
tableFilterIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
14864
14892
|
tableFilterIconActiveColor: 'Brand-6',
|
|
14865
14893
|
tableFilterIconPadding: 'Spacing-4',
|
|
14866
|
-
tableFilterIconSize: '
|
|
14894
|
+
tableFilterIconSize: 'Font-14',
|
|
14867
14895
|
tableResizeColor: 'Brand-7',
|
|
14868
14896
|
tableSelectionBorderColor: 'Brand-6',
|
|
14869
14897
|
tablePaginationMarginY: 'Spacing-12'
|
|
@@ -14957,6 +14985,7 @@ var tabsTokens = {
|
|
|
14957
14985
|
tabsActionHorizontalPaddingY: 'Spacing-8',
|
|
14958
14986
|
tabsExtraFillHoverBackgroundColor: 'Neutral-fill-3',
|
|
14959
14987
|
tabsArrowFontColor: 'Neutral-text-4',
|
|
14988
|
+
tabsArrowFontSize: 'Font-14',
|
|
14960
14989
|
tabsBadgeMargin: 'Spacing-0'
|
|
14961
14990
|
};
|
|
14962
14991
|
/* harmony default export */ var tabs = (tabsTokens);
|
|
@@ -14996,6 +15025,7 @@ var tagTokens = {
|
|
|
14996
15025
|
tagInfoIconDisabledFontColor: 'Brand-3',
|
|
14997
15026
|
tagInfoIconHoverBackgroundColor: 'Brand-2',
|
|
14998
15027
|
tagDefaultLineHeight: 'Line-height-dynamic',
|
|
15028
|
+
tagDefaultLineBase: 'Font-14',
|
|
14999
15029
|
tagDefaultFontColor: 'Neutral-text-5',
|
|
15000
15030
|
tagDefaultBackgroundColor: 'Neutral-fill-2',
|
|
15001
15031
|
tagDefaultBorderColor: 'Neutral-fill-2',
|
|
@@ -15436,6 +15466,7 @@ var treeTokens = {
|
|
|
15436
15466
|
treeTextPaddingY: 'Spacing-2',
|
|
15437
15467
|
treeTextPaddingX: 'Spacing-4',
|
|
15438
15468
|
treeCheckboxMarginX: 'Spacing-8',
|
|
15469
|
+
treeIconSize: 'Font-14',
|
|
15439
15470
|
treeFontSize: 'Font-14',
|
|
15440
15471
|
treeLineHeight: 'Size-18',
|
|
15441
15472
|
treeSmallFontSize: 'Font-12',
|
|
@@ -15765,8 +15796,8 @@ var alertStyle = {
|
|
|
15765
15796
|
cursor: 'pointer',
|
|
15766
15797
|
color: src.alertCloseFontColor,
|
|
15767
15798
|
fontSize: src.alertFontSize,
|
|
15768
|
-
height: src.
|
|
15769
|
-
width: src.
|
|
15799
|
+
height: "calc(".concat(src.alertFontSize, " + 2px)"),
|
|
15800
|
+
width: "calc(".concat(src.alertFontSize, " + 2px)"),
|
|
15770
15801
|
flex: '0 0 auto',
|
|
15771
15802
|
display: 'flex',
|
|
15772
15803
|
alignItems: 'center',
|
|
@@ -16173,8 +16204,8 @@ var breadcrumbStyle = {
|
|
|
16173
16204
|
}
|
|
16174
16205
|
},
|
|
16175
16206
|
down: {
|
|
16176
|
-
width:
|
|
16177
|
-
height:
|
|
16207
|
+
width: src.breadcrumbDownIconSize,
|
|
16208
|
+
height: src.breadcrumbDownIconSize,
|
|
16178
16209
|
lineHeight: '1',
|
|
16179
16210
|
marginLeft: 4
|
|
16180
16211
|
},
|
|
@@ -18029,7 +18060,7 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
18029
18060
|
justifyContent: 'center',
|
|
18030
18061
|
'& svg': {
|
|
18031
18062
|
verticalAlign: 'middle',
|
|
18032
|
-
width:
|
|
18063
|
+
width: src.cascaderOptionIconSize
|
|
18033
18064
|
}
|
|
18034
18065
|
},
|
|
18035
18066
|
optionSpin: {
|
|
@@ -18252,7 +18283,7 @@ var collapseItemStyle = {
|
|
|
18252
18283
|
},
|
|
18253
18284
|
header: {
|
|
18254
18285
|
display: 'flex',
|
|
18255
|
-
alignItems: '
|
|
18286
|
+
alignItems: 'flex-start',
|
|
18256
18287
|
justifyContent: 'space-between',
|
|
18257
18288
|
boxSizing: 'border-box',
|
|
18258
18289
|
overflow: 'hidden',
|
|
@@ -18293,7 +18324,7 @@ var collapseItemStyle = {
|
|
|
18293
18324
|
cursor: 'pointer',
|
|
18294
18325
|
position: 'relative',
|
|
18295
18326
|
color: src.collapseIconColor,
|
|
18296
|
-
|
|
18327
|
+
height: src.lineHeightDynamic,
|
|
18297
18328
|
zIndex: 0,
|
|
18298
18329
|
marginRight: src.collapseHeaderGap,
|
|
18299
18330
|
'& svg': {
|
|
@@ -18579,7 +18610,15 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()(objectSpre
|
|
|
18579
18610
|
color: src.datePickerIconColor,
|
|
18580
18611
|
'& svg': {
|
|
18581
18612
|
width: src.datePickerIconSize,
|
|
18582
|
-
height: src.datePickerIconSize
|
|
18613
|
+
height: src.datePickerIconSize,
|
|
18614
|
+
'$wrapperSmall &': {
|
|
18615
|
+
width: src.datePickerSmallIconSize,
|
|
18616
|
+
height: src.datePickerSmallIconSize
|
|
18617
|
+
},
|
|
18618
|
+
'$wrapperLarge &': {
|
|
18619
|
+
width: src.datePickerLargeIconSize,
|
|
18620
|
+
height: src.datePickerLargeIconSize
|
|
18621
|
+
}
|
|
18583
18622
|
},
|
|
18584
18623
|
// todo 暂时写死
|
|
18585
18624
|
marginLeft: '8px'
|
|
@@ -18744,6 +18783,7 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()(objectSpre
|
|
|
18744
18783
|
padding: "".concat(src.datePickerSmallPanelFooterNowPaddingY, " ").concat(src.datePickerSmallPanelFooterNowPaddingX)
|
|
18745
18784
|
}
|
|
18746
18785
|
},
|
|
18786
|
+
wrapperLarge: {},
|
|
18747
18787
|
pickerFooterNow: {
|
|
18748
18788
|
padding: "".concat(src.datePickerPanelFooterPaddingY, " ").concat(src.datePickerPanelFooterPaddingX),
|
|
18749
18789
|
'&:only-child': {
|
|
@@ -19550,10 +19590,11 @@ var dropdown_dropdown = {
|
|
|
19550
19590
|
},
|
|
19551
19591
|
itemDisabled: {},
|
|
19552
19592
|
optionGroup: {
|
|
19553
|
-
padding: "".concat(src.dropdownOptionGroupPaddingTop, " ").concat(src.dropdownOptionGroupPaddingX, " ").concat(src.dropdownOptionGroupPaddingBottom, " ").concat(src.dropdownOptionGroupPaddingX),
|
|
19593
|
+
padding: "calc(".concat(src.dropdownOptionGroupPaddingTop, " - 4px) ").concat(src.dropdownOptionGroupPaddingX, " ").concat(src.dropdownOptionGroupPaddingBottom, " ").concat(src.dropdownOptionGroupPaddingX),
|
|
19554
19594
|
fontSize: src.dropdownOptionGroupFontSize,
|
|
19555
19595
|
fontWeight: src.dropdownOptionGroupFontWeight,
|
|
19556
19596
|
color: src.dropdownOptionGroupFontColor,
|
|
19597
|
+
lineHeight: src.lineHeightDynamic,
|
|
19557
19598
|
'$listSmall &': {
|
|
19558
19599
|
padding: "".concat(src.dropdownOptionGroupSmallTop, " ").concat(src.dropdownOptionGroupSmallX, " 0 ").concat(src.dropdownOptionGroupSmallX)
|
|
19559
19600
|
},
|
|
@@ -20837,6 +20878,14 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
|
|
|
20837
20878
|
},
|
|
20838
20879
|
'&[dir=rtl]': {
|
|
20839
20880
|
left: '0'
|
|
20881
|
+
},
|
|
20882
|
+
'$wrapperSmall &': {
|
|
20883
|
+
width: src.inputSmallIconSize,
|
|
20884
|
+
height: src.inputSmallIconSize
|
|
20885
|
+
},
|
|
20886
|
+
'$wrapperLarge &': {
|
|
20887
|
+
width: src.inputLargeIconSize,
|
|
20888
|
+
height: src.inputLargeIconSize
|
|
20840
20889
|
}
|
|
20841
20890
|
},
|
|
20842
20891
|
group: objectSpread2_default()(objectSpread2_default()({}, group), {}, {
|
|
@@ -20886,7 +20935,7 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
|
|
|
20886
20935
|
borderBottom: "1px solid ".concat(src.inputBorderColor)
|
|
20887
20936
|
},
|
|
20888
20937
|
'& svg': {
|
|
20889
|
-
width:
|
|
20938
|
+
width: src.inputIconSize,
|
|
20890
20939
|
transform: 'rotate(-90deg)'
|
|
20891
20940
|
}
|
|
20892
20941
|
},
|
|
@@ -20901,13 +20950,20 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
|
|
|
20901
20950
|
passwordToggle: {
|
|
20902
20951
|
display: 'flex',
|
|
20903
20952
|
alignItems: 'center',
|
|
20953
|
+
flexShrink: 0,
|
|
20904
20954
|
width: src.inputIconSize,
|
|
20905
20955
|
height: src.inputIconSize,
|
|
20906
20956
|
color: src.inputToggleColor,
|
|
20907
20957
|
cursor: 'pointer',
|
|
20958
|
+
'$wrapperSmall &': {
|
|
20959
|
+
width: src.inputSmallIconSize,
|
|
20960
|
+
height: src.inputSmallIconSize
|
|
20961
|
+
},
|
|
20962
|
+
'$wrapperLarge &': {
|
|
20963
|
+
width: src.inputLargeIconSize,
|
|
20964
|
+
height: src.inputLargeIconSize
|
|
20965
|
+
},
|
|
20908
20966
|
'& > svg': {
|
|
20909
|
-
width: src.inputIconSize,
|
|
20910
|
-
height: src.inputIconSize,
|
|
20911
20967
|
cursor: 'pointer',
|
|
20912
20968
|
pointerEvents: 'none'
|
|
20913
20969
|
},
|
|
@@ -23266,6 +23322,14 @@ var popoverStyle = objectSpread2_default()(objectSpread2_default()({}, tooltipAn
|
|
|
23266
23322
|
marginBottom: src.popoverConfirmMarginY
|
|
23267
23323
|
}
|
|
23268
23324
|
},
|
|
23325
|
+
mentionTitle: {
|
|
23326
|
+
fontSize: src.popoverConfirmTitleFontSize
|
|
23327
|
+
},
|
|
23328
|
+
mentionIcon: {
|
|
23329
|
+
'&&': {
|
|
23330
|
+
fontSize: src.popoverConfirmTitleFontSize
|
|
23331
|
+
}
|
|
23332
|
+
},
|
|
23269
23333
|
footer: {
|
|
23270
23334
|
textAlign: 'right'
|
|
23271
23335
|
}
|
|
@@ -24068,7 +24132,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24068
24132
|
fontSize: src.selectSmallFontSize
|
|
24069
24133
|
},
|
|
24070
24134
|
'& $optionGroupTitle': {
|
|
24071
|
-
padding: "".concat(src.
|
|
24135
|
+
padding: "calc(".concat(src.selectFontSize, " - 10px) ").concat(src.selectGroupTitlePaddingX, " 0 ").concat(src.selectGroupTitlePaddingX)
|
|
24072
24136
|
}
|
|
24073
24137
|
},
|
|
24074
24138
|
pickerLarge: {
|
|
@@ -24080,7 +24144,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24080
24144
|
fontSize: src.selectLargeFontSize
|
|
24081
24145
|
},
|
|
24082
24146
|
'& $optionGroupTitle': {
|
|
24083
|
-
padding: "".concat(src.
|
|
24147
|
+
padding: "calc(".concat(src.selectFontSize, " + 2px) ").concat(src.selectGroupTitlePaddingX, " ").concat(src.selectGroupTitleLargeBottom, " ").concat(src.selectGroupTitlePaddingX)
|
|
24084
24148
|
}
|
|
24085
24149
|
},
|
|
24086
24150
|
iconWrapper: {
|
|
@@ -24297,7 +24361,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24297
24361
|
optionGroupTitle: {
|
|
24298
24362
|
fontSize: src.selectGroupTitleFontSize,
|
|
24299
24363
|
lineHeight: src.lineHeightDynamic,
|
|
24300
|
-
padding: "".concat(src.
|
|
24364
|
+
padding: "calc(".concat(src.selectFontSize, " - 4px) ").concat(src.selectGroupTitlePaddingX, " ").concat(src.selectGroupTitlePaddingBottom, " ").concat(src.selectGroupTitlePaddingX),
|
|
24301
24365
|
color: src.selectGroupTitleFontColor,
|
|
24302
24366
|
fontWeight: src.selectGroupTitleFontWeight
|
|
24303
24367
|
},
|
|
@@ -26495,12 +26559,13 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
26495
26559
|
backgroundColor: src.switchDisabledCircleCheckedFill
|
|
26496
26560
|
},
|
|
26497
26561
|
'$wrapperDisabled &': {
|
|
26562
|
+
boxShadow: 'none',
|
|
26498
26563
|
backgroundColor: src.switchCheckedDisabledCircleFill
|
|
26499
26564
|
},
|
|
26500
26565
|
borderRadius: '50%',
|
|
26501
26566
|
position: 'absolute',
|
|
26502
26567
|
backgroundColor: src.switchCircleFill,
|
|
26503
|
-
|
|
26568
|
+
boxShadow: src.switchCircleShadow,
|
|
26504
26569
|
transition: "left ".concat(switch_transition, ", right ").concat(switch_transition)
|
|
26505
26570
|
},
|
|
26506
26571
|
content: {
|
|
@@ -27705,6 +27770,9 @@ var tabsStyle = {
|
|
|
27705
27770
|
alignItems: 'flex-start'
|
|
27706
27771
|
}
|
|
27707
27772
|
},
|
|
27773
|
+
'&:not([data-soui-shape="card"]) $prev, &:not([data-soui-shape="card"]) $next': {
|
|
27774
|
+
border: '1px solid transparent'
|
|
27775
|
+
},
|
|
27708
27776
|
'&[data-soui-shape="card"] $prev, &[data-soui-shape="card"] $next': {
|
|
27709
27777
|
background: '#FFFFFF',
|
|
27710
27778
|
alignSelf: 'stretch',
|
|
@@ -27783,7 +27851,7 @@ var tabsStyle = {
|
|
|
27783
27851
|
}
|
|
27784
27852
|
},
|
|
27785
27853
|
'& svg': {
|
|
27786
|
-
width:
|
|
27854
|
+
width: src.tabsArrowFontSize
|
|
27787
27855
|
}
|
|
27788
27856
|
}
|
|
27789
27857
|
}, getCardStyle()), getLineStyle()), getDashStyle()), getFillStyle()), getButtonStyle()), getHeaderStyle()),
|
|
@@ -28001,7 +28069,7 @@ var tabsStyle = {
|
|
|
28001
28069
|
position: 'relative',
|
|
28002
28070
|
color: src.tabsArrowFontColor,
|
|
28003
28071
|
'& svg': {
|
|
28004
|
-
width:
|
|
28072
|
+
width: src.tabsArrowFontSize,
|
|
28005
28073
|
textAlign: 'center',
|
|
28006
28074
|
transform: 'rotate(-90deg)',
|
|
28007
28075
|
transition: 'transform .2s'
|
|
@@ -28044,6 +28112,7 @@ var useTabsStyle = styled(tabs_tabs, 'tabs');
|
|
|
28044
28112
|
|
|
28045
28113
|
|
|
28046
28114
|
|
|
28115
|
+
var tagDefaultLineHeight = "calc(".concat(src.tagDefaultLineBase, " + 6px)");
|
|
28047
28116
|
var brightTag = function brightTag(name, type) {
|
|
28048
28117
|
return {
|
|
28049
28118
|
color: src["tag".concat(type, "FontColor")],
|
|
@@ -28185,7 +28254,7 @@ var TagStyle = {
|
|
|
28185
28254
|
wrapper: {
|
|
28186
28255
|
flex: 1,
|
|
28187
28256
|
minWidth: 0,
|
|
28188
|
-
lineHeight:
|
|
28257
|
+
lineHeight: tagDefaultLineHeight
|
|
28189
28258
|
},
|
|
28190
28259
|
inline: {
|
|
28191
28260
|
display: 'inline-block',
|
|
@@ -28246,7 +28315,7 @@ var TagStyle = {
|
|
|
28246
28315
|
alignItems: 'center',
|
|
28247
28316
|
display: 'inline-flex',
|
|
28248
28317
|
cursor: 'pointer',
|
|
28249
|
-
height:
|
|
28318
|
+
height: tagDefaultLineHeight,
|
|
28250
28319
|
maxHeight: '100%'
|
|
28251
28320
|
},
|
|
28252
28321
|
closeIconWrapper: {
|
|
@@ -29071,9 +29140,9 @@ var treeStyle = {
|
|
|
29071
29140
|
background: src.treeItemActiveBackgroundColor
|
|
29072
29141
|
},
|
|
29073
29142
|
'& svg': {
|
|
29074
|
-
width:
|
|
29143
|
+
width: src.treeIconSize,
|
|
29075
29144
|
'$sizeLarge &': {
|
|
29076
|
-
width:
|
|
29145
|
+
width: "calc(".concat(src.treeIconSize, " + 2px)")
|
|
29077
29146
|
}
|
|
29078
29147
|
}
|
|
29079
29148
|
},
|
|
@@ -31141,9 +31210,28 @@ function cssSupport(attr, value) {
|
|
|
31141
31210
|
}
|
|
31142
31211
|
return false;
|
|
31143
31212
|
}
|
|
31213
|
+
function getCssVarValue(varName) {
|
|
31214
|
+
if (is_isBrowser()) {
|
|
31215
|
+
var style = getComputedStyle(document.documentElement);
|
|
31216
|
+
return style.getPropertyValue(varName).trim();
|
|
31217
|
+
}
|
|
31218
|
+
return '';
|
|
31219
|
+
}
|
|
31144
31220
|
var parsePxToNumber = function parsePxToNumber(str) {
|
|
31145
31221
|
return Number(str.replace(/\s+|px/gi, ''));
|
|
31146
31222
|
};
|
|
31223
|
+
var _baseFontSizeDiff = 0;
|
|
31224
|
+
var BASE_FONT_SIZE = 14;
|
|
31225
|
+
function getBaseFontSizeDiff() {
|
|
31226
|
+
if (_baseFontSizeDiff) return _baseFontSizeDiff;
|
|
31227
|
+
var currentBaseFontSizeStr = getCssVarValue('--soui-font-14');
|
|
31228
|
+
if (currentBaseFontSizeStr) {
|
|
31229
|
+
var currentBaseFontSize = parsePxToNumber(currentBaseFontSizeStr);
|
|
31230
|
+
_baseFontSizeDiff = BASE_FONT_SIZE - currentBaseFontSize;
|
|
31231
|
+
return _baseFontSizeDiff;
|
|
31232
|
+
}
|
|
31233
|
+
return 0;
|
|
31234
|
+
}
|
|
31147
31235
|
var getFieldId = function getFieldId(name, formName) {
|
|
31148
31236
|
if (!name) return undefined;
|
|
31149
31237
|
return "".concat(formName ? "".concat(formName, "_") : '').concat(name);
|
|
@@ -40929,13 +41017,32 @@ var useTree = function useTree(props) {
|
|
|
40929
41017
|
}
|
|
40930
41018
|
});
|
|
40931
41019
|
};
|
|
41020
|
+
var getChildrenFromTiledData = function getChildrenFromTiledData(id) {
|
|
41021
|
+
if (!props.tiledData) return undefined;
|
|
41022
|
+
var findById = function findById(data, targetId) {
|
|
41023
|
+
for (var i = 0; i < data.length; i++) {
|
|
41024
|
+
var current = data[i];
|
|
41025
|
+
var currentId = getKey(current, '', i);
|
|
41026
|
+
if (currentId === targetId) return current;
|
|
41027
|
+
if (current[childrenKey]) {
|
|
41028
|
+
var found = findById(current[childrenKey], targetId);
|
|
41029
|
+
if (found) return found;
|
|
41030
|
+
}
|
|
41031
|
+
}
|
|
41032
|
+
return undefined;
|
|
41033
|
+
};
|
|
41034
|
+
var item = findById(props.tiledData, id);
|
|
41035
|
+
return item === null || item === void 0 ? void 0 : item[childrenKey];
|
|
41036
|
+
};
|
|
40932
41037
|
var insertFlat = function insertFlat(id) {
|
|
40933
41038
|
var item = getDataById(id);
|
|
40934
41039
|
if (isUnMatchedData(item)) return;
|
|
40935
41040
|
if (!item) return;
|
|
40936
41041
|
var status = context.dataFlatStatusMap.get(id);
|
|
40937
41042
|
if (!status) return;
|
|
40938
|
-
|
|
41043
|
+
|
|
41044
|
+
// 优先从 tiledData 中获取子节点数据,如果不存在则使用原始数据
|
|
41045
|
+
var childrenData = props.tiledData ? getChildrenFromTiledData(id) || [] : item[childrenKey];
|
|
40939
41046
|
var insertStartNode = dataFlat.find(function (item) {
|
|
40940
41047
|
return item.id === id;
|
|
40941
41048
|
});
|
|
@@ -41053,6 +41160,7 @@ var useTree = function useTree(props) {
|
|
|
41053
41160
|
if (!props.tiledData) return;
|
|
41054
41161
|
var tiledFlatData = initFlatData(props.tiledData, [], 1);
|
|
41055
41162
|
setDataFlat(tiledFlatData);
|
|
41163
|
+
// context.dataFlatStatusMap = new Map();
|
|
41056
41164
|
}, [props.tiledData]);
|
|
41057
41165
|
var datum = use_latest_obj({
|
|
41058
41166
|
get: get,
|
|
@@ -41836,14 +41944,16 @@ var CascaderList = function CascaderList(props) {
|
|
|
41836
41944
|
getCurrentIndex: undefined,
|
|
41837
41945
|
getHoverIndex: undefined
|
|
41838
41946
|
});
|
|
41839
|
-
var
|
|
41947
|
+
var lineHeight = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
41840
41948
|
// if (lineHeightProp && lineHeightProp !== 'auto') return lineHeightProp;
|
|
41841
|
-
|
|
41842
|
-
|
|
41843
|
-
|
|
41844
|
-
|
|
41845
|
-
|
|
41846
|
-
|
|
41949
|
+
var diff = getBaseFontSizeDiff();
|
|
41950
|
+
var sizeMap = {
|
|
41951
|
+
small: 26,
|
|
41952
|
+
default: 34,
|
|
41953
|
+
large: 42
|
|
41954
|
+
};
|
|
41955
|
+
return (sizeMap[size] || 34) - diff;
|
|
41956
|
+
}, [size]);
|
|
41847
41957
|
var getHeight = function getHeight() {
|
|
41848
41958
|
if (props.height) return props.height;
|
|
41849
41959
|
return lineHeight * 7;
|
|
@@ -42036,14 +42146,16 @@ var FilterList = function FilterList(props) {
|
|
|
42036
42146
|
getCurrentIndex: undefined,
|
|
42037
42147
|
getHoverIndex: undefined
|
|
42038
42148
|
});
|
|
42039
|
-
var
|
|
42149
|
+
var lineHeight = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
42040
42150
|
// if (lineHeightProp && lineHeightProp !== 'auto') return lineHeightProp;
|
|
42041
|
-
|
|
42042
|
-
|
|
42043
|
-
|
|
42044
|
-
|
|
42045
|
-
|
|
42046
|
-
|
|
42151
|
+
var diff = getBaseFontSizeDiff();
|
|
42152
|
+
var sizeMap = {
|
|
42153
|
+
small: 26,
|
|
42154
|
+
default: 34,
|
|
42155
|
+
large: 42
|
|
42156
|
+
};
|
|
42157
|
+
return (sizeMap[size] || 34) - diff;
|
|
42158
|
+
}, [size]);
|
|
42047
42159
|
var getKey = function getKey(path) {
|
|
42048
42160
|
return path.map(function (d) {
|
|
42049
42161
|
return datum.getKey(d);
|
|
@@ -52067,6 +52179,7 @@ function use_previous_usePrevious(value) {
|
|
|
52067
52179
|
|
|
52068
52180
|
|
|
52069
52181
|
|
|
52182
|
+
|
|
52070
52183
|
var form_schema_builder_excluded = ["required"],
|
|
52071
52184
|
form_schema_builder_excluded2 = ["required"];
|
|
52072
52185
|
var SchemaBuilder = /*#__PURE__*/function () {
|
|
@@ -52108,7 +52221,6 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
52108
52221
|
}, {
|
|
52109
52222
|
key: "buildSchemaFromComponent",
|
|
52110
52223
|
value: function buildSchemaFromComponent(params) {
|
|
52111
|
-
var _componentElement$pro;
|
|
52112
52224
|
var componentElement = params.componentElement,
|
|
52113
52225
|
rules = params.rules,
|
|
52114
52226
|
label = params.label,
|
|
@@ -52207,65 +52319,69 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
52207
52319
|
if (componentElement.props.data.length > 0) {
|
|
52208
52320
|
fieldSchemaInfo.description += "enumData: ".concat(JSON.stringify(componentElement.props.data), ";");
|
|
52209
52321
|
}
|
|
52322
|
+
fieldSchemaInfo.props = objectSpread2_default()({}, componentElement.props);
|
|
52210
52323
|
break;
|
|
52211
52324
|
}
|
|
52212
52325
|
case 'ShineoutDatePicker':
|
|
52213
|
-
|
|
52214
|
-
|
|
52326
|
+
{
|
|
52327
|
+
var _componentElement$pro;
|
|
52328
|
+
if (componentElement.props.range) {
|
|
52329
|
+
if (finalFieldId !== null && finalFieldId !== void 0 && finalFieldId.includes(separator || '')) {
|
|
52330
|
+
fieldSchemaInfo.type = 'string';
|
|
52331
|
+
fieldSchemaInfo.format = 'date';
|
|
52332
|
+
} else {
|
|
52333
|
+
fieldSchemaInfo.type = 'array';
|
|
52334
|
+
fieldSchemaInfo.items = {
|
|
52335
|
+
type: 'string',
|
|
52336
|
+
format: 'date'
|
|
52337
|
+
};
|
|
52338
|
+
}
|
|
52339
|
+
} else {
|
|
52215
52340
|
fieldSchemaInfo.type = 'string';
|
|
52216
52341
|
fieldSchemaInfo.format = 'date';
|
|
52217
|
-
} else {
|
|
52218
|
-
fieldSchemaInfo.type = 'array';
|
|
52219
|
-
fieldSchemaInfo.items = {
|
|
52220
|
-
type: 'string',
|
|
52221
|
-
format: 'date'
|
|
52222
|
-
};
|
|
52223
52342
|
}
|
|
52224
|
-
|
|
52225
|
-
|
|
52226
|
-
|
|
52227
|
-
}
|
|
52228
|
-
var defaultTime = ((_componentElement$pro = componentElement.props.defaultTime) === null || _componentElement$pro === void 0 ? void 0 : _componentElement$pro.toString()) || '';
|
|
52229
|
-
if (defaultTime) {
|
|
52230
|
-
fieldSchemaInfo.description += "\u9ED8\u8BA4\u65F6\u95F4\uFF1A".concat(defaultTime, " ");
|
|
52231
|
-
}
|
|
52232
|
-
var dateformat = componentElement.props.format || '';
|
|
52233
|
-
if (!dateformat) {
|
|
52234
|
-
switch (componentElement.props.type) {
|
|
52235
|
-
case 'date':
|
|
52236
|
-
dateformat = 'YYYY-MM-DD';
|
|
52237
|
-
break;
|
|
52238
|
-
case 'time':
|
|
52239
|
-
dateformat = 'HH:mm:ss';
|
|
52240
|
-
break;
|
|
52241
|
-
case 'datetime':
|
|
52242
|
-
dateformat = 'YYYY-MM-DD HH:mm:ss';
|
|
52243
|
-
break;
|
|
52244
|
-
case 'week':
|
|
52245
|
-
dateformat = 'GGGG WW';
|
|
52246
|
-
break;
|
|
52247
|
-
case 'month':
|
|
52248
|
-
dateformat = 'YYYY-MM';
|
|
52249
|
-
break;
|
|
52250
|
-
case 'quarter':
|
|
52251
|
-
dateformat = 'YYYY-\[Q]Q';
|
|
52252
|
-
break;
|
|
52253
|
-
case 'year':
|
|
52254
|
-
dateformat = 'YYYY';
|
|
52255
|
-
break;
|
|
52256
|
-
default:
|
|
52257
|
-
dateformat = 'YYYY-MM-DD';
|
|
52258
|
-
break;
|
|
52343
|
+
var defaultTime = ((_componentElement$pro = componentElement.props.defaultTime) === null || _componentElement$pro === void 0 ? void 0 : _componentElement$pro.toString()) || '';
|
|
52344
|
+
if (defaultTime) {
|
|
52345
|
+
fieldSchemaInfo.description += "\u9ED8\u8BA4\u65F6\u95F4\uFF1A".concat(defaultTime, " ");
|
|
52259
52346
|
}
|
|
52347
|
+
var dateformat = componentElement.props.format || '';
|
|
52348
|
+
if (!dateformat) {
|
|
52349
|
+
switch (componentElement.props.type) {
|
|
52350
|
+
case 'date':
|
|
52351
|
+
dateformat = 'YYYY-MM-DD';
|
|
52352
|
+
break;
|
|
52353
|
+
case 'time':
|
|
52354
|
+
dateformat = 'HH:mm:ss';
|
|
52355
|
+
break;
|
|
52356
|
+
case 'datetime':
|
|
52357
|
+
dateformat = 'YYYY-MM-DD HH:mm:ss';
|
|
52358
|
+
break;
|
|
52359
|
+
case 'week':
|
|
52360
|
+
dateformat = 'GGGG WW';
|
|
52361
|
+
break;
|
|
52362
|
+
case 'month':
|
|
52363
|
+
dateformat = 'YYYY-MM';
|
|
52364
|
+
break;
|
|
52365
|
+
case 'quarter':
|
|
52366
|
+
dateformat = 'YYYY-[Q]Q';
|
|
52367
|
+
break;
|
|
52368
|
+
case 'year':
|
|
52369
|
+
dateformat = 'YYYY';
|
|
52370
|
+
break;
|
|
52371
|
+
default:
|
|
52372
|
+
dateformat = 'YYYY-MM-DD';
|
|
52373
|
+
break;
|
|
52374
|
+
}
|
|
52375
|
+
}
|
|
52376
|
+
fieldSchemaInfo.description += "\u683C\u5F0F\uFF1A".concat(dateformat, " ");
|
|
52377
|
+
if (componentElement.props.max) {
|
|
52378
|
+
fieldSchemaInfo.description += "\u6700\u5927\u65F6\u95F4\uFF1A".concat(componentElement.props.max, " ");
|
|
52379
|
+
}
|
|
52380
|
+
if (componentElement.props.min) {
|
|
52381
|
+
fieldSchemaInfo.description += "\u6700\u5C0F\u65F6\u95F4\uFF1A".concat(componentElement.props.min, " ");
|
|
52382
|
+
}
|
|
52383
|
+
break;
|
|
52260
52384
|
}
|
|
52261
|
-
fieldSchemaInfo.description += "\u683C\u5F0F\uFF1A".concat(dateformat, " ");
|
|
52262
|
-
if (componentElement.props.max) {
|
|
52263
|
-
fieldSchemaInfo.description += "\u6700\u5927\u65F6\u95F4\uFF1A".concat(componentElement.props.max, " ");
|
|
52264
|
-
}
|
|
52265
|
-
if (componentElement.props.min) {
|
|
52266
|
-
fieldSchemaInfo.description += "\u6700\u5C0F\u65F6\u95F4\uFF1A".concat(componentElement.props.min, " ");
|
|
52267
|
-
}
|
|
52268
|
-
break;
|
|
52269
52385
|
case 'ShineoutCheckbox':
|
|
52270
52386
|
case 'ShineoutCheckboxGroup':
|
|
52271
52387
|
{
|
|
@@ -52431,7 +52547,7 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
52431
52547
|
}
|
|
52432
52548
|
|
|
52433
52549
|
// 过滤掉 required 属性,items 对象不应该包含 required
|
|
52434
|
-
var
|
|
52550
|
+
var _required = meta.required,
|
|
52435
52551
|
itemsMeta = objectWithoutProperties_default()(meta, form_schema_builder_excluded);
|
|
52436
52552
|
this.mergeSchema(currentSchema.items, remainingSegments, itemsMeta);
|
|
52437
52553
|
}
|
|
@@ -56357,14 +56473,16 @@ var list_List = function List(props) {
|
|
|
56357
56473
|
var getHoverIndex = usePersistFn(function () {
|
|
56358
56474
|
return hoverIndex;
|
|
56359
56475
|
});
|
|
56360
|
-
var
|
|
56476
|
+
var lineHeight = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
56361
56477
|
if (lineHeightProp && lineHeightProp !== 'auto') return lineHeightProp;
|
|
56362
|
-
|
|
56363
|
-
|
|
56364
|
-
|
|
56365
|
-
|
|
56366
|
-
|
|
56367
|
-
|
|
56478
|
+
var diff = getBaseFontSizeDiff();
|
|
56479
|
+
var sizeMap = {
|
|
56480
|
+
small: 26,
|
|
56481
|
+
default: 34,
|
|
56482
|
+
large: 42
|
|
56483
|
+
};
|
|
56484
|
+
return (sizeMap[size] || 34) - diff;
|
|
56485
|
+
}, [lineHeightProp, size]);
|
|
56368
56486
|
var getHeight = function getHeight() {
|
|
56369
56487
|
if (props.height) return props.height;
|
|
56370
56488
|
return lineHeight * 7;
|
|
@@ -57792,7 +57910,8 @@ var Tree = function Tree(props) {
|
|
|
57792
57910
|
keygen: keygen,
|
|
57793
57911
|
virtual: virtual,
|
|
57794
57912
|
onExpand: onExpandProp,
|
|
57795
|
-
datum: propsDatum
|
|
57913
|
+
datum: propsDatum,
|
|
57914
|
+
tiledData: props.filteredData
|
|
57796
57915
|
}),
|
|
57797
57916
|
datum = _useTree.datum,
|
|
57798
57917
|
expanded = _useTree.expanded,
|
|
@@ -57920,7 +58039,7 @@ var Tree = function Tree(props) {
|
|
|
57920
58039
|
rootStyle: rootStyle,
|
|
57921
58040
|
isControlled: 'expanded' in props,
|
|
57922
58041
|
jssStyle: jssStyle,
|
|
57923
|
-
data: data,
|
|
58042
|
+
data: props.filteredData || data,
|
|
57924
58043
|
mode: mode,
|
|
57925
58044
|
line: line,
|
|
57926
58045
|
keygen: keygen,
|
|
@@ -61651,10 +61770,9 @@ var confirm_Confirm = function Confirm(props) {
|
|
|
61651
61770
|
jssStyle: jssStyle,
|
|
61652
61771
|
type: type,
|
|
61653
61772
|
title: title,
|
|
61654
|
-
|
|
61655
|
-
fontSize: 14
|
|
61656
|
-
},
|
|
61773
|
+
titleClassName: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.mentionTitle,
|
|
61657
61774
|
icon: icon,
|
|
61775
|
+
iconClassName: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.mentionIcon,
|
|
61658
61776
|
children: _children
|
|
61659
61777
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
61660
61778
|
className: popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.footer,
|
|
@@ -64355,6 +64473,10 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
64355
64473
|
});
|
|
64356
64474
|
};
|
|
64357
64475
|
/* harmony default export */ var scroll_table = (scroll_table_Scroll);
|
|
64476
|
+
;// CONCATENATED MODULE: ../hooks/src/components/use-table/table-nested-context.tsx
|
|
64477
|
+
|
|
64478
|
+
var TableContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)({});
|
|
64479
|
+
/* harmony default export */ var table_nested_context = (TableContext);
|
|
64358
64480
|
;// CONCATENATED MODULE: ../hooks/src/common/use-scrollbar-width/index.ts
|
|
64359
64481
|
|
|
64360
64482
|
|
|
@@ -64567,6 +64689,7 @@ var useColumns = function useColumns(props) {
|
|
|
64567
64689
|
columnInfo: {
|
|
64568
64690
|
handleScroll: handleScroll
|
|
64569
64691
|
},
|
|
64692
|
+
currentColIndex: startIndex,
|
|
64570
64693
|
expandHideCol: context.expandHideCol
|
|
64571
64694
|
};
|
|
64572
64695
|
};
|
|
@@ -66680,7 +66803,6 @@ function useComponentMemo(getValue, condition, shouldUpdate) {
|
|
|
66680
66803
|
;// CONCATENATED MODULE: ../base/src/table/td.tsx
|
|
66681
66804
|
|
|
66682
66805
|
|
|
66683
|
-
|
|
66684
66806
|
function Td(props) {
|
|
66685
66807
|
var col = props.col,
|
|
66686
66808
|
colSpan = props.colSpan,
|
|
@@ -66688,12 +66810,11 @@ function Td(props) {
|
|
|
66688
66810
|
className = props.className,
|
|
66689
66811
|
direction = props.direction,
|
|
66690
66812
|
role = props.role,
|
|
66691
|
-
data = props.data,
|
|
66692
66813
|
onClick = props.onClick,
|
|
66693
66814
|
onMouseEnter = props.onMouseEnter,
|
|
66694
66815
|
onMouseLeave = props.onMouseLeave,
|
|
66695
66816
|
renderContent = props.renderContent;
|
|
66696
|
-
|
|
66817
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
|
|
66697
66818
|
colSpan: colSpan,
|
|
66698
66819
|
rowSpan: rowSpan,
|
|
66699
66820
|
onMouseEnter: onMouseEnter,
|
|
@@ -66705,20 +66826,6 @@ function Td(props) {
|
|
|
66705
66826
|
onClick: onClick,
|
|
66706
66827
|
children: renderContent(props.col, props.data)
|
|
66707
66828
|
}, col.key);
|
|
66708
|
-
if (props.virtual === 'lazy') {
|
|
66709
|
-
var _props$style, _props$style2;
|
|
66710
|
-
return useComponentMemo(function () {
|
|
66711
|
-
return $td;
|
|
66712
|
-
}, [data, className, (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.left, (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.right, col.type, col.treeColumnsName], function (prev, next) {
|
|
66713
|
-
if (col.type || col.treeColumnsName) {
|
|
66714
|
-
return true;
|
|
66715
|
-
}
|
|
66716
|
-
return prev.some(function (_, index) {
|
|
66717
|
-
return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
|
|
66718
|
-
}) || !props.scrolling;
|
|
66719
|
-
});
|
|
66720
|
-
}
|
|
66721
|
-
return $td;
|
|
66722
66829
|
}
|
|
66723
66830
|
;// CONCATENATED MODULE: ../base/src/table/tr.tsx
|
|
66724
66831
|
|
|
@@ -67027,6 +67134,7 @@ var Tr = function Tr(props) {
|
|
|
67027
67134
|
if (expandCol && typeof expandCol.render === 'function') {
|
|
67028
67135
|
var renderFunc = expandCol.render(props.rawData, props.rowIndex);
|
|
67029
67136
|
if (typeof renderFunc === 'function') {
|
|
67137
|
+
var _props$scrollRef;
|
|
67030
67138
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("tr", {
|
|
67031
67139
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowExpand,
|
|
67032
67140
|
ref: expandRef,
|
|
@@ -67037,7 +67145,12 @@ var Tr = function Tr(props) {
|
|
|
67037
67145
|
style: {
|
|
67038
67146
|
padding: 0
|
|
67039
67147
|
},
|
|
67040
|
-
children:
|
|
67148
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(table_nested_context.Provider, {
|
|
67149
|
+
value: {
|
|
67150
|
+
parentTableWidth: (_props$scrollRef = props.scrollRef) === null || _props$scrollRef === void 0 || (_props$scrollRef = _props$scrollRef.current) === null || _props$scrollRef === void 0 ? void 0 : _props$scrollRef.clientWidth
|
|
67151
|
+
},
|
|
67152
|
+
children: renderFunc()
|
|
67153
|
+
})
|
|
67041
67154
|
})
|
|
67042
67155
|
});
|
|
67043
67156
|
}
|
|
@@ -67114,8 +67227,9 @@ var Tr = function Tr(props) {
|
|
|
67114
67227
|
/* harmony default export */ var tbody = (function (props) {
|
|
67115
67228
|
var _props$columns = props.columns,
|
|
67116
67229
|
columns = _props$columns === void 0 ? [] : _props$columns,
|
|
67117
|
-
_props$
|
|
67118
|
-
|
|
67230
|
+
_props$currentRowInde = props.currentRowIndex,
|
|
67231
|
+
currentRowIndex = _props$currentRowInde === void 0 ? 0 : _props$currentRowInde,
|
|
67232
|
+
currentColIndex = props.currentColIndex,
|
|
67119
67233
|
_props$hover = props.hover,
|
|
67120
67234
|
hover = _props$hover === void 0 ? true : _props$hover;
|
|
67121
67235
|
var _useTableExpand = use_table_expand({
|
|
@@ -67128,7 +67242,7 @@ var Tr = function Tr(props) {
|
|
|
67128
67242
|
var _useTableRow = use_table_row({
|
|
67129
67243
|
columns: props.columns,
|
|
67130
67244
|
data: props.data,
|
|
67131
|
-
currentIndex:
|
|
67245
|
+
currentIndex: currentRowIndex,
|
|
67132
67246
|
hover: hover
|
|
67133
67247
|
}),
|
|
67134
67248
|
rowData = _useTableRow.rowData,
|
|
@@ -67140,7 +67254,7 @@ var Tr = function Tr(props) {
|
|
|
67140
67254
|
});
|
|
67141
67255
|
var renderRow = function renderRow(item, index) {
|
|
67142
67256
|
var _props$rowEvents;
|
|
67143
|
-
var rowIndex = index +
|
|
67257
|
+
var rowIndex = index + currentRowIndex;
|
|
67144
67258
|
var originKey = getKey(props.keygen, item, rowIndex);
|
|
67145
67259
|
var trRenderKey = props.loader || (_props$rowEvents = props.rowEvents) !== null && _props$rowEvents !== void 0 && _props$rowEvents.draggable ? originKey : "".concat(originKey, "-").concat(rowIndex);
|
|
67146
67260
|
|
|
@@ -67192,6 +67306,7 @@ var Tr = function Tr(props) {
|
|
|
67192
67306
|
rowEvents: props.rowEvents,
|
|
67193
67307
|
disabled: props.datum.disabledCheck(item),
|
|
67194
67308
|
bodyScrollWidth: props.bodyScrollWidth,
|
|
67309
|
+
scrollRef: props.scrollRef,
|
|
67195
67310
|
resizeFlag: props.resizeFlag,
|
|
67196
67311
|
treeCheckAll: props.treeCheckAll,
|
|
67197
67312
|
onCellClick: props.onCellClick,
|
|
@@ -67208,7 +67323,7 @@ var Tr = function Tr(props) {
|
|
|
67208
67323
|
if (props.virtual === 'lazy') {
|
|
67209
67324
|
return useComponentMemo(function () {
|
|
67210
67325
|
return $tbody;
|
|
67211
|
-
}, [props.data
|
|
67326
|
+
}, [currentRowIndex, currentColIndex, props.data], function (prev, next) {
|
|
67212
67327
|
return prev.some(function (_, index) {
|
|
67213
67328
|
return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
|
|
67214
67329
|
}) || !props.scrolling;
|
|
@@ -67368,6 +67483,7 @@ function Table(props) {
|
|
|
67368
67483
|
_props$pagination = props.pagination,
|
|
67369
67484
|
pagination = _props$pagination === void 0 ? {} : _props$pagination;
|
|
67370
67485
|
var config = useConfig();
|
|
67486
|
+
var nestedContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(table_nested_context);
|
|
67371
67487
|
var isRtl = config.direction === 'rtl';
|
|
67372
67488
|
var tableClasses = props === null || props === void 0 || (_props$jssStyle = props.jssStyle) === null || _props$jssStyle === void 0 || (_props$jssStyle$table = _props$jssStyle.table) === null || _props$jssStyle$table === void 0 ? void 0 : _props$jssStyle$table.call(_props$jssStyle);
|
|
67373
67489
|
var tbodyRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
@@ -67454,7 +67570,8 @@ function Table(props) {
|
|
|
67454
67570
|
}),
|
|
67455
67571
|
columns = _useTableColumns.columns,
|
|
67456
67572
|
expandHideCol = _useTableColumns.expandHideCol,
|
|
67457
|
-
columnInfo = _useTableColumns.columnInfo
|
|
67573
|
+
columnInfo = _useTableColumns.columnInfo,
|
|
67574
|
+
currentColIndex = _useTableColumns.currentColIndex;
|
|
67458
67575
|
var _useTableLayout = use_table_layout({
|
|
67459
67576
|
theadRef: theadRef,
|
|
67460
67577
|
tbodyRef: tbodyRef,
|
|
@@ -67728,7 +67845,8 @@ function Table(props) {
|
|
|
67728
67845
|
resizeFlag: resizeFlag,
|
|
67729
67846
|
treeCheckAll: props.treeCheckAll,
|
|
67730
67847
|
onCellClick: props.onCellClick,
|
|
67731
|
-
strictRowHeight: props.strictRowHeight
|
|
67848
|
+
strictRowHeight: props.strictRowHeight,
|
|
67849
|
+
scrollRef: scrollRef
|
|
67732
67850
|
};
|
|
67733
67851
|
var headCommonProps = {
|
|
67734
67852
|
disabled: props.disabled,
|
|
@@ -67899,7 +68017,8 @@ function Table(props) {
|
|
|
67899
68017
|
}),
|
|
67900
68018
|
ref: tbodyRef,
|
|
67901
68019
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
|
|
67902
|
-
|
|
68020
|
+
currentRowIndex: virtualInfo.startIndex,
|
|
68021
|
+
currentColIndex: currentColIndex,
|
|
67903
68022
|
data: virtualInfo.data,
|
|
67904
68023
|
setRowHeight: virtualInfo.setRowHeight,
|
|
67905
68024
|
scrolling: scrolling,
|
|
@@ -68010,6 +68129,19 @@ function Table(props) {
|
|
|
68010
68129
|
scrollElRef: scrollRef
|
|
68011
68130
|
};
|
|
68012
68131
|
}, [scrollRef]);
|
|
68132
|
+
var tableWrapperStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
68133
|
+
if (nestedContext.parentTableWidth && props.width) {
|
|
68134
|
+
return objectSpread2_default()({
|
|
68135
|
+
width: nestedContext.parentTableWidth,
|
|
68136
|
+
position: 'sticky',
|
|
68137
|
+
left: 0,
|
|
68138
|
+
height: defaultHeight
|
|
68139
|
+
}, props.style);
|
|
68140
|
+
}
|
|
68141
|
+
return objectSpread2_default()({
|
|
68142
|
+
height: defaultHeight
|
|
68143
|
+
}, props.style);
|
|
68144
|
+
}, [nestedContext.parentTableWidth, defaultHeight, props.style, props.width]);
|
|
68013
68145
|
var tableWrapperClass = classnames_default()(props.className, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rootClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.wrapper, props.bordered && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bordered), verticalAlign === 'top' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignTop), verticalAlign === 'middle' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignMiddle), size === 'small' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.small), size === 'large' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.large), size === 'default' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.default));
|
|
68014
68146
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
68015
68147
|
className: classnames_default()(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
@@ -68025,9 +68157,7 @@ function Table(props) {
|
|
|
68025
68157
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
68026
68158
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
68027
68159
|
className: classnames_default()(tableWrapperClass, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, tableClasses.sticky, props.sticky), tableClasses.floatLeft, floatLeft), tableClasses.floatRight, floatRight)),
|
|
68028
|
-
style:
|
|
68029
|
-
height: defaultHeight
|
|
68030
|
-
}, props.style)
|
|
68160
|
+
style: tableWrapperStyle
|
|
68031
68161
|
}, selection.getTableProps()), {}, {
|
|
68032
68162
|
ref: tableRef,
|
|
68033
68163
|
dir: config.direction,
|
|
@@ -74560,7 +74690,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
74560
74690
|
|
|
74561
74691
|
|
|
74562
74692
|
/* harmony default export */ var src_0 = ({
|
|
74563
|
-
version: '3.9.
|
|
74693
|
+
version: '3.9.3-beta.10'
|
|
74564
74694
|
});
|
|
74565
74695
|
}();
|
|
74566
74696
|
/******/ return __webpack_exports__;
|