shineout 3.0.0-alpha.11 → 3.0.0-alpha.12
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/cjs/tag/tag.type.d.ts +2 -2
- package/dist/shineout.js +140 -73
- 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/esm/tag/tag.type.d.ts +2 -2
- package/package.json +4 -4
package/cjs/index.js
CHANGED
|
@@ -433,6 +433,6 @@ exports.TYPE = _TYPE;
|
|
|
433
433
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
434
434
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
435
435
|
var _default = {
|
|
436
|
-
version: '3.0.0-alpha.
|
|
436
|
+
version: '3.0.0-alpha.12'
|
|
437
437
|
};
|
|
438
438
|
exports.default = _default;
|
package/cjs/tag/tag.type.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { TagProps as UnStyledTagProps, TagInputProps as UnStyledTagInputProps }
|
|
|
2
2
|
/**
|
|
3
3
|
* @title Tag
|
|
4
4
|
*/
|
|
5
|
-
export declare type TagProps = Omit<UnStyledTagProps, 'jssStyle'>;
|
|
5
|
+
export declare type TagProps = Omit<UnStyledTagProps, 'jssStyle' | 'inlineStyle'>;
|
|
6
6
|
/**
|
|
7
7
|
* @title Tag.Input
|
|
8
8
|
*/
|
|
9
|
-
export declare type TagInputProps = Omit<UnStyledTagInputProps, 'jssStyle'>;
|
|
9
|
+
export declare type TagInputProps = Omit<UnStyledTagInputProps, 'jssStyle' | 'inlineStyle'>;
|
package/dist/shineout.js
CHANGED
|
@@ -3762,6 +3762,9 @@ var cascaderTokens = {
|
|
|
3762
3762
|
cascaderResultTextSmallPaddingX: 'Padding-4',
|
|
3763
3763
|
cascaderResultTextLargePaddingX: 'Padding-10',
|
|
3764
3764
|
cascaderResultTextActiveBackgroundColor: 'Brand-1',
|
|
3765
|
+
cascaderResultItemHoverColor: 'Brand-5',
|
|
3766
|
+
cascaderResultItemActiveColor: 'Brand-7',
|
|
3767
|
+
cascaderResultItemCheckedColor: 'Brand-6',
|
|
3765
3768
|
cascaderErrorBorderColor: 'Danger-6',
|
|
3766
3769
|
cascaderErrorFocusShadow: 'Danger-1',
|
|
3767
3770
|
cascaderPanelColor: 'Neutral-text-5',
|
|
@@ -5457,6 +5460,7 @@ var selectTokens = {
|
|
|
5457
5460
|
selectGroupTitleLargeBottom: 'Padding-4',
|
|
5458
5461
|
selectColumnPadding: 'Padding-8',
|
|
5459
5462
|
selectColumnOptionMargin: 'Margin-8',
|
|
5463
|
+
selectColumnBorderRadius: 'Radius-4',
|
|
5460
5464
|
selectColumnBackgroundColor: 'Neutral-fill-2'
|
|
5461
5465
|
};
|
|
5462
5466
|
var _default = selectTokens;
|
|
@@ -19049,7 +19053,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
19049
19053
|
};
|
|
19050
19054
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
19051
19055
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
19052
|
-
/* harmony default export */ var version = ('3.0.0-alpha.
|
|
19056
|
+
/* harmony default export */ var version = ('3.0.0-alpha.12');
|
|
19053
19057
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
19054
19058
|
|
|
19055
19059
|
|
|
@@ -24599,7 +24603,7 @@ var checkboxStyle = {
|
|
|
24599
24603
|
background: 'transparent',
|
|
24600
24604
|
borderRadius: '50%'
|
|
24601
24605
|
},
|
|
24602
|
-
'$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled):hover
|
|
24606
|
+
'$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled):hover &:not($darkIndicatorWrapper)': {
|
|
24603
24607
|
'&::before': {
|
|
24604
24608
|
background: esm/* default.checkboxIconCircleFill */.ZP.checkboxIconCircleFill
|
|
24605
24609
|
},
|
|
@@ -24610,7 +24614,7 @@ var checkboxStyle = {
|
|
|
24610
24614
|
}
|
|
24611
24615
|
},
|
|
24612
24616
|
darkIndicatorWrapper: {
|
|
24613
|
-
'$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled)
|
|
24617
|
+
'$wrapper:not($wrapperChecked):not($wrapperIndeterminate):not($wrapperDisabled) &:hover': {
|
|
24614
24618
|
'&::before': {
|
|
24615
24619
|
background: esm/* default.checkboxIconCircleDark */.ZP.checkboxIconCircleDark
|
|
24616
24620
|
}
|
|
@@ -25164,7 +25168,7 @@ var useCheckboxInputable = function useCheckboxInputable(props) {
|
|
|
25164
25168
|
|
|
25165
25169
|
|
|
25166
25170
|
|
|
25167
|
-
var use_input_excluded = ["inputRef", "rootRef", "value", "onChange", "onFocus", "onBlur", "clearable", "disabled", "autoSelect", "onClear", "onClick", "showClear"];
|
|
25171
|
+
var use_input_excluded = ["inputRef", "rootRef", "value", "onChange", "onFocus", "onBlur", "clearable", "disabled", "autoSelect", "onClear", "onClick", "showClear", "onFocusedChange"];
|
|
25168
25172
|
|
|
25169
25173
|
|
|
25170
25174
|
|
|
@@ -25192,12 +25196,17 @@ var useInput = function useInput(params) {
|
|
|
25192
25196
|
onClear = params.onClear,
|
|
25193
25197
|
onClick = params.onClick,
|
|
25194
25198
|
showClear = params.showClear,
|
|
25199
|
+
onFocusedChange = params.onFocusedChange,
|
|
25195
25200
|
propsToForward = objectWithoutProperties_default()(params, use_input_excluded);
|
|
25196
25201
|
var inputRef = external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef(null);
|
|
25197
25202
|
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_.useState(false),
|
|
25198
25203
|
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
25199
25204
|
focused = _React$useState2[0],
|
|
25200
|
-
|
|
25205
|
+
changeFocued = _React$useState2[1];
|
|
25206
|
+
var setFocused = function setFocused(focus) {
|
|
25207
|
+
changeFocued(focus);
|
|
25208
|
+
onFocusedChange === null || onFocusedChange === void 0 ? void 0 : onFocusedChange(focus);
|
|
25209
|
+
};
|
|
25201
25210
|
var handleClick = function handleClick(otherHandlers) {
|
|
25202
25211
|
return function (event) {
|
|
25203
25212
|
var _otherHandlers$onClic;
|
|
@@ -25271,6 +25280,7 @@ var useInput = function useInput(params) {
|
|
|
25271
25280
|
event.preventDefault();
|
|
25272
25281
|
if (!focused) {
|
|
25273
25282
|
var _inputRef$current;
|
|
25283
|
+
setFocused(true);
|
|
25274
25284
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
25275
25285
|
}
|
|
25276
25286
|
if (onClear) {
|
|
@@ -25326,7 +25336,7 @@ var useKeyEvent = function useKeyEvent(params) {
|
|
|
25326
25336
|
;// CONCATENATED MODULE: ../base/src/input/simple-input.tsx
|
|
25327
25337
|
|
|
25328
25338
|
|
|
25329
|
-
var simple_input_excluded = ["jssStyle", "className", "style", "status", "clearIcon", "size", "prefix", "suffix", "underline", "border", "onEnterPress", "
|
|
25339
|
+
var simple_input_excluded = ["jssStyle", "className", "style", "status", "clearIcon", "size", "prefix", "suffix", "underline", "border", "onEnterPress", "onFocusedChange", "renderInput", "addEnd", "hasSuffix"];
|
|
25330
25340
|
|
|
25331
25341
|
|
|
25332
25342
|
|
|
@@ -25347,13 +25357,15 @@ var Input = function Input(props) {
|
|
|
25347
25357
|
_props$border = props.border,
|
|
25348
25358
|
border = _props$border === void 0 ? true : _props$border,
|
|
25349
25359
|
_onEnterPress = props.onEnterPress,
|
|
25350
|
-
|
|
25360
|
+
onFocusedChange = props.onFocusedChange,
|
|
25351
25361
|
renderInput = props.renderInput,
|
|
25352
25362
|
addEnd = props.addEnd,
|
|
25353
25363
|
hasSuffix = props.hasSuffix,
|
|
25354
25364
|
rest = objectWithoutProperties_default()(props, simple_input_excluded);
|
|
25355
25365
|
var inputStyle = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$input = jssStyle.input) === null || _jssStyle$input === void 0 ? void 0 : _jssStyle$input.call(jssStyle);
|
|
25356
|
-
var _useInput = use_input(objectSpread2_default()({}, rest)
|
|
25366
|
+
var _useInput = use_input(objectSpread2_default()(objectSpread2_default()({}, rest), {}, {
|
|
25367
|
+
onFocusedChange: onFocusedChange
|
|
25368
|
+
})),
|
|
25357
25369
|
getRootProps = _useInput.getRootProps,
|
|
25358
25370
|
getClearProps = _useInput.getClearProps,
|
|
25359
25371
|
getInputProps = _useInput.getInputProps,
|
|
@@ -25375,13 +25387,6 @@ var Input = function Input(props) {
|
|
|
25375
25387
|
className: classnames_default()(inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.input),
|
|
25376
25388
|
onKeyUp: onKeyUp
|
|
25377
25389
|
});
|
|
25378
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
25379
|
-
if (getStatus) {
|
|
25380
|
-
getStatus({
|
|
25381
|
-
focused: focused
|
|
25382
|
-
});
|
|
25383
|
-
}
|
|
25384
|
-
}, [focused]);
|
|
25385
25390
|
var inputEl = /*#__PURE__*/(0,jsx_runtime.jsx)("input", objectSpread2_default()({
|
|
25386
25391
|
type: "text"
|
|
25387
25392
|
}, inputProps));
|
|
@@ -25845,7 +25850,6 @@ function usePrevious(state) {
|
|
|
25845
25850
|
var useInnerTitle = function useInnerTitle(props) {
|
|
25846
25851
|
var _jssStyle$innerTitle;
|
|
25847
25852
|
var innerTitle = props.innerTitle,
|
|
25848
|
-
open = props.open,
|
|
25849
25853
|
placeTitle = props.placeTitle,
|
|
25850
25854
|
size = props.size,
|
|
25851
25855
|
jssStyle = props.jssStyle;
|
|
@@ -25853,11 +25857,12 @@ var useInnerTitle = function useInnerTitle(props) {
|
|
|
25853
25857
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
25854
25858
|
animation = _useState2[0],
|
|
25855
25859
|
setAnimation = _useState2[1];
|
|
25856
|
-
var
|
|
25860
|
+
var open = !!props.open;
|
|
25861
|
+
var prevOpen = usePrevious(!!open);
|
|
25857
25862
|
var innerTitleStyle = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$innerTitle = jssStyle.innerTitle) === null || _jssStyle$innerTitle === void 0 ? void 0 : _jssStyle$innerTitle.call(jssStyle);
|
|
25858
|
-
(
|
|
25859
|
-
|
|
25860
|
-
}
|
|
25863
|
+
if (props.innerTitle && !open !== !prevOpen && !animation) {
|
|
25864
|
+
setAnimation(true);
|
|
25865
|
+
}
|
|
25861
25866
|
var renderInput = usePersistFn(function (el) {
|
|
25862
25867
|
if (!innerTitle) return el;
|
|
25863
25868
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -26340,7 +26345,7 @@ var useWithFormConfig = function useWithFormConfig(props) {
|
|
|
26340
26345
|
|
|
26341
26346
|
|
|
26342
26347
|
|
|
26343
|
-
var use_input_common_excluded = ["forwardRef", "htmlName", "value", "onChange", "defaultValue", "beforeChange", "clearable", "clearToUndefined", "style", "suffix", "info", "
|
|
26348
|
+
var use_input_common_excluded = ["forwardRef", "htmlName", "value", "onChange", "defaultValue", "beforeChange", "clearable", "clearToUndefined", "style", "suffix", "info", "innerTitle", "placeTitle", "width", "delay", "onBlur", "tip", "error", "popover", "popoverProps", "status"];
|
|
26344
26349
|
|
|
26345
26350
|
|
|
26346
26351
|
|
|
@@ -26371,7 +26376,6 @@ var useInputCommon = function useInputCommon(props) {
|
|
|
26371
26376
|
style = props.style,
|
|
26372
26377
|
suffix = props.suffix,
|
|
26373
26378
|
info = props.info,
|
|
26374
|
-
getStatus = props.getStatus,
|
|
26375
26379
|
innerTitle = props.innerTitle,
|
|
26376
26380
|
placeTitle = props.placeTitle,
|
|
26377
26381
|
width = props.width,
|
|
@@ -26446,11 +26450,8 @@ var useInputCommon = function useInputCommon(props) {
|
|
|
26446
26450
|
var mergeSuffix = /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
26447
26451
|
children: [suffix, getInfo(), tipNode]
|
|
26448
26452
|
});
|
|
26449
|
-
var
|
|
26450
|
-
setFocused(!!
|
|
26451
|
-
if (getStatus) {
|
|
26452
|
-
getStatus(status);
|
|
26453
|
-
}
|
|
26453
|
+
var onFocusedChange = usePersistFn(function (focused) {
|
|
26454
|
+
setFocused(!!focused);
|
|
26454
26455
|
});
|
|
26455
26456
|
var mergeStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
26456
26457
|
return objectSpread2_default()({
|
|
@@ -26476,7 +26477,7 @@ var useInputCommon = function useInputCommon(props) {
|
|
|
26476
26477
|
rootRef: rootRef,
|
|
26477
26478
|
inputRef: forwardRef,
|
|
26478
26479
|
renderInput: renderInput,
|
|
26479
|
-
|
|
26480
|
+
onFocusedChange: onFocusedChange
|
|
26480
26481
|
});
|
|
26481
26482
|
};
|
|
26482
26483
|
/* harmony default export */ var use_input_common = (useInputCommon);
|
|
@@ -29916,7 +29917,7 @@ var TagInput = function TagInput(props) {
|
|
|
29916
29917
|
|
|
29917
29918
|
|
|
29918
29919
|
|
|
29919
|
-
var tag_excluded = ["jssStyle", "className", "type", "color", "size", "disabled", "mode", "shape", "children", "onClick", "onClose", "style", "backgroundColor", "onKeyUp", "onCompleted", "onEnterPress"];
|
|
29920
|
+
var tag_excluded = ["jssStyle", "className", "type", "color", "size", "disabled", "mode", "shape", "children", "onClick", "onClose", "style", "backgroundColor", "inlineStyle", "onKeyUp", "onCompleted", "onEnterPress"];
|
|
29920
29921
|
|
|
29921
29922
|
|
|
29922
29923
|
|
|
@@ -29939,6 +29940,7 @@ var Tag = function Tag(props) {
|
|
|
29939
29940
|
onClose = props.onClose,
|
|
29940
29941
|
style = props.style,
|
|
29941
29942
|
backgroundColor = props.backgroundColor,
|
|
29943
|
+
inlineStyle = props.inlineStyle,
|
|
29942
29944
|
onKeyUp = props.onKeyUp,
|
|
29943
29945
|
onCompleted = props.onCompleted,
|
|
29944
29946
|
onEnterPress = props.onEnterPress,
|
|
@@ -29978,13 +29980,14 @@ var Tag = function Tag(props) {
|
|
|
29978
29980
|
var renderChildren = function renderChildren() {
|
|
29979
29981
|
if (onClose) {
|
|
29980
29982
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
29981
|
-
className: tagStyle.inline,
|
|
29983
|
+
className: classnames_default()(inlineStyle && tagStyle.inline),
|
|
29982
29984
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
29983
29985
|
children: children
|
|
29984
29986
|
})
|
|
29985
29987
|
});
|
|
29986
29988
|
}
|
|
29987
29989
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
29990
|
+
className: classnames_default()(inlineStyle && tagStyle.inline),
|
|
29988
29991
|
children: children
|
|
29989
29992
|
});
|
|
29990
29993
|
};
|
|
@@ -30197,6 +30200,7 @@ var result_Result = function Result(props) {
|
|
|
30197
30200
|
compressedClassName = props.compressedClassName,
|
|
30198
30201
|
renderUnmatched = props.renderUnmatched,
|
|
30199
30202
|
renderResultProp = props.renderResult,
|
|
30203
|
+
renderResultContentProp = props.renderResultContent,
|
|
30200
30204
|
allowOnFilter = props.allowOnFilter,
|
|
30201
30205
|
setInputText = props.setInputText,
|
|
30202
30206
|
onRef = props.onRef,
|
|
@@ -30291,6 +30295,17 @@ var result_Result = function Result(props) {
|
|
|
30291
30295
|
};
|
|
30292
30296
|
var content = renderResultContent(item, index, nodes);
|
|
30293
30297
|
if (!content) return null;
|
|
30298
|
+
if (renderResultContentProp) {
|
|
30299
|
+
return renderResultContentProp({
|
|
30300
|
+
key: key,
|
|
30301
|
+
size: size,
|
|
30302
|
+
disabled: isDisabled,
|
|
30303
|
+
className: classnames_default()(styles.tag, styles.hideTag, resultClassName),
|
|
30304
|
+
children: content,
|
|
30305
|
+
onClick: handleClick,
|
|
30306
|
+
'data-soui-type': disabled === true ? 'dark' : undefined
|
|
30307
|
+
});
|
|
30308
|
+
}
|
|
30294
30309
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tag, {
|
|
30295
30310
|
disabled: isDisabled,
|
|
30296
30311
|
size: size,
|
|
@@ -30298,6 +30313,7 @@ var result_Result = function Result(props) {
|
|
|
30298
30313
|
onClose: closeable && handleClose,
|
|
30299
30314
|
onClick: handleClick,
|
|
30300
30315
|
jssStyle: jssStyle,
|
|
30316
|
+
inlineStyle: true,
|
|
30301
30317
|
"data-soui-type": disabled === true ? 'dark' : undefined,
|
|
30302
30318
|
children: content
|
|
30303
30319
|
}, key);
|
|
@@ -30351,6 +30367,12 @@ var result_Result = function Result(props) {
|
|
|
30351
30367
|
}
|
|
30352
30368
|
var values = getDataByValues(nextValue);
|
|
30353
30369
|
var result = values.map(function (v, i) {
|
|
30370
|
+
if (renderResultContentProp && i !== values.length - 1) {
|
|
30371
|
+
return [renderResultItem(v, i, values), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
30372
|
+
className: classnames_default()(styles.tag, styles.hideTag),
|
|
30373
|
+
children: "/"
|
|
30374
|
+
}, "separator-".concat(i))];
|
|
30375
|
+
}
|
|
30354
30376
|
return renderResultItem(v, i, values);
|
|
30355
30377
|
});
|
|
30356
30378
|
return result;
|
|
@@ -30460,6 +30482,8 @@ var Cascader = function Cascader(props) {
|
|
|
30460
30482
|
height = props.height,
|
|
30461
30483
|
className = props.className,
|
|
30462
30484
|
size = props.size,
|
|
30485
|
+
_props$hideTag = props.hideTag,
|
|
30486
|
+
hideTag = _props$hideTag === void 0 ? false : _props$hideTag,
|
|
30463
30487
|
maxLength = props.maxLength,
|
|
30464
30488
|
defaultValue = props.defaultValue,
|
|
30465
30489
|
wideMatch = props.wideMatch,
|
|
@@ -30514,9 +30538,9 @@ var Cascader = function Cascader(props) {
|
|
|
30514
30538
|
onFilterProp = props.onFilter,
|
|
30515
30539
|
onCollapseProp = props.onCollapse;
|
|
30516
30540
|
var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
|
|
30517
|
-
var rootStyle =
|
|
30541
|
+
var rootStyle = Object.assign({
|
|
30518
30542
|
width: width
|
|
30519
|
-
});
|
|
30543
|
+
}, style);
|
|
30520
30544
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
30521
30545
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
30522
30546
|
focused = _useState2[0],
|
|
@@ -30737,7 +30761,7 @@ var Cascader = function Cascader(props) {
|
|
|
30737
30761
|
|
|
30738
30762
|
// innerTitle 模式
|
|
30739
30763
|
var renderInnerTitle = use_inner_title({
|
|
30740
|
-
open: open || !!value,
|
|
30764
|
+
open: open || (value && isArray(value) ? value.length > 0 : !!value),
|
|
30741
30765
|
size: size,
|
|
30742
30766
|
jssStyle: jssStyle,
|
|
30743
30767
|
innerTitle: innerTitle
|
|
@@ -30770,6 +30794,13 @@ var Cascader = function Cascader(props) {
|
|
|
30770
30794
|
children: defaultIcon
|
|
30771
30795
|
});
|
|
30772
30796
|
};
|
|
30797
|
+
var renderResultContent = function renderResultContent(contentProps) {
|
|
30798
|
+
var children = contentProps.children;
|
|
30799
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, contentProps), {}, {
|
|
30800
|
+
className: classnames_default()(contentProps.className, styles.resultItem),
|
|
30801
|
+
children: children
|
|
30802
|
+
}));
|
|
30803
|
+
};
|
|
30773
30804
|
var renderResult = function renderResult() {
|
|
30774
30805
|
var result = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
30775
30806
|
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.result),
|
|
@@ -30778,7 +30809,7 @@ var Cascader = function Cascader(props) {
|
|
|
30778
30809
|
jssStyle: jssStyle,
|
|
30779
30810
|
size: size,
|
|
30780
30811
|
value: value,
|
|
30781
|
-
closeable: singleRemove,
|
|
30812
|
+
closeable: singleRemove && multiple,
|
|
30782
30813
|
data: data,
|
|
30783
30814
|
focus: open,
|
|
30784
30815
|
keygen: keygen,
|
|
@@ -30794,6 +30825,7 @@ var Cascader = function Cascader(props) {
|
|
|
30794
30825
|
renderResult: getRenderResult,
|
|
30795
30826
|
resultClassName: resultClassName,
|
|
30796
30827
|
renderUnmatched: renderUnmatched,
|
|
30828
|
+
renderResultContent: hideTag && multiple === false ? renderResultContent : undefined,
|
|
30797
30829
|
allowOnFilter: 'onFilter' in props || 'onAdvancedFilter' in props,
|
|
30798
30830
|
focusSelected: focusSelected,
|
|
30799
30831
|
inputText: inputText,
|
|
@@ -31216,6 +31248,22 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
31216
31248
|
lineHeight: esm/* default.lineHeightDynamic */.ZP.lineHeightDynamic,
|
|
31217
31249
|
paddingRight: "calc(".concat(esm/* default.cascaderSmallFontSize */.ZP.cascaderSmallFontSize, " + ").concat(esm/* default.cascaderClearPadding */.ZP.cascaderClearPadding, ")")
|
|
31218
31250
|
},
|
|
31251
|
+
resultItem: {
|
|
31252
|
+
transition: 'color 0.3s',
|
|
31253
|
+
overflow: 'hidden',
|
|
31254
|
+
textOverflow: 'ellipsis',
|
|
31255
|
+
// hover
|
|
31256
|
+
'&:hover': {
|
|
31257
|
+
color: esm/* default.cascaderResultItemHoverColor */.ZP.cascaderResultItemHoverColor
|
|
31258
|
+
},
|
|
31259
|
+
// active
|
|
31260
|
+
'&:active': {
|
|
31261
|
+
color: esm/* default.cascaderResultItemActiveColor */.ZP.cascaderResultItemActiveColor
|
|
31262
|
+
}
|
|
31263
|
+
},
|
|
31264
|
+
resultItemActive: {
|
|
31265
|
+
color: esm/* default.cascaderResultItemCheckedColor */.ZP.cascaderResultItemCheckedColor
|
|
31266
|
+
},
|
|
31219
31267
|
resultTextWrapper: {
|
|
31220
31268
|
display: 'flex',
|
|
31221
31269
|
flex: '1',
|
|
@@ -32701,6 +32749,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
32701
32749
|
fontSize: esm/* default.selectFontSize */.ZP.selectFontSize
|
|
32702
32750
|
},
|
|
32703
32751
|
moreIcon: {},
|
|
32752
|
+
hideTag: {},
|
|
32704
32753
|
list: {
|
|
32705
32754
|
paddingTop: 3,
|
|
32706
32755
|
paddingBottom: 3
|
|
@@ -32725,7 +32774,10 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
32725
32774
|
marginRight: 4,
|
|
32726
32775
|
marginTop: esm/* default.selectPlaceholderMarginY */.ZP.selectPlaceholderMarginY,
|
|
32727
32776
|
marginBottom: esm/* default.selectPlaceholderMarginY */.ZP.selectPlaceholderMarginY,
|
|
32728
|
-
textWrap: 'nowrap'
|
|
32777
|
+
textWrap: 'nowrap',
|
|
32778
|
+
'&$hideTag': {
|
|
32779
|
+
marginRight: 0
|
|
32780
|
+
}
|
|
32729
32781
|
},
|
|
32730
32782
|
space: {
|
|
32731
32783
|
marginTop: esm/* default.selectPlaceholderMarginY */.ZP.selectPlaceholderMarginY,
|
|
@@ -32811,6 +32863,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
32811
32863
|
marginBottom: 4,
|
|
32812
32864
|
'& $columnsCheckbox': {
|
|
32813
32865
|
marginRight: 0,
|
|
32866
|
+
marginLeft: 4,
|
|
32814
32867
|
width: 'auto'
|
|
32815
32868
|
}
|
|
32816
32869
|
},
|
|
@@ -32840,7 +32893,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
32840
32893
|
},
|
|
32841
32894
|
'&:not($optionDisabled):hover': {
|
|
32842
32895
|
background: esm/* default.selectColumnBackgroundColor */.ZP.selectColumnBackgroundColor,
|
|
32843
|
-
borderRadius: esm/* default.
|
|
32896
|
+
borderRadius: esm/* default.selectColumnBorderRadius */.ZP.selectColumnBorderRadius
|
|
32844
32897
|
}
|
|
32845
32898
|
},
|
|
32846
32899
|
columnsRadio: {
|
|
@@ -32855,7 +32908,8 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
32855
32908
|
},
|
|
32856
32909
|
columnsCheckbox: {
|
|
32857
32910
|
width: '100%',
|
|
32858
|
-
marginLeft:
|
|
32911
|
+
// marginLeft: token.selectColumnOptionMargin,
|
|
32912
|
+
marginLeft: 0,
|
|
32859
32913
|
'& :last-child': {
|
|
32860
32914
|
flex: 1,
|
|
32861
32915
|
overflow: 'hidden',
|
|
@@ -32922,9 +32976,7 @@ var innerTitle = objectSpread2_default()(objectSpread2_default()({}, inner_title
|
|
|
32922
32976
|
top: {
|
|
32923
32977
|
opacity: '0',
|
|
32924
32978
|
'$wrapperOpen &': {
|
|
32925
|
-
opacity: '1'
|
|
32926
|
-
},
|
|
32927
|
-
'$animation$wrapperOpen &': {
|
|
32979
|
+
opacity: '1',
|
|
32928
32980
|
transition: "opacity 0s ease-in ".concat(moveTime)
|
|
32929
32981
|
}
|
|
32930
32982
|
},
|
|
@@ -32934,9 +32986,6 @@ var innerTitle = objectSpread2_default()(objectSpread2_default()({}, inner_title
|
|
|
32934
32986
|
position: 'relative',
|
|
32935
32987
|
top: 0
|
|
32936
32988
|
},
|
|
32937
|
-
'$animation$wrapperOpen &': {
|
|
32938
|
-
transition: "opacity 0s ease-in ".concat(moveTime)
|
|
32939
|
-
},
|
|
32940
32989
|
'$animation$wrapperOpen & $title': {
|
|
32941
32990
|
animation: "$movein ".concat(moveTime, " ease-in")
|
|
32942
32991
|
},
|
|
@@ -32952,7 +33001,8 @@ var innerTitle = objectSpread2_default()(objectSpread2_default()({}, inner_title
|
|
|
32952
33001
|
alignItems: 'center',
|
|
32953
33002
|
opacity: '1',
|
|
32954
33003
|
'$wrapperOpen &': {
|
|
32955
|
-
opacity: '0'
|
|
33004
|
+
opacity: '0',
|
|
33005
|
+
transition: "opacity 0s ease-in ".concat(moveTime)
|
|
32956
33006
|
}
|
|
32957
33007
|
},
|
|
32958
33008
|
content: {
|
|
@@ -33317,8 +33367,15 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
|
|
|
33317
33367
|
}
|
|
33318
33368
|
},
|
|
33319
33369
|
password: {
|
|
33370
|
+
'& $clearWrapper': {
|
|
33371
|
+
flexBasis: "calc(".concat(esm/* default.inputIconSize */.ZP.inputIconSize, " + 12px)")
|
|
33372
|
+
},
|
|
33320
33373
|
'& $clear': {
|
|
33321
|
-
marginRight:
|
|
33374
|
+
marginRight: 8,
|
|
33375
|
+
color: esm/* default.inputClearColor */.ZP.inputClearColor,
|
|
33376
|
+
'&:hover svg': {
|
|
33377
|
+
color: esm/* default.inputHoverClearColor */.ZP.inputHoverClearColor
|
|
33378
|
+
}
|
|
33322
33379
|
}
|
|
33323
33380
|
},
|
|
33324
33381
|
clear: {
|
|
@@ -45528,6 +45585,7 @@ var TreeCheckbox = function TreeCheckbox(props) {
|
|
|
45528
45585
|
};
|
|
45529
45586
|
var checked = getChecked(id);
|
|
45530
45587
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_checkbox_checkbox, {
|
|
45588
|
+
theme: "dark",
|
|
45531
45589
|
className: className,
|
|
45532
45590
|
jssStyle: jssStyle,
|
|
45533
45591
|
checked: checked,
|
|
@@ -45670,19 +45728,25 @@ var NodeContent = function NodeContent(props) {
|
|
|
45670
45728
|
};
|
|
45671
45729
|
return render(data, expanded, active, id);
|
|
45672
45730
|
};
|
|
45731
|
+
var contentEvent = {
|
|
45732
|
+
onClick: inlineNode ? undefined : handleNodeClick
|
|
45733
|
+
};
|
|
45734
|
+
var textEvent = {
|
|
45735
|
+
onClick: inlineNode ? handleNodeClick : undefined
|
|
45736
|
+
};
|
|
45673
45737
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
45674
45738
|
className: rootClass,
|
|
45675
45739
|
onDragOver: onDragOver,
|
|
45676
|
-
children: [renderIndicator(), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
45740
|
+
children: [renderIndicator(), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
45677
45741
|
ref: bindContent,
|
|
45678
45742
|
className: contentClass
|
|
45679
|
-
}, contentDataProps()), {}, {
|
|
45680
|
-
children: [onChange && renderCheckbox(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
45743
|
+
}, contentDataProps()), contentEvent), {}, {
|
|
45744
|
+
children: [onChange && renderCheckbox(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
45681
45745
|
className: textClass,
|
|
45682
|
-
onDoubleClick: handleNodeExpand
|
|
45683
|
-
|
|
45746
|
+
onDoubleClick: handleNodeExpand
|
|
45747
|
+
}, textEvent), {}, {
|
|
45684
45748
|
children: renderNode()
|
|
45685
|
-
})]
|
|
45749
|
+
}))]
|
|
45686
45750
|
}))]
|
|
45687
45751
|
});
|
|
45688
45752
|
};
|
|
@@ -46867,9 +46931,9 @@ function Select(props) {
|
|
|
46867
46931
|
onEnterExpand = props.onEnterExpand,
|
|
46868
46932
|
onFilterWidthCreate = props.onFilterWidthCreate;
|
|
46869
46933
|
var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
|
|
46870
|
-
var rootStyle =
|
|
46934
|
+
var rootStyle = Object.assign({
|
|
46871
46935
|
width: width
|
|
46872
|
-
});
|
|
46936
|
+
}, style);
|
|
46873
46937
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)('keyboard'),
|
|
46874
46938
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
46875
46939
|
controlType = _useState2[0],
|
|
@@ -53751,6 +53815,14 @@ var useColumns = function useColumns(props) {
|
|
|
53751
53815
|
}).filter(function (c) {
|
|
53752
53816
|
return c !== context.expandHideCol;
|
|
53753
53817
|
});
|
|
53818
|
+
var haveCheckbox = columns.find(function (v) {
|
|
53819
|
+
return v.type === 'checkbox';
|
|
53820
|
+
});
|
|
53821
|
+
if (props.showCheckbox && !haveCheckbox) {
|
|
53822
|
+
columns.unshift({
|
|
53823
|
+
type: 'checkbox'
|
|
53824
|
+
});
|
|
53825
|
+
}
|
|
53754
53826
|
var left = -1;
|
|
53755
53827
|
var right = -1;
|
|
53756
53828
|
columns.forEach(function (c, i) {
|
|
@@ -53771,17 +53843,6 @@ var useColumns = function useColumns(props) {
|
|
|
53771
53843
|
if (i === right) draft.firstFixed = true;
|
|
53772
53844
|
});
|
|
53773
53845
|
});
|
|
53774
|
-
var haveCheckbox = columns.find(function (v) {
|
|
53775
|
-
return v.type === 'checkbox';
|
|
53776
|
-
});
|
|
53777
|
-
if (props.showCheckbox && !haveCheckbox) {
|
|
53778
|
-
context.cachedColumns.unshift({
|
|
53779
|
-
index: -1,
|
|
53780
|
-
key: 'checkbox',
|
|
53781
|
-
type: 'checkbox',
|
|
53782
|
-
fixed: left >= 0 ? 'left' : undefined
|
|
53783
|
-
});
|
|
53784
|
-
}
|
|
53785
53846
|
context.oldColumns = columnsA;
|
|
53786
53847
|
return context.cachedColumns;
|
|
53787
53848
|
});
|
|
@@ -53890,7 +53951,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
53890
53951
|
if (!colgroup) return;
|
|
53891
53952
|
var table = theadRef.current || tbodyRef.current;
|
|
53892
53953
|
if (!table) return;
|
|
53893
|
-
var colEl = table.querySelector("colgroup col:nth-child(".concat(
|
|
53954
|
+
var colEl = table.querySelector("colgroup col:nth-child(".concat(index + 1, ")"));
|
|
53894
53955
|
if (!colEl) return;
|
|
53895
53956
|
var oWidth = parseInt(colEl.style.width, 10);
|
|
53896
53957
|
if (Number.isNaN(oWidth) || oWidth === 0) {
|
|
@@ -55020,7 +55081,7 @@ var useTableGroup = function useTableGroup(props) {
|
|
|
55020
55081
|
margin: 0
|
|
55021
55082
|
}
|
|
55022
55083
|
})
|
|
55023
|
-
}), renderDrag(colTemp.index)]
|
|
55084
|
+
}), colTemp.type !== 'checkbox' ? renderDrag(colTemp.index) : null]
|
|
55024
55085
|
}, 'checkbox'));
|
|
55025
55086
|
return;
|
|
55026
55087
|
}
|
|
@@ -56288,7 +56349,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
|
|
|
56288
56349
|
},
|
|
56289
56350
|
cellFixedLast: {},
|
|
56290
56351
|
cellCheckbox: {
|
|
56291
|
-
width: '
|
|
56352
|
+
width: '42px'
|
|
56292
56353
|
},
|
|
56293
56354
|
cellGroup: {
|
|
56294
56355
|
textAlign: 'center',
|
|
@@ -58907,8 +58968,9 @@ var TransferList = function TransferList(props) {
|
|
|
58907
58968
|
});
|
|
58908
58969
|
}
|
|
58909
58970
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
58910
|
-
className: styles.
|
|
58971
|
+
className: styles.inputWrapper,
|
|
58911
58972
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input, {
|
|
58973
|
+
className: styles.input,
|
|
58912
58974
|
clearable: true,
|
|
58913
58975
|
jssStyle: jssStyle,
|
|
58914
58976
|
value: filterText,
|
|
@@ -59262,6 +59324,9 @@ var TransferStyle = {
|
|
|
59262
59324
|
},
|
|
59263
59325
|
'& $close': {
|
|
59264
59326
|
width: 24
|
|
59327
|
+
},
|
|
59328
|
+
'& $left, & $right': {
|
|
59329
|
+
padding: 0
|
|
59265
59330
|
}
|
|
59266
59331
|
},
|
|
59267
59332
|
simple: {
|
|
@@ -59345,9 +59410,11 @@ var TransferStyle = {
|
|
|
59345
59410
|
width: 14
|
|
59346
59411
|
}
|
|
59347
59412
|
},
|
|
59413
|
+
inputWrapper: {
|
|
59414
|
+
padding: '6px 12px'
|
|
59415
|
+
},
|
|
59348
59416
|
input: {
|
|
59349
|
-
|
|
59350
|
-
'& svg': {
|
|
59417
|
+
'& > div > svg': {
|
|
59351
59418
|
width: 14,
|
|
59352
59419
|
minWidth: 14,
|
|
59353
59420
|
color: esm/* default.transferIconColor */.ZP.transferIconColor
|
|
@@ -59670,9 +59737,9 @@ var TreeSelect = function TreeSelect(props) {
|
|
|
59670
59737
|
onEnterExpand = props.onEnterExpand,
|
|
59671
59738
|
onExpand = props.onExpand;
|
|
59672
59739
|
var styles = jssStyle === null || jssStyle === void 0 ? void 0 : (_jssStyle$select = jssStyle.select) === null || _jssStyle$select === void 0 ? void 0 : _jssStyle$select.call(jssStyle);
|
|
59673
|
-
var rootStyle =
|
|
59740
|
+
var rootStyle = Object.assign({
|
|
59674
59741
|
width: width
|
|
59675
|
-
});
|
|
59742
|
+
}, style);
|
|
59676
59743
|
var datum = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
59677
59744
|
var blurEvent = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
59678
59745
|
var treeSelectRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
@@ -64390,7 +64457,7 @@ var upload_interface = __webpack_require__(7818);
|
|
|
64390
64457
|
|
|
64391
64458
|
|
|
64392
64459
|
/* harmony default export */ var src = ({
|
|
64393
|
-
version: '3.0.0-alpha.
|
|
64460
|
+
version: '3.0.0-alpha.12'
|
|
64394
64461
|
});
|
|
64395
64462
|
}();
|
|
64396
64463
|
/******/ return __webpack_exports__;
|