@zlooks.cn/password-auth-server 1.0.3 → 1.0.4
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/.hile-rsc/{build-mtsn68qv-a841a566/client-browser/src-plugin-password-form-3bd63d69e5-G5UQAB5W.js → build-mtu1gn28-ec03cfb2/client-browser/src-plugin-password-form-3bd63d69e5-BCAMXKEX.js} +152 -19
- package/.hile-rsc/{build-mtsn68qv-a841a566/client-ssr/src-plugin-password-form-3bd63d69e5-UV3K6EC6.js → build-mtu1gn28-ec03cfb2/client-ssr/src-plugin-password-form-3bd63d69e5-KF6ZLTDT.js} +357 -224
- package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/plugin.json +6 -6
- package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/server-rsc/index.js +160 -27
- package/package.json +4 -4
- /package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/client-browser/chunks/chunk-CZF5VGOJ.js +0 -0
- /package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/client-browser/src-plugin-page-frame-07c4de56a6-3F24AYCH.css +0 -0
- /package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/client-browser/src-plugin-page-frame-07c4de56a6-C2WHPDGD.js +0 -0
- /package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/client-browser/src-plugin-password-form-3bd63d69e5-TRYMJX4F.css +0 -0
- /package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/client-ssr/chunks/chunk-RMKQVF3F.js +0 -0
- /package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/client-ssr/src-plugin-page-frame-07c4de56a6-ICZZGKBP.js +0 -0
- /package/.hile-rsc/{build-mtsn68qv-a841a566 → build-mtu1gn28-ec03cfb2}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
|
@@ -3227,10 +3227,10 @@ var require_Alert = __commonJS({
|
|
|
3227
3227
|
};
|
|
3228
3228
|
var Alert = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
3229
3229
|
const {
|
|
3230
|
-
description,
|
|
3230
|
+
description: description2,
|
|
3231
3231
|
prefixCls: customizePrefixCls,
|
|
3232
3232
|
message,
|
|
3233
|
-
title,
|
|
3233
|
+
title: title2,
|
|
3234
3234
|
banner,
|
|
3235
3235
|
className,
|
|
3236
3236
|
rootClassName,
|
|
@@ -3249,7 +3249,7 @@ var require_Alert = __commonJS({
|
|
|
3249
3249
|
classNames,
|
|
3250
3250
|
...otherProps
|
|
3251
3251
|
} = props;
|
|
3252
|
-
const mergedTitle =
|
|
3252
|
+
const mergedTitle = title2 ?? message;
|
|
3253
3253
|
const [closed, setClosed] = React.useState(false);
|
|
3254
3254
|
if (process.env.NODE_ENV !== "production") {
|
|
3255
3255
|
const warning = (0, _warning.devUseWarning)("Alert");
|
|
@@ -3323,7 +3323,7 @@ var require_Alert = __commonJS({
|
|
|
3323
3323
|
props: mergedProps
|
|
3324
3324
|
});
|
|
3325
3325
|
const alertCls = (0, _clsx.clsx)(prefixCls, `${prefixCls}-${type}`, `${prefixCls}-${mergedVariant}`, {
|
|
3326
|
-
[`${prefixCls}-with-description`]: !!
|
|
3326
|
+
[`${prefixCls}-with-description`]: !!description2,
|
|
3327
3327
|
[`${prefixCls}-no-icon`]: !isShowIcon,
|
|
3328
3328
|
[`${prefixCls}-banner`]: !!banner,
|
|
3329
3329
|
[`${prefixCls}-rtl`]: direction === "rtl"
|
|
@@ -3386,7 +3386,7 @@ var require_Alert = __commonJS({
|
|
|
3386
3386
|
}, isShowIcon ? /* @__PURE__ */ React.createElement(IconNode, {
|
|
3387
3387
|
className: (0, _clsx.clsx)(`${prefixCls}-icon`, mergedClassNames.icon),
|
|
3388
3388
|
style: mergedStyles.icon,
|
|
3389
|
-
description,
|
|
3389
|
+
description: description2,
|
|
3390
3390
|
icon: props.icon,
|
|
3391
3391
|
prefixCls,
|
|
3392
3392
|
type,
|
|
@@ -3400,10 +3400,10 @@ var require_Alert = __commonJS({
|
|
|
3400
3400
|
}, mergedTitle ? /* @__PURE__ */ React.createElement("div", {
|
|
3401
3401
|
className: (0, _clsx.clsx)(`${prefixCls}-title`, mergedClassNames.title),
|
|
3402
3402
|
style: mergedStyles.title
|
|
3403
|
-
}, mergedTitle) : null,
|
|
3403
|
+
}, mergedTitle) : null, description2 ? /* @__PURE__ */ React.createElement("div", {
|
|
3404
3404
|
className: (0, _clsx.clsx)(`${prefixCls}-description`, mergedClassNames.description),
|
|
3405
3405
|
style: mergedStyles.description
|
|
3406
|
-
},
|
|
3406
|
+
}, description2) : null), action ? /* @__PURE__ */ React.createElement("div", {
|
|
3407
3407
|
className: (0, _clsx.clsx)(`${prefixCls}-actions`, mergedClassNames.actions),
|
|
3408
3408
|
style: mergedStyles.actions
|
|
3409
3409
|
}, action) : null, /* @__PURE__ */ React.createElement(CloseIconNode, {
|
|
@@ -3479,8 +3479,8 @@ var require_ErrorBoundary = __commonJS({
|
|
|
3479
3479
|
value: function render() {
|
|
3480
3480
|
const {
|
|
3481
3481
|
message,
|
|
3482
|
-
title,
|
|
3483
|
-
description,
|
|
3482
|
+
title: title2,
|
|
3483
|
+
description: description2,
|
|
3484
3484
|
id,
|
|
3485
3485
|
children
|
|
3486
3486
|
} = this.props;
|
|
@@ -3488,10 +3488,10 @@ var require_ErrorBoundary = __commonJS({
|
|
|
3488
3488
|
error,
|
|
3489
3489
|
info
|
|
3490
3490
|
} = this.state;
|
|
3491
|
-
const mergedTitle =
|
|
3491
|
+
const mergedTitle = title2 ?? message;
|
|
3492
3492
|
const componentStack = info?.componentStack || null;
|
|
3493
3493
|
const errorMessage = (0, _is.isNonNullable)(mergedTitle) ? mergedTitle : error?.toString();
|
|
3494
|
-
const errorDescription = (0, _is.isNonNullable)(
|
|
3494
|
+
const errorDescription = (0, _is.isNonNullable)(description2) ? description2 : componentStack;
|
|
3495
3495
|
if (error) {
|
|
3496
3496
|
return /* @__PURE__ */ React.createElement(_Alert.default, {
|
|
3497
3497
|
id,
|
|
@@ -5104,7 +5104,7 @@ var require_AnchorLink = __commonJS({
|
|
|
5104
5104
|
var AnchorLink = (props) => {
|
|
5105
5105
|
const {
|
|
5106
5106
|
href,
|
|
5107
|
-
title,
|
|
5107
|
+
title: title2,
|
|
5108
5108
|
prefixCls: customizePrefixCls,
|
|
5109
5109
|
children,
|
|
5110
5110
|
className,
|
|
@@ -5131,7 +5131,7 @@ var require_AnchorLink = __commonJS({
|
|
|
5131
5131
|
}, [href, targetOffset]);
|
|
5132
5132
|
const handleClick = (e) => {
|
|
5133
5133
|
onClick?.(e, {
|
|
5134
|
-
title,
|
|
5134
|
+
title: title2,
|
|
5135
5135
|
href
|
|
5136
5136
|
});
|
|
5137
5137
|
scrollTo?.(href, targetOffset);
|
|
@@ -5172,10 +5172,10 @@ var require_AnchorLink = __commonJS({
|
|
|
5172
5172
|
className: titleClassName,
|
|
5173
5173
|
style: mergedStyles?.itemTitle,
|
|
5174
5174
|
href,
|
|
5175
|
-
title: typeof
|
|
5175
|
+
title: typeof title2 === "string" ? title2 : void 0,
|
|
5176
5176
|
target,
|
|
5177
5177
|
onClick: handleClick
|
|
5178
|
-
},
|
|
5178
|
+
}, title2), direction !== "horizontal" ? children : null);
|
|
5179
5179
|
};
|
|
5180
5180
|
var _default = exports.default = AnchorLink;
|
|
5181
5181
|
}
|
|
@@ -12989,7 +12989,7 @@ var require_Skeleton = __commonJS({
|
|
|
12989
12989
|
styles,
|
|
12990
12990
|
children,
|
|
12991
12991
|
avatar = false,
|
|
12992
|
-
title = true,
|
|
12992
|
+
title: title2 = true,
|
|
12993
12993
|
paragraph = true,
|
|
12994
12994
|
active,
|
|
12995
12995
|
round
|
|
@@ -13007,7 +13007,7 @@ var require_Skeleton = __commonJS({
|
|
|
13007
13007
|
const mergedProps = {
|
|
13008
13008
|
...props,
|
|
13009
13009
|
avatar,
|
|
13010
|
-
title,
|
|
13010
|
+
title: title2,
|
|
13011
13011
|
paragraph
|
|
13012
13012
|
};
|
|
13013
13013
|
const contextStyleRoot = (0, _useMergeSemantic.useSemanticRootStyle)(contextStyle);
|
|
@@ -13021,7 +13021,7 @@ var require_Skeleton = __commonJS({
|
|
|
13021
13021
|
}));
|
|
13022
13022
|
if (loading || !("loading" in props)) {
|
|
13023
13023
|
const hasAvatar = !!avatar;
|
|
13024
|
-
const hasTitle = !!
|
|
13024
|
+
const hasTitle = !!title2;
|
|
13025
13025
|
const hasParagraph = !!paragraph;
|
|
13026
13026
|
let avatarNode;
|
|
13027
13027
|
if (hasAvatar) {
|
|
@@ -13047,7 +13047,7 @@ var require_Skeleton = __commonJS({
|
|
|
13047
13047
|
className: mergedClassNames.title,
|
|
13048
13048
|
prefixCls: `${prefixCls}-title`,
|
|
13049
13049
|
...getTitleBasicProps(hasAvatar, hasParagraph),
|
|
13050
|
-
...getComponentProps(
|
|
13050
|
+
...getComponentProps(title2),
|
|
13051
13051
|
style: mergedStyles.title
|
|
13052
13052
|
};
|
|
13053
13053
|
$title = /* @__PURE__ */ _react.default.createElement(_Title.default, {
|
|
@@ -14328,7 +14328,7 @@ var require_ConfirmDialog = __commonJS({
|
|
|
14328
14328
|
closable = false,
|
|
14329
14329
|
onConfirm,
|
|
14330
14330
|
styles,
|
|
14331
|
-
title,
|
|
14331
|
+
title: title2,
|
|
14332
14332
|
mask,
|
|
14333
14333
|
maskClosable,
|
|
14334
14334
|
okButtonProps,
|
|
@@ -14384,7 +14384,7 @@ var require_ConfirmDialog = __commonJS({
|
|
|
14384
14384
|
});
|
|
14385
14385
|
onConfirm?.(false);
|
|
14386
14386
|
},
|
|
14387
|
-
title,
|
|
14387
|
+
title: title2,
|
|
14388
14388
|
footer: null,
|
|
14389
14389
|
transitionName: (0, _motion.getTransitionName)(rootPrefixCls || "", "zoom", props.transitionName),
|
|
14390
14390
|
maskTransitionName: (0, _motion.getTransitionName)(rootPrefixCls || "", "fade", props.maskTransitionName),
|
|
@@ -14852,8 +14852,8 @@ var require_PurePanel2 = __commonJS({
|
|
|
14852
14852
|
icon,
|
|
14853
14853
|
type,
|
|
14854
14854
|
message,
|
|
14855
|
-
title,
|
|
14856
|
-
description,
|
|
14855
|
+
title: title2,
|
|
14856
|
+
description: description2,
|
|
14857
14857
|
btn,
|
|
14858
14858
|
actions,
|
|
14859
14859
|
closeIcon: _closeIcon,
|
|
@@ -14885,7 +14885,7 @@ var require_PurePanel2 = __commonJS({
|
|
|
14885
14885
|
warning.deprecated(!(deprecatedName in props), deprecatedName, newName);
|
|
14886
14886
|
});
|
|
14887
14887
|
}
|
|
14888
|
-
const mergedTitle =
|
|
14888
|
+
const mergedTitle = title2 ?? message;
|
|
14889
14889
|
const hasTitle = (0, _is.isReactRenderable)(mergedTitle);
|
|
14890
14890
|
const prefixCls = staticPrefixCls || getPrefixCls("notification");
|
|
14891
14891
|
const noticePrefixCls = `${prefixCls}-notice`;
|
|
@@ -14929,7 +14929,7 @@ var require_PurePanel2 = __commonJS({
|
|
|
14929
14929
|
closable: mergedClosable,
|
|
14930
14930
|
className: contextClassName,
|
|
14931
14931
|
title: hasTitle ? mergedTitle : null,
|
|
14932
|
-
description,
|
|
14932
|
+
description: description2,
|
|
14933
14933
|
icon: iconNode,
|
|
14934
14934
|
actions: mergedActions,
|
|
14935
14935
|
role,
|
|
@@ -15079,9 +15079,9 @@ var require_useNotification = __commonJS({
|
|
|
15079
15079
|
const contextClassName = notification?.className || {};
|
|
15080
15080
|
const noticePrefixCls = `${prefixCls}-notice`;
|
|
15081
15081
|
const {
|
|
15082
|
-
title,
|
|
15082
|
+
title: title2,
|
|
15083
15083
|
message,
|
|
15084
|
-
description,
|
|
15084
|
+
description: description2,
|
|
15085
15085
|
icon,
|
|
15086
15086
|
type,
|
|
15087
15087
|
btn,
|
|
@@ -15100,7 +15100,7 @@ var require_useNotification = __commonJS({
|
|
|
15100
15100
|
warning.deprecated(!(deprecatedName in config), deprecatedName, newName);
|
|
15101
15101
|
});
|
|
15102
15102
|
}
|
|
15103
|
-
const mergedTitle =
|
|
15103
|
+
const mergedTitle = title2 ?? message;
|
|
15104
15104
|
const hasTitle = (0, _is.isReactRenderable)(mergedTitle);
|
|
15105
15105
|
const mergedActions = actions ?? btn;
|
|
15106
15106
|
const realCloseIcon = (0, _PurePanel.getCloseIcon)(noticePrefixCls, (0, _util.getCloseIconConfig)(closeIcon, notificationConfig, notification));
|
|
@@ -15129,7 +15129,7 @@ var require_useNotification = __commonJS({
|
|
|
15129
15129
|
placement: notificationConfig?.placement ?? DEFAULT_PLACEMENT,
|
|
15130
15130
|
...restConfig,
|
|
15131
15131
|
title: hasTitle ? mergedTitle : null,
|
|
15132
|
-
description,
|
|
15132
|
+
description: description2,
|
|
15133
15133
|
icon: iconNode,
|
|
15134
15134
|
actions: mergedActions,
|
|
15135
15135
|
role,
|
|
@@ -16453,19 +16453,19 @@ var require_commonUtil = __commonJS({
|
|
|
16453
16453
|
function isComboNoValue(value) {
|
|
16454
16454
|
return !value && value !== 0;
|
|
16455
16455
|
}
|
|
16456
|
-
function isTitleType(
|
|
16457
|
-
return ["string", "number"].includes(typeof
|
|
16456
|
+
function isTitleType(title2) {
|
|
16457
|
+
return ["string", "number"].includes(typeof title2);
|
|
16458
16458
|
}
|
|
16459
16459
|
function getTitle(item) {
|
|
16460
|
-
let
|
|
16460
|
+
let title2 = void 0;
|
|
16461
16461
|
if (item) {
|
|
16462
16462
|
if (isTitleType(item.title)) {
|
|
16463
|
-
|
|
16463
|
+
title2 = item.title.toString();
|
|
16464
16464
|
} else if (isTitleType(item.label)) {
|
|
16465
|
-
|
|
16465
|
+
title2 = item.label.toString();
|
|
16466
16466
|
}
|
|
16467
16467
|
}
|
|
16468
|
-
return
|
|
16468
|
+
return title2;
|
|
16469
16469
|
}
|
|
16470
16470
|
}
|
|
16471
16471
|
});
|
|
@@ -20547,7 +20547,7 @@ var require_OptionList = __commonJS({
|
|
|
20547
20547
|
}
|
|
20548
20548
|
const {
|
|
20549
20549
|
disabled,
|
|
20550
|
-
title,
|
|
20550
|
+
title: title2,
|
|
20551
20551
|
children,
|
|
20552
20552
|
style,
|
|
20553
20553
|
className,
|
|
@@ -20567,8 +20567,8 @@ var require_OptionList = __commonJS({
|
|
|
20567
20567
|
const iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === "function" || selected;
|
|
20568
20568
|
const content = typeof mergedLabel === "number" ? mergedLabel : mergedLabel || value;
|
|
20569
20569
|
let optionTitle = isTitleType(content) ? content.toString() : void 0;
|
|
20570
|
-
if (
|
|
20571
|
-
optionTitle =
|
|
20570
|
+
if (title2 !== void 0) {
|
|
20571
|
+
optionTitle = title2;
|
|
20572
20572
|
}
|
|
20573
20573
|
return /* @__PURE__ */ React.createElement("div", _extends({}, (0, _util.pickAttrs)(passedProps), !virtual ? getItemAriaProps(item, itemIndex) : {}, {
|
|
20574
20574
|
"aria-selected": virtual ? void 0 : isAriaSelected(value),
|
|
@@ -21965,7 +21965,7 @@ var require_empty2 = __commonJS({
|
|
|
21965
21965
|
rootClassName,
|
|
21966
21966
|
prefixCls: customizePrefixCls,
|
|
21967
21967
|
image,
|
|
21968
|
-
description,
|
|
21968
|
+
description: description2,
|
|
21969
21969
|
children,
|
|
21970
21970
|
imageStyle,
|
|
21971
21971
|
style,
|
|
@@ -21990,7 +21990,7 @@ var require_empty2 = __commonJS({
|
|
|
21990
21990
|
props
|
|
21991
21991
|
});
|
|
21992
21992
|
const [locale] = (0, _locale.useLocale)("Empty");
|
|
21993
|
-
const des = typeof
|
|
21993
|
+
const des = typeof description2 !== "undefined" ? description2 : locale?.description;
|
|
21994
21994
|
const alt = typeof des === "string" ? des : "empty";
|
|
21995
21995
|
const mergedImage = image ?? contextImage ?? defaultEmptyImg;
|
|
21996
21996
|
let imageNode = null;
|
|
@@ -25261,7 +25261,7 @@ var require_PurePanel4 = __commonJS({
|
|
|
25261
25261
|
prefixCls: customizePrefixCls,
|
|
25262
25262
|
className,
|
|
25263
25263
|
placement = "top",
|
|
25264
|
-
title,
|
|
25264
|
+
title: title2,
|
|
25265
25265
|
color,
|
|
25266
25266
|
overlayInnerStyle,
|
|
25267
25267
|
classNames,
|
|
@@ -25304,7 +25304,7 @@ var require_PurePanel4 = __commonJS({
|
|
|
25304
25304
|
prefixCls,
|
|
25305
25305
|
classNames: mergedClassNames,
|
|
25306
25306
|
styles: mergedStyles
|
|
25307
|
-
},
|
|
25307
|
+
}, title2));
|
|
25308
25308
|
};
|
|
25309
25309
|
var _default = exports.default = PurePanel;
|
|
25310
25310
|
}
|
|
@@ -25354,7 +25354,7 @@ var require_tooltip = __commonJS({
|
|
|
25354
25354
|
arrow: tooltipArrow,
|
|
25355
25355
|
destroyTooltipOnHide,
|
|
25356
25356
|
destroyOnHidden,
|
|
25357
|
-
title,
|
|
25357
|
+
title: title2,
|
|
25358
25358
|
overlay,
|
|
25359
25359
|
trigger,
|
|
25360
25360
|
builtinPlacements,
|
|
@@ -25417,7 +25417,7 @@ var require_tooltip = __commonJS({
|
|
|
25417
25417
|
process.env.NODE_ENV !== "production" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.") : void 0;
|
|
25418
25418
|
}
|
|
25419
25419
|
const [open, setOpen] = (0, _util.useControlledState)(props.defaultOpen ?? false, props.open);
|
|
25420
|
-
const noTitle = !
|
|
25420
|
+
const noTitle = !title2 && !overlay && title2 !== 0;
|
|
25421
25421
|
const onInternalOpenChange = (vis) => {
|
|
25422
25422
|
setOpen(noTitle ? false : vis);
|
|
25423
25423
|
if (!noTitle && onOpenChange) {
|
|
@@ -25435,11 +25435,11 @@ var require_tooltip = __commonJS({
|
|
|
25435
25435
|
});
|
|
25436
25436
|
}, [mergedArrow, builtinPlacements, token, mergedShowArrow, autoAdjustOverflow]);
|
|
25437
25437
|
const memoOverlay = React.useMemo(() => {
|
|
25438
|
-
if (
|
|
25439
|
-
return
|
|
25438
|
+
if (title2 === 0) {
|
|
25439
|
+
return title2;
|
|
25440
25440
|
}
|
|
25441
|
-
return overlay ||
|
|
25442
|
-
}, [overlay,
|
|
25441
|
+
return overlay || title2 || "";
|
|
25442
|
+
}, [overlay, title2]);
|
|
25443
25443
|
const memoOverlayWrapper = /* @__PURE__ */ React.createElement(_ContextIsolator.default, {
|
|
25444
25444
|
space: true,
|
|
25445
25445
|
form: true
|
|
@@ -25738,19 +25738,19 @@ var require_PurePanel5 = __commonJS({
|
|
|
25738
25738
|
var _style = _interopRequireDefault(require_style19());
|
|
25739
25739
|
var Overlay = (props) => {
|
|
25740
25740
|
const {
|
|
25741
|
-
title,
|
|
25741
|
+
title: title2,
|
|
25742
25742
|
content,
|
|
25743
25743
|
prefixCls,
|
|
25744
25744
|
classNames,
|
|
25745
25745
|
styles
|
|
25746
25746
|
} = props;
|
|
25747
|
-
if (!(0, _is.isReactRenderable)(
|
|
25747
|
+
if (!(0, _is.isReactRenderable)(title2) && !(0, _is.isReactRenderable)(content)) {
|
|
25748
25748
|
return null;
|
|
25749
25749
|
}
|
|
25750
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, (0, _is.isReactRenderable)(
|
|
25750
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, (0, _is.isReactRenderable)(title2) && /* @__PURE__ */ React.createElement("div", {
|
|
25751
25751
|
className: (0, _clsx.clsx)(`${prefixCls}-title`, classNames?.title),
|
|
25752
25752
|
style: styles?.title
|
|
25753
|
-
},
|
|
25753
|
+
}, title2), (0, _is.isReactRenderable)(content) && /* @__PURE__ */ React.createElement("div", {
|
|
25754
25754
|
className: (0, _clsx.clsx)(`${prefixCls}-content`, classNames?.content),
|
|
25755
25755
|
style: styles?.content
|
|
25756
25756
|
}, content));
|
|
@@ -25763,13 +25763,13 @@ var require_PurePanel5 = __commonJS({
|
|
|
25763
25763
|
className,
|
|
25764
25764
|
style,
|
|
25765
25765
|
placement = "top",
|
|
25766
|
-
title,
|
|
25766
|
+
title: title2,
|
|
25767
25767
|
content,
|
|
25768
25768
|
children,
|
|
25769
25769
|
classNames,
|
|
25770
25770
|
styles
|
|
25771
25771
|
} = props;
|
|
25772
|
-
const titleNode = (0, _getRenderPropValue.getRenderPropValue)(
|
|
25772
|
+
const titleNode = (0, _getRenderPropValue.getRenderPropValue)(title2);
|
|
25773
25773
|
const contentNode = (0, _getRenderPropValue.getRenderPropValue)(content);
|
|
25774
25774
|
const mergedProps = {
|
|
25775
25775
|
...props,
|
|
@@ -25848,7 +25848,7 @@ var require_popover = __commonJS({
|
|
|
25848
25848
|
var InternalPopover = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
25849
25849
|
const {
|
|
25850
25850
|
prefixCls: customizePrefixCls,
|
|
25851
|
-
title,
|
|
25851
|
+
title: title2,
|
|
25852
25852
|
content,
|
|
25853
25853
|
overlayClassName,
|
|
25854
25854
|
placement = "top",
|
|
@@ -25907,7 +25907,7 @@ var require_popover = __commonJS({
|
|
|
25907
25907
|
setOpen(value);
|
|
25908
25908
|
onOpenChange?.(value);
|
|
25909
25909
|
};
|
|
25910
|
-
const titleNode = (0, _getRenderPropValue.getRenderPropValue)(
|
|
25910
|
+
const titleNode = (0, _getRenderPropValue.getRenderPropValue)(title2);
|
|
25911
25911
|
const contentNode = (0, _getRenderPropValue.getRenderPropValue)(content);
|
|
25912
25912
|
return /* @__PURE__ */ React.createElement(_tooltip.default, {
|
|
25913
25913
|
unique: false,
|
|
@@ -26495,7 +26495,7 @@ var require_ScrollNumber = __commonJS({
|
|
|
26495
26495
|
className,
|
|
26496
26496
|
motionClassName,
|
|
26497
26497
|
style,
|
|
26498
|
-
title,
|
|
26498
|
+
title: title2,
|
|
26499
26499
|
show,
|
|
26500
26500
|
component: Component = "sup",
|
|
26501
26501
|
children,
|
|
@@ -26510,7 +26510,7 @@ var require_ScrollNumber = __commonJS({
|
|
|
26510
26510
|
"data-show": show,
|
|
26511
26511
|
style,
|
|
26512
26512
|
className: (0, _clsx.clsx)(prefixCls, className, motionClassName),
|
|
26513
|
-
title
|
|
26513
|
+
title: title2
|
|
26514
26514
|
};
|
|
26515
26515
|
let numberNodes = count;
|
|
26516
26516
|
if (count && Number(count) % 1 === 0) {
|
|
@@ -26919,7 +26919,7 @@ var require_Badge = __commonJS({
|
|
|
26919
26919
|
overflowCount = 99,
|
|
26920
26920
|
dot = false,
|
|
26921
26921
|
size = "medium",
|
|
26922
|
-
title,
|
|
26922
|
+
title: title2,
|
|
26923
26923
|
offset,
|
|
26924
26924
|
style,
|
|
26925
26925
|
className,
|
|
@@ -26998,7 +26998,7 @@ var require_Badge = __commonJS({
|
|
|
26998
26998
|
isDotRef.current = showAsDot;
|
|
26999
26999
|
}
|
|
27000
27000
|
const fallbackTitleNode = (0, _is.isString)(livingCount) || (0, _is.isNumber)(livingCount) ? livingCount : void 0;
|
|
27001
|
-
const titleNode =
|
|
27001
|
+
const titleNode = title2 === null || title2 === false ? void 0 : title2 ?? fallbackTitleNode;
|
|
27002
27002
|
const showStatusTextNode = !isHidden && (text === 0 ? showZero : !!text && text !== true);
|
|
27003
27003
|
const statusTextNode = !showStatusTextNode ? null : /* @__PURE__ */ React.createElement("span", {
|
|
27004
27004
|
className: `${prefixCls}-status-text`
|
|
@@ -28963,7 +28963,7 @@ var require_MenuItem = __commonJS({
|
|
|
28963
28963
|
var LegacyMenuItem = class extends React.Component {
|
|
28964
28964
|
render() {
|
|
28965
28965
|
const {
|
|
28966
|
-
title,
|
|
28966
|
+
title: title2,
|
|
28967
28967
|
attribute,
|
|
28968
28968
|
elementRef,
|
|
28969
28969
|
...restProps
|
|
@@ -28971,7 +28971,7 @@ var require_MenuItem = __commonJS({
|
|
|
28971
28971
|
const passedProps = (0, _util.omit)(restProps, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
28972
28972
|
(0, _util.warning)(!attribute, "`attribute` of Menu.Item is deprecated. Please pass attribute directly.");
|
|
28973
28973
|
return /* @__PURE__ */ React.createElement(_overflow.default.Item, _extends({}, attribute, {
|
|
28974
|
-
title: typeof
|
|
28974
|
+
title: typeof title2 === "string" ? title2 : void 0
|
|
28975
28975
|
}, passedProps, {
|
|
28976
28976
|
ref: elementRef
|
|
28977
28977
|
}));
|
|
@@ -29661,7 +29661,7 @@ var require_SubMenu = __commonJS({
|
|
|
29661
29661
|
className,
|
|
29662
29662
|
styles,
|
|
29663
29663
|
classNames: menuClassNames,
|
|
29664
|
-
title,
|
|
29664
|
+
title: title2,
|
|
29665
29665
|
eventKey,
|
|
29666
29666
|
warnKey,
|
|
29667
29667
|
disabled,
|
|
@@ -29800,7 +29800,7 @@ var require_SubMenu = __commonJS({
|
|
|
29800
29800
|
className: `${subMenuPrefixCls}-title`,
|
|
29801
29801
|
tabIndex: mergedDisabled ? null : -1,
|
|
29802
29802
|
ref: elementRef,
|
|
29803
|
-
title: typeof
|
|
29803
|
+
title: typeof title2 === "string" ? title2 : null,
|
|
29804
29804
|
"data-menu-id": overflowDisabled && domDataId ? null : domDataId,
|
|
29805
29805
|
"aria-expanded": open,
|
|
29806
29806
|
"aria-haspopup": true,
|
|
@@ -29808,7 +29808,7 @@ var require_SubMenu = __commonJS({
|
|
|
29808
29808
|
"aria-disabled": mergedDisabled,
|
|
29809
29809
|
onClick: onInternalTitleClick,
|
|
29810
29810
|
onFocus: onInternalFocus
|
|
29811
|
-
}, activeProps),
|
|
29811
|
+
}, activeProps), title2, expandIconNode);
|
|
29812
29812
|
const triggerModeRef = React.useRef(mode);
|
|
29813
29813
|
if (mode !== "inline" && connectedPath.length > 1) {
|
|
29814
29814
|
triggerModeRef.current = "vertical";
|
|
@@ -30021,7 +30021,7 @@ var require_MenuItemGroup = __commonJS({
|
|
|
30021
30021
|
var InternalMenuItemGroup = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
30022
30022
|
const {
|
|
30023
30023
|
className,
|
|
30024
|
-
title,
|
|
30024
|
+
title: title2,
|
|
30025
30025
|
eventKey,
|
|
30026
30026
|
children,
|
|
30027
30027
|
...restProps
|
|
@@ -30042,8 +30042,8 @@ var require_MenuItemGroup = __commonJS({
|
|
|
30042
30042
|
role: "presentation",
|
|
30043
30043
|
className: (0, _clsx.clsx)(`${groupPrefixCls}-title`, menuClassNames?.listTitle),
|
|
30044
30044
|
style: styles?.listTitle,
|
|
30045
|
-
title: typeof
|
|
30046
|
-
},
|
|
30045
|
+
title: typeof title2 === "string" ? title2 : void 0
|
|
30046
|
+
}, title2), /* @__PURE__ */ React.createElement("ul", {
|
|
30047
30047
|
role: "group",
|
|
30048
30048
|
className: (0, _clsx.clsx)(`${groupPrefixCls}-list`, menuClassNames?.list),
|
|
30049
30049
|
style: styles?.list
|
|
@@ -31351,7 +31351,7 @@ var require_MenuItem2 = __commonJS({
|
|
|
31351
31351
|
className,
|
|
31352
31352
|
children,
|
|
31353
31353
|
icon,
|
|
31354
|
-
title,
|
|
31354
|
+
title: title2,
|
|
31355
31355
|
danger,
|
|
31356
31356
|
extra
|
|
31357
31357
|
} = props;
|
|
@@ -31390,10 +31390,10 @@ var require_MenuItem2 = __commonJS({
|
|
|
31390
31390
|
}
|
|
31391
31391
|
return wrapNode;
|
|
31392
31392
|
};
|
|
31393
|
-
let tooltipTitle =
|
|
31394
|
-
if (typeof
|
|
31393
|
+
let tooltipTitle = title2;
|
|
31394
|
+
if (typeof title2 === "undefined") {
|
|
31395
31395
|
tooltipTitle = firstLevel ? children : "";
|
|
31396
|
-
} else if (
|
|
31396
|
+
} else if (title2 === false) {
|
|
31397
31397
|
tooltipTitle = "";
|
|
31398
31398
|
}
|
|
31399
31399
|
const tooltipConfig = tooltip === false ? void 0 : tooltip;
|
|
@@ -31423,7 +31423,7 @@ var require_MenuItem2 = __commonJS({
|
|
|
31423
31423
|
...firstLevel ? styles?.item : styles?.subMenu?.item,
|
|
31424
31424
|
...props.style
|
|
31425
31425
|
},
|
|
31426
|
-
title: typeof
|
|
31426
|
+
title: typeof title2 === "string" ? title2 : void 0,
|
|
31427
31427
|
itemData: props?.itemData ?? {
|
|
31428
31428
|
...props,
|
|
31429
31429
|
key: props.eventKey
|
|
@@ -32641,7 +32641,7 @@ var require_SubMenu2 = __commonJS({
|
|
|
32641
32641
|
const {
|
|
32642
32642
|
popupClassName,
|
|
32643
32643
|
icon,
|
|
32644
|
-
title,
|
|
32644
|
+
title: title2,
|
|
32645
32645
|
theme: customTheme
|
|
32646
32646
|
} = props;
|
|
32647
32647
|
const context = React.useContext(_MenuContext.default);
|
|
@@ -32655,22 +32655,22 @@ var require_SubMenu2 = __commonJS({
|
|
|
32655
32655
|
const parentPath = (0, _menu.useFullPath)();
|
|
32656
32656
|
let titleNode;
|
|
32657
32657
|
if (!icon) {
|
|
32658
|
-
titleNode = inlineCollapsed && !parentPath.length &&
|
|
32658
|
+
titleNode = inlineCollapsed && !parentPath.length && title2 && typeof title2 === "string" ? /* @__PURE__ */ React.createElement("div", {
|
|
32659
32659
|
className: `${prefixCls}-inline-collapsed-noicon`
|
|
32660
|
-
},
|
|
32660
|
+
}, title2.charAt(0)) : /* @__PURE__ */ React.createElement("span", {
|
|
32661
32661
|
className: `${prefixCls}-title-content`
|
|
32662
|
-
},
|
|
32662
|
+
}, title2);
|
|
32663
32663
|
} else {
|
|
32664
|
-
const titleIsSpan = /* @__PURE__ */ React.isValidElement(
|
|
32664
|
+
const titleIsSpan = /* @__PURE__ */ React.isValidElement(title2) && title2.type === "span";
|
|
32665
32665
|
titleNode = /* @__PURE__ */ React.createElement(React.Fragment, null, (0, _reactNode.cloneElement)(icon, (oriProps) => ({
|
|
32666
32666
|
className: (0, _clsx.clsx)(oriProps.className, `${prefixCls}-item-icon`, classNames?.itemIcon),
|
|
32667
32667
|
style: {
|
|
32668
32668
|
...oriProps.style,
|
|
32669
32669
|
...styles?.itemIcon
|
|
32670
32670
|
}
|
|
32671
|
-
})), titleIsSpan ?
|
|
32671
|
+
})), titleIsSpan ? title2 : /* @__PURE__ */ React.createElement("span", {
|
|
32672
32672
|
className: `${prefixCls}-title-content`
|
|
32673
|
-
},
|
|
32673
|
+
}, title2));
|
|
32674
32674
|
}
|
|
32675
32675
|
const contextValue = React.useMemo(() => ({
|
|
32676
32676
|
...context,
|
|
@@ -33701,12 +33701,12 @@ var require_BreadcrumbItem = __commonJS({
|
|
|
33701
33701
|
...menuProps,
|
|
33702
33702
|
items: items?.map(({
|
|
33703
33703
|
key,
|
|
33704
|
-
title,
|
|
33704
|
+
title: title2,
|
|
33705
33705
|
label,
|
|
33706
33706
|
path,
|
|
33707
33707
|
...itemProps
|
|
33708
33708
|
}, index) => {
|
|
33709
|
-
let mergedLabel = label ??
|
|
33709
|
+
let mergedLabel = label ?? title2;
|
|
33710
33710
|
if (path) {
|
|
33711
33711
|
mergedLabel = /* @__PURE__ */ React.createElement("a", {
|
|
33712
33712
|
href: `${href}${path}`
|
|
@@ -37445,7 +37445,7 @@ var require_PanelBody = __commonJS({
|
|
|
37445
37445
|
rangeStart = (0, _dateUtil.isSame)(generateConfig, locale, currentDate, hoverStart, type);
|
|
37446
37446
|
rangeEnd = (0, _dateUtil.isSame)(generateConfig, locale, currentDate, hoverEnd, type);
|
|
37447
37447
|
}
|
|
37448
|
-
const
|
|
37448
|
+
const title2 = titleFormat ? (0, _dateUtil.formatValue)(currentDate, {
|
|
37449
37449
|
locale,
|
|
37450
37450
|
format: titleFormat,
|
|
37451
37451
|
generateConfig
|
|
@@ -37455,7 +37455,7 @@ var require_PanelBody = __commonJS({
|
|
|
37455
37455
|
}, getCellText(currentDate));
|
|
37456
37456
|
rowNode.push(/* @__PURE__ */ React.createElement("td", {
|
|
37457
37457
|
key: col,
|
|
37458
|
-
title,
|
|
37458
|
+
title: title2,
|
|
37459
37459
|
className: (0, _clsx.clsx)(cellPrefixCls, classNames.item, {
|
|
37460
37460
|
[`${cellPrefixCls}-disabled`]: disabled,
|
|
37461
37461
|
[`${cellPrefixCls}-hover`]: (hoverValue || []).some((date) => (0, _dateUtil.isSame)(generateConfig, locale, currentDate, date, type)),
|
|
@@ -42326,7 +42326,7 @@ var require_lib23 = __commonJS({
|
|
|
42326
42326
|
disabled,
|
|
42327
42327
|
defaultChecked = false,
|
|
42328
42328
|
type = "checkbox",
|
|
42329
|
-
title,
|
|
42329
|
+
title: title2,
|
|
42330
42330
|
onChange,
|
|
42331
42331
|
...inputProps
|
|
42332
42332
|
} = props;
|
|
@@ -42371,7 +42371,7 @@ var require_lib23 = __commonJS({
|
|
|
42371
42371
|
};
|
|
42372
42372
|
return /* @__PURE__ */ React.createElement("span", {
|
|
42373
42373
|
className: classString,
|
|
42374
|
-
title,
|
|
42374
|
+
title: title2,
|
|
42375
42375
|
style,
|
|
42376
42376
|
ref: holderRef
|
|
42377
42377
|
}, /* @__PURE__ */ React.createElement("input", _extends({}, inputProps, {
|
|
@@ -43006,7 +43006,7 @@ var require_radio = __commonJS({
|
|
|
43006
43006
|
rootClassName,
|
|
43007
43007
|
children,
|
|
43008
43008
|
style,
|
|
43009
|
-
title,
|
|
43009
|
+
title: title2,
|
|
43010
43010
|
classNames,
|
|
43011
43011
|
styles,
|
|
43012
43012
|
checked,
|
|
@@ -43059,7 +43059,7 @@ var require_radio = __commonJS({
|
|
|
43059
43059
|
style: mergedStyles.root,
|
|
43060
43060
|
onMouseEnter: props.onMouseEnter,
|
|
43061
43061
|
onMouseLeave: props.onMouseLeave,
|
|
43062
|
-
title,
|
|
43062
|
+
title: title2,
|
|
43063
43063
|
onClick: onLabelClick
|
|
43064
43064
|
}, /* @__PURE__ */ React.createElement(_checkbox.default, {
|
|
43065
43065
|
...radioProps,
|
|
@@ -50275,7 +50275,7 @@ var require_Card = __commonJS({
|
|
|
50275
50275
|
extra,
|
|
50276
50276
|
headStyle = {},
|
|
50277
50277
|
bodyStyle = {},
|
|
50278
|
-
title,
|
|
50278
|
+
title: title2,
|
|
50279
50279
|
loading,
|
|
50280
50280
|
bordered,
|
|
50281
50281
|
variant: customVariant,
|
|
@@ -50360,7 +50360,7 @@ var require_Card = __commonJS({
|
|
|
50360
50360
|
...item
|
|
50361
50361
|
}))
|
|
50362
50362
|
}) : null;
|
|
50363
|
-
if (
|
|
50363
|
+
if (title2 || extra || tabs) {
|
|
50364
50364
|
const headClasses = (0, _clsx.clsx)(`${prefixCls}-head`, mergedClassNames.header);
|
|
50365
50365
|
const titleClasses = (0, _clsx.clsx)(`${prefixCls}-head-title`, mergedClassNames.title);
|
|
50366
50366
|
const extraClasses = (0, _clsx.clsx)(`${prefixCls}-extra`, mergedClassNames.extra);
|
|
@@ -50373,10 +50373,10 @@ var require_Card = __commonJS({
|
|
|
50373
50373
|
style: mergedHeadStyle
|
|
50374
50374
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
50375
50375
|
className: `${prefixCls}-head-wrapper`
|
|
50376
|
-
},
|
|
50376
|
+
}, title2 && /* @__PURE__ */ React.createElement("div", {
|
|
50377
50377
|
className: titleClasses,
|
|
50378
50378
|
style: mergedStyles.title
|
|
50379
|
-
},
|
|
50379
|
+
}, title2), extra && /* @__PURE__ */ React.createElement("div", {
|
|
50380
50380
|
className: extraClasses,
|
|
50381
50381
|
style: mergedStyles.extra
|
|
50382
50382
|
}, extra)), tabs);
|
|
@@ -50448,8 +50448,8 @@ var require_CardMeta = __commonJS({
|
|
|
50448
50448
|
prefixCls: customizePrefixCls,
|
|
50449
50449
|
className,
|
|
50450
50450
|
avatar,
|
|
50451
|
-
title,
|
|
50452
|
-
description,
|
|
50451
|
+
title: title2,
|
|
50452
|
+
description: description2,
|
|
50453
50453
|
style,
|
|
50454
50454
|
classNames: cardMetaClassNames,
|
|
50455
50455
|
styles,
|
|
@@ -50481,14 +50481,14 @@ var require_CardMeta = __commonJS({
|
|
|
50481
50481
|
className: avatarClassNames,
|
|
50482
50482
|
style: mergedStyles.avatar
|
|
50483
50483
|
}, avatar) : null;
|
|
50484
|
-
const titleDom =
|
|
50484
|
+
const titleDom = title2 ? /* @__PURE__ */ React.createElement("div", {
|
|
50485
50485
|
className: titleClassNames,
|
|
50486
50486
|
style: mergedStyles.title
|
|
50487
|
-
},
|
|
50488
|
-
const descriptionDom =
|
|
50487
|
+
}, title2) : null;
|
|
50488
|
+
const descriptionDom = description2 ? /* @__PURE__ */ React.createElement("div", {
|
|
50489
50489
|
className: descriptionClassNames,
|
|
50490
50490
|
style: mergedStyles.description
|
|
50491
|
-
},
|
|
50491
|
+
}, description2) : null;
|
|
50492
50492
|
const MetaDetail = titleDom || descriptionDom ? /* @__PURE__ */ React.createElement("div", {
|
|
50493
50493
|
className: sectionClassNames,
|
|
50494
50494
|
style: mergedStyles.section
|
|
@@ -53958,12 +53958,12 @@ var require_treeUtil2 = __commonJS({
|
|
|
53958
53958
|
}
|
|
53959
53959
|
function fillFieldNames(fieldNames) {
|
|
53960
53960
|
const {
|
|
53961
|
-
title,
|
|
53961
|
+
title: title2,
|
|
53962
53962
|
_title,
|
|
53963
53963
|
key,
|
|
53964
53964
|
children
|
|
53965
53965
|
} = fieldNames || {};
|
|
53966
|
-
const mergedTitle =
|
|
53966
|
+
const mergedTitle = title2 || "title";
|
|
53967
53967
|
return {
|
|
53968
53968
|
title: mergedTitle,
|
|
53969
53969
|
_title: _title || [mergedTitle],
|
|
@@ -54503,7 +54503,7 @@ var require_TreeNode = __commonJS({
|
|
|
54503
54503
|
}, [context.dropPosition, context.dropLevelOffset, context.indent, context.prefixCls, context.direction, context.draggable, context.dragOverNodeKey, context.dropIndicatorRender]);
|
|
54504
54504
|
const selectorNode = _react.default.useMemo(() => {
|
|
54505
54505
|
const {
|
|
54506
|
-
title = defaultTitle
|
|
54506
|
+
title: title2 = defaultTitle
|
|
54507
54507
|
} = props;
|
|
54508
54508
|
const wrapClass = `${context.prefixCls}-node-content-wrapper`;
|
|
54509
54509
|
let $icon;
|
|
@@ -54517,16 +54517,16 @@ var require_TreeNode = __commonJS({
|
|
|
54517
54517
|
$icon = iconNode;
|
|
54518
54518
|
}
|
|
54519
54519
|
let titleNode;
|
|
54520
|
-
if (typeof
|
|
54521
|
-
titleNode =
|
|
54520
|
+
if (typeof title2 === "function") {
|
|
54521
|
+
titleNode = title2(data);
|
|
54522
54522
|
} else if (context.titleRender) {
|
|
54523
54523
|
titleNode = context.titleRender(data);
|
|
54524
54524
|
} else {
|
|
54525
|
-
titleNode =
|
|
54525
|
+
titleNode = title2;
|
|
54526
54526
|
}
|
|
54527
54527
|
return /* @__PURE__ */ _react.default.createElement("span", {
|
|
54528
54528
|
ref: selectHandleRef,
|
|
54529
|
-
title: typeof
|
|
54529
|
+
title: typeof title2 === "string" ? title2 : "",
|
|
54530
54530
|
className: (0, _clsx.clsx)(wrapClass, `${wrapClass}-${nodeState || "normal"}`, {
|
|
54531
54531
|
[`${context.prefixCls}-node-selected`]: !isDisabled && (selected || dragNodeHighlight)
|
|
54532
54532
|
}),
|
|
@@ -54768,7 +54768,7 @@ var require_MotionTreeNode = __commonJS({
|
|
|
54768
54768
|
data: {
|
|
54769
54769
|
...restProps
|
|
54770
54770
|
},
|
|
54771
|
-
title,
|
|
54771
|
+
title: title2,
|
|
54772
54772
|
key,
|
|
54773
54773
|
isStart,
|
|
54774
54774
|
isEnd
|
|
@@ -54776,7 +54776,7 @@ var require_MotionTreeNode = __commonJS({
|
|
|
54776
54776
|
delete restProps.children;
|
|
54777
54777
|
const treeNodeProps = (0, _treeUtil.getTreeNodeProps)(key, treeNodeRequiredProps);
|
|
54778
54778
|
return /* @__PURE__ */ React.createElement(_TreeNode.default, _extends({}, restProps, treeNodeProps, {
|
|
54779
|
-
title,
|
|
54779
|
+
title: title2,
|
|
54780
54780
|
active,
|
|
54781
54781
|
data: treeNode.data,
|
|
54782
54782
|
key,
|
|
@@ -55087,7 +55087,7 @@ var require_NodeList = __commonJS({
|
|
|
55087
55087
|
data: {
|
|
55088
55088
|
...restProps
|
|
55089
55089
|
},
|
|
55090
|
-
title,
|
|
55090
|
+
title: title2,
|
|
55091
55091
|
key,
|
|
55092
55092
|
isStart,
|
|
55093
55093
|
isEnd
|
|
@@ -55097,7 +55097,7 @@ var require_NodeList = __commonJS({
|
|
|
55097
55097
|
delete restProps.children;
|
|
55098
55098
|
const treeNodeProps = (0, _treeUtil.getTreeNodeProps)(mergedKey, treeNodeRequiredProps);
|
|
55099
55099
|
return /* @__PURE__ */ React.createElement(_MotionTreeNode.default, _extends({}, restProps, treeNodeProps, {
|
|
55100
|
-
title,
|
|
55100
|
+
title: title2,
|
|
55101
55101
|
active: !!activeItem && key === activeItem.key,
|
|
55102
55102
|
pos,
|
|
55103
55103
|
data: treeNode.data,
|
|
@@ -57471,11 +57471,11 @@ var require_Column = __commonJS({
|
|
|
57471
57471
|
onSelect(fullPath, isMergedLeaf);
|
|
57472
57472
|
}
|
|
57473
57473
|
};
|
|
57474
|
-
let
|
|
57474
|
+
let title2;
|
|
57475
57475
|
if (typeof option.title === "string") {
|
|
57476
|
-
|
|
57476
|
+
title2 = option.title;
|
|
57477
57477
|
} else if (typeof label === "string") {
|
|
57478
|
-
|
|
57478
|
+
title2 = label;
|
|
57479
57479
|
}
|
|
57480
57480
|
return /* @__PURE__ */ React.createElement("li", _extends({
|
|
57481
57481
|
key: fullPathKey
|
|
@@ -57491,7 +57491,7 @@ var require_Column = __commonJS({
|
|
|
57491
57491
|
...styles?.popup?.listItem
|
|
57492
57492
|
},
|
|
57493
57493
|
role: "menuitemcheckbox",
|
|
57494
|
-
title,
|
|
57494
|
+
title: title2,
|
|
57495
57495
|
"aria-checked": checked,
|
|
57496
57496
|
"data-path-key": fullPathKey,
|
|
57497
57497
|
onClick: () => {
|
|
@@ -60666,7 +60666,7 @@ var require_lib28 = __commonJS({
|
|
|
60666
60666
|
disabled,
|
|
60667
60667
|
checked,
|
|
60668
60668
|
label,
|
|
60669
|
-
title,
|
|
60669
|
+
title: title2,
|
|
60670
60670
|
value,
|
|
60671
60671
|
name,
|
|
60672
60672
|
onChange,
|
|
@@ -60702,7 +60702,7 @@ var require_lib28 = __commonJS({
|
|
|
60702
60702
|
onKeyUp
|
|
60703
60703
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
60704
60704
|
className: (0, _clsx.clsx)(`${prefixCls}-item-label`, segmentedClassNames?.label),
|
|
60705
|
-
title,
|
|
60705
|
+
title: title2,
|
|
60706
60706
|
style: styles?.label
|
|
60707
60707
|
}, label));
|
|
60708
60708
|
return itemRender(itemContent, {
|
|
@@ -69828,7 +69828,7 @@ var require_descriptions = __commonJS({
|
|
|
69828
69828
|
var Descriptions = /* @__PURE__ */ React.forwardRef((props, ref) => {
|
|
69829
69829
|
const {
|
|
69830
69830
|
prefixCls: customizePrefixCls,
|
|
69831
|
-
title,
|
|
69831
|
+
title: title2,
|
|
69832
69832
|
extra,
|
|
69833
69833
|
column,
|
|
69834
69834
|
colon = true,
|
|
@@ -69912,13 +69912,13 @@ var require_descriptions = __commonJS({
|
|
|
69912
69912
|
}, className, rootClassName, hashId, cssVarCls),
|
|
69913
69913
|
style: mergedStyles.root,
|
|
69914
69914
|
...restProps
|
|
69915
|
-
}, (
|
|
69915
|
+
}, (title2 || extra) && /* @__PURE__ */ React.createElement("div", {
|
|
69916
69916
|
className: (0, _clsx.clsx)(`${prefixCls}-header`, mergedClassNames.header),
|
|
69917
69917
|
style: mergedStyles.header
|
|
69918
|
-
},
|
|
69918
|
+
}, title2 && /* @__PURE__ */ React.createElement("div", {
|
|
69919
69919
|
className: (0, _clsx.clsx)(`${prefixCls}-title`, mergedClassNames.title),
|
|
69920
69920
|
style: mergedStyles.title
|
|
69921
|
-
},
|
|
69921
|
+
}, title2), extra && /* @__PURE__ */ React.createElement("div", {
|
|
69922
69922
|
className: (0, _clsx.clsx)(`${prefixCls}-extra`, mergedClassNames.extra),
|
|
69923
69923
|
style: mergedStyles.extra
|
|
69924
69924
|
}, extra)), /* @__PURE__ */ React.createElement("div", {
|
|
@@ -70702,7 +70702,7 @@ var require_DrawerPanel2 = __commonJS({
|
|
|
70702
70702
|
const {
|
|
70703
70703
|
prefixCls,
|
|
70704
70704
|
ariaId,
|
|
70705
|
-
title,
|
|
70705
|
+
title: title2,
|
|
70706
70706
|
footer,
|
|
70707
70707
|
extra,
|
|
70708
70708
|
closable,
|
|
@@ -70753,7 +70753,7 @@ var require_DrawerPanel2 = __commonJS({
|
|
|
70753
70753
|
disabled: closeBtnIsDisabled
|
|
70754
70754
|
});
|
|
70755
70755
|
const renderHeader = () => {
|
|
70756
|
-
if (!
|
|
70756
|
+
if (!title2 && !mergedClosable) {
|
|
70757
70757
|
return null;
|
|
70758
70758
|
}
|
|
70759
70759
|
return /* @__PURE__ */ React.createElement("div", {
|
|
@@ -70762,15 +70762,15 @@ var require_DrawerPanel2 = __commonJS({
|
|
|
70762
70762
|
...headerStyle
|
|
70763
70763
|
},
|
|
70764
70764
|
className: (0, _clsx.clsx)(`${prefixCls}-header`, mergedClassNames.header, {
|
|
70765
|
-
[`${prefixCls}-header-close-only`]: mergedClosable && !
|
|
70765
|
+
[`${prefixCls}-header-close-only`]: mergedClosable && !title2 && !extra
|
|
70766
70766
|
})
|
|
70767
70767
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
70768
70768
|
className: `${prefixCls}-header-title`
|
|
70769
|
-
}, closablePlacement === "start" && mergedCloseButton,
|
|
70769
|
+
}, closablePlacement === "start" && mergedCloseButton, title2 && /* @__PURE__ */ React.createElement("div", {
|
|
70770
70770
|
className: (0, _clsx.clsx)(`${prefixCls}-title`, mergedClassNames.title),
|
|
70771
70771
|
style: mergedStyles.title,
|
|
70772
70772
|
id: ariaId
|
|
70773
|
-
},
|
|
70773
|
+
}, title2)), extra && /* @__PURE__ */ React.createElement("div", {
|
|
70774
70774
|
className: (0, _clsx.clsx)(`${prefixCls}-extra`, mergedClassNames.extra),
|
|
70775
70775
|
style: mergedStyles.extra
|
|
70776
70776
|
}, extra), closablePlacement === "end" && mergedCloseButton);
|
|
@@ -71814,7 +71814,7 @@ var require_dropdown_button = __commonJS({
|
|
|
71814
71814
|
getPopupContainer,
|
|
71815
71815
|
href,
|
|
71816
71816
|
icon = /* @__PURE__ */ React.createElement(_EllipsisOutlined.default, null),
|
|
71817
|
-
title,
|
|
71817
|
+
title: title2,
|
|
71818
71818
|
buttonsRender = (buttons) => buttons,
|
|
71819
71819
|
mouseEnterDelay,
|
|
71820
71820
|
mouseLeaveDelay,
|
|
@@ -71877,7 +71877,7 @@ var require_dropdown_button = __commonJS({
|
|
|
71877
71877
|
onClick,
|
|
71878
71878
|
htmlType,
|
|
71879
71879
|
href,
|
|
71880
|
-
title
|
|
71880
|
+
title: title2
|
|
71881
71881
|
}, children);
|
|
71882
71882
|
const rightButton = /* @__PURE__ */ React.createElement(_button.default, {
|
|
71883
71883
|
type,
|
|
@@ -72586,7 +72586,7 @@ var require_FloatButton = __commonJS({
|
|
|
72586
72586
|
type = "default",
|
|
72587
72587
|
shape = "circle",
|
|
72588
72588
|
icon,
|
|
72589
|
-
description,
|
|
72589
|
+
description: description2,
|
|
72590
72590
|
content,
|
|
72591
72591
|
tooltip,
|
|
72592
72592
|
badge = {},
|
|
@@ -72609,7 +72609,7 @@ var require_FloatButton = __commonJS({
|
|
|
72609
72609
|
} = groupContext || {};
|
|
72610
72610
|
const mergedShape = contextShape || shape;
|
|
72611
72611
|
const mergedIndividual = contextIndividual ?? true;
|
|
72612
|
-
const mergedContent = content ??
|
|
72612
|
+
const mergedContent = content ?? description2;
|
|
72613
72613
|
const mergedProps = {
|
|
72614
72614
|
...props,
|
|
72615
72615
|
type,
|
|
@@ -72640,7 +72640,7 @@ var require_FloatButton = __commonJS({
|
|
|
72640
72640
|
if (process.env.NODE_ENV !== "production") {
|
|
72641
72641
|
const warning = (0, _warning.devUseWarning)("FloatButton");
|
|
72642
72642
|
process.env.NODE_ENV !== "production" ? warning(!(mergedShape === "circle" && mergedContent), "usage", "supported only when `shape` is `square`. Due to narrow space for text, short sentence is recommended.") : void 0;
|
|
72643
|
-
warning.deprecated(!
|
|
72643
|
+
warning.deprecated(!description2, "description", "content");
|
|
72644
72644
|
}
|
|
72645
72645
|
let node = /* @__PURE__ */ _react.default.createElement(_Button.default, {
|
|
72646
72646
|
...restProps,
|
|
@@ -82193,7 +82193,7 @@ var require_spin = __commonJS({
|
|
|
82193
82193
|
rootClassName,
|
|
82194
82194
|
size,
|
|
82195
82195
|
tip,
|
|
82196
|
-
description,
|
|
82196
|
+
description: description2,
|
|
82197
82197
|
wrapperClassName,
|
|
82198
82198
|
style,
|
|
82199
82199
|
children,
|
|
@@ -82230,7 +82230,7 @@ var require_spin = __commonJS({
|
|
|
82230
82230
|
setSpinning(false);
|
|
82231
82231
|
}, [delay, customSpinning]);
|
|
82232
82232
|
const mergedSize = (0, _useSize.default)((ctx) => size ?? ctx);
|
|
82233
|
-
const mergedDescription =
|
|
82233
|
+
const mergedDescription = description2 ?? tip;
|
|
82234
82234
|
const mergedProps = {
|
|
82235
82235
|
...props,
|
|
82236
82236
|
size: mergedSize,
|
|
@@ -82347,8 +82347,8 @@ var require_Item5 = __commonJS({
|
|
|
82347
82347
|
prefixCls: customizePrefixCls,
|
|
82348
82348
|
className,
|
|
82349
82349
|
avatar,
|
|
82350
|
-
title,
|
|
82351
|
-
description,
|
|
82350
|
+
title: title2,
|
|
82351
|
+
description: description2,
|
|
82352
82352
|
...others
|
|
82353
82353
|
} = props;
|
|
82354
82354
|
const {
|
|
@@ -82362,18 +82362,18 @@ var require_Item5 = __commonJS({
|
|
|
82362
82362
|
}));
|
|
82363
82363
|
const content = /* @__PURE__ */ _react.default.createElement("div", {
|
|
82364
82364
|
className: `${prefixCls}-item-meta-content`
|
|
82365
|
-
},
|
|
82365
|
+
}, title2 && /* @__PURE__ */ _react.default.createElement("h4", {
|
|
82366
82366
|
className: `${prefixCls}-item-meta-title`
|
|
82367
|
-
},
|
|
82367
|
+
}, title2), description2 && /* @__PURE__ */ _react.default.createElement("div", {
|
|
82368
82368
|
className: `${prefixCls}-item-meta-description`
|
|
82369
|
-
},
|
|
82369
|
+
}, description2));
|
|
82370
82370
|
return /* @__PURE__ */ _react.default.createElement("div", {
|
|
82371
82371
|
ref: nativeElementRef,
|
|
82372
82372
|
...others,
|
|
82373
82373
|
className: classString
|
|
82374
82374
|
}, avatar && /* @__PURE__ */ _react.default.createElement("div", {
|
|
82375
82375
|
className: `${prefixCls}-item-meta-avatar`
|
|
82376
|
-
}, avatar), (
|
|
82376
|
+
}, avatar), (title2 || description2) && content);
|
|
82377
82377
|
});
|
|
82378
82378
|
var InternalItem = /* @__PURE__ */ _react.default.forwardRef((props, ref) => {
|
|
82379
82379
|
const {
|
|
@@ -86190,7 +86190,7 @@ var require_PurePanel7 = __commonJS({
|
|
|
86190
86190
|
closeIcon,
|
|
86191
86191
|
closable,
|
|
86192
86192
|
type,
|
|
86193
|
-
title,
|
|
86193
|
+
title: title2,
|
|
86194
86194
|
children,
|
|
86195
86195
|
footer,
|
|
86196
86196
|
style,
|
|
@@ -86234,7 +86234,7 @@ var require_PurePanel7 = __commonJS({
|
|
|
86234
86234
|
} else {
|
|
86235
86235
|
additionalProps = {
|
|
86236
86236
|
closable: closable ?? true,
|
|
86237
|
-
title,
|
|
86237
|
+
title: title2,
|
|
86238
86238
|
footer: footer !== null && /* @__PURE__ */ React.createElement(_shared.Footer, {
|
|
86239
86239
|
...props
|
|
86240
86240
|
}),
|
|
@@ -86344,11 +86344,11 @@ var require_PureList2 = __commonJS({
|
|
|
86344
86344
|
const configList = items.map((item) => {
|
|
86345
86345
|
const {
|
|
86346
86346
|
actions,
|
|
86347
|
-
description,
|
|
86347
|
+
description: description2,
|
|
86348
86348
|
duration,
|
|
86349
86349
|
key,
|
|
86350
86350
|
showProgress,
|
|
86351
|
-
title,
|
|
86351
|
+
title: title2,
|
|
86352
86352
|
type
|
|
86353
86353
|
} = item;
|
|
86354
86354
|
const typeIconCls = `${noticePrefixCls}-icon-${type}`;
|
|
@@ -86358,11 +86358,11 @@ var require_PureList2 = __commonJS({
|
|
|
86358
86358
|
closable: {
|
|
86359
86359
|
closeIcon: (0, _PurePanel.getCloseIcon)(noticePrefixCls)
|
|
86360
86360
|
},
|
|
86361
|
-
description,
|
|
86361
|
+
description: description2,
|
|
86362
86362
|
duration,
|
|
86363
86363
|
icon: _PurePanel.TypeIcon[type],
|
|
86364
86364
|
showProgress,
|
|
86365
|
-
title,
|
|
86365
|
+
title: title2,
|
|
86366
86366
|
className: `${noticePrefixCls}-${type}`,
|
|
86367
86367
|
classNames: {
|
|
86368
86368
|
icon: typeIconCls
|
|
@@ -86700,8 +86700,8 @@ var require_PurePanel8 = __commonJS({
|
|
|
86700
86700
|
prefixCls,
|
|
86701
86701
|
okButtonProps,
|
|
86702
86702
|
cancelButtonProps,
|
|
86703
|
-
title,
|
|
86704
|
-
description,
|
|
86703
|
+
title: title2,
|
|
86704
|
+
description: description2,
|
|
86705
86705
|
cancelText,
|
|
86706
86706
|
okText,
|
|
86707
86707
|
okType = "primary",
|
|
@@ -86718,8 +86718,8 @@ var require_PurePanel8 = __commonJS({
|
|
|
86718
86718
|
getPrefixCls
|
|
86719
86719
|
} = React.useContext(_configProvider.ConfigContext);
|
|
86720
86720
|
const [contextLocale] = (0, _locale.useLocale)("Popconfirm", _en_US.default.Popconfirm);
|
|
86721
|
-
const titleNode = (0, _getRenderPropValue.getRenderPropValue)(
|
|
86722
|
-
const descriptionNode = (0, _getRenderPropValue.getRenderPropValue)(
|
|
86721
|
+
const titleNode = (0, _getRenderPropValue.getRenderPropValue)(title2);
|
|
86722
|
+
const descriptionNode = (0, _getRenderPropValue.getRenderPropValue)(description2);
|
|
86723
86723
|
return /* @__PURE__ */ React.createElement("div", {
|
|
86724
86724
|
className: `${prefixCls}-inner-content`,
|
|
86725
86725
|
onClick: onPopupClick
|
|
@@ -89602,7 +89602,7 @@ var require_QRCodeSVG = __commonJS({
|
|
|
89602
89602
|
fgColor = _utils.DEFAULT_FRONT_COLOR,
|
|
89603
89603
|
includeMargin = _utils.DEFAULT_NEED_MARGIN,
|
|
89604
89604
|
minVersion = _utils.DEFAULT_MINVERSION,
|
|
89605
|
-
title,
|
|
89605
|
+
title: title2,
|
|
89606
89606
|
marginSize,
|
|
89607
89607
|
imageSettings,
|
|
89608
89608
|
boostLevel,
|
|
@@ -89647,7 +89647,7 @@ var require_QRCodeSVG = __commonJS({
|
|
|
89647
89647
|
viewBox: `0 0 ${numCells} ${numCells}`,
|
|
89648
89648
|
ref,
|
|
89649
89649
|
role: "img"
|
|
89650
|
-
}, otherProps), !!
|
|
89650
|
+
}, otherProps), !!title2 && /* @__PURE__ */ _react.default.createElement("title", null, title2), /* @__PURE__ */ _react.default.createElement("path", {
|
|
89651
89651
|
fill: bgColor,
|
|
89652
89652
|
d: `M0,0 h${numCells}v${numCells}H0z`,
|
|
89653
89653
|
shapeRendering: "crispEdges"
|
|
@@ -91713,7 +91713,7 @@ var require_result = __commonJS({
|
|
|
91713
91713
|
className: customizeClassName,
|
|
91714
91714
|
rootClassName,
|
|
91715
91715
|
subTitle,
|
|
91716
|
-
title,
|
|
91716
|
+
title: title2,
|
|
91717
91717
|
style,
|
|
91718
91718
|
children,
|
|
91719
91719
|
status = "info",
|
|
@@ -91773,10 +91773,10 @@ var require_result = __commonJS({
|
|
|
91773
91773
|
style: mergedStyles.icon,
|
|
91774
91774
|
status,
|
|
91775
91775
|
icon
|
|
91776
|
-
}), (0, _is.isReactRenderable)(
|
|
91776
|
+
}), (0, _is.isReactRenderable)(title2) && /* @__PURE__ */ React.createElement("div", {
|
|
91777
91777
|
className: titleClassNames,
|
|
91778
91778
|
style: mergedStyles.title
|
|
91779
|
-
},
|
|
91779
|
+
}, title2), (0, _is.isReactRenderable)(subTitle) && /* @__PURE__ */ React.createElement("div", {
|
|
91780
91780
|
className: subTitleClassNames,
|
|
91781
91781
|
style: mergedStyles.subTitle
|
|
91782
91782
|
}, subTitle), /* @__PURE__ */ React.createElement(Extra, {
|
|
@@ -93229,7 +93229,7 @@ var require_Statistic = __commonJS({
|
|
|
93229
93229
|
style,
|
|
93230
93230
|
valueStyle,
|
|
93231
93231
|
value = 0,
|
|
93232
|
-
title,
|
|
93232
|
+
title: title2,
|
|
93233
93233
|
valueRender,
|
|
93234
93234
|
prefix,
|
|
93235
93235
|
suffix,
|
|
@@ -93308,13 +93308,13 @@ var require_Statistic = __commonJS({
|
|
|
93308
93308
|
ref: internalRef,
|
|
93309
93309
|
onMouseEnter,
|
|
93310
93310
|
onMouseLeave
|
|
93311
|
-
},
|
|
93311
|
+
}, title2 && /* @__PURE__ */ React.createElement("div", {
|
|
93312
93312
|
className: headerClassNames,
|
|
93313
93313
|
style: mergedStyles.header
|
|
93314
93314
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
93315
93315
|
className: titleClassNames,
|
|
93316
93316
|
style: mergedStyles.title
|
|
93317
|
-
},
|
|
93317
|
+
}, title2)), /* @__PURE__ */ React.createElement(_skeleton.default, {
|
|
93318
93318
|
paragraph: false,
|
|
93319
93319
|
loading,
|
|
93320
93320
|
className: `${prefixCls}-skeleton`,
|
|
@@ -93800,10 +93800,10 @@ var require_Step = __commonJS({
|
|
|
93800
93800
|
} = React.useContext(_Context.StepsContext);
|
|
93801
93801
|
const {
|
|
93802
93802
|
onClick: onItemClick,
|
|
93803
|
-
title,
|
|
93803
|
+
title: title2,
|
|
93804
93804
|
subTitle,
|
|
93805
93805
|
content,
|
|
93806
|
-
description,
|
|
93806
|
+
description: description2,
|
|
93807
93807
|
disabled,
|
|
93808
93808
|
icon,
|
|
93809
93809
|
status,
|
|
@@ -93813,7 +93813,7 @@ var require_Step = __commonJS({
|
|
|
93813
93813
|
styles: itemStyles = {},
|
|
93814
93814
|
...restItemProps
|
|
93815
93815
|
} = data;
|
|
93816
|
-
const mergedContent = content ??
|
|
93816
|
+
const mergedContent = content ?? description2;
|
|
93817
93817
|
const renderInfo = {
|
|
93818
93818
|
item: {
|
|
93819
93819
|
...data,
|
|
@@ -93841,7 +93841,7 @@ var require_Step = __commonJS({
|
|
|
93841
93841
|
};
|
|
93842
93842
|
}
|
|
93843
93843
|
const mergedStatus = status || "wait";
|
|
93844
|
-
const hasTitle = hasContent(
|
|
93844
|
+
const hasTitle = hasContent(title2);
|
|
93845
93845
|
const hasSubTitle = hasContent(subTitle);
|
|
93846
93846
|
const classString = (0, _clsx.clsx)(itemCls, `${itemCls}-${mergedStatus}`, {
|
|
93847
93847
|
[`${itemCls}-custom`]: icon,
|
|
@@ -93887,7 +93887,7 @@ var require_Step = __commonJS({
|
|
|
93887
93887
|
...styles.itemTitle,
|
|
93888
93888
|
...itemStyles.title
|
|
93889
93889
|
}
|
|
93890
|
-
},
|
|
93890
|
+
}, title2), hasSubTitle && /* @__PURE__ */ React.createElement("div", {
|
|
93891
93891
|
title: typeof subTitle === "string" ? subTitle : void 0,
|
|
93892
93892
|
className: (0, _clsx.clsx)(`${itemCls}-subtitle`, classNames.itemSubtitle, itemClassNames.subtitle),
|
|
93893
93893
|
style: {
|
|
@@ -97101,18 +97101,18 @@ var require_Cell2 = __commonJS({
|
|
|
97101
97101
|
rowType,
|
|
97102
97102
|
children
|
|
97103
97103
|
}) => {
|
|
97104
|
-
let
|
|
97104
|
+
let title2;
|
|
97105
97105
|
const ellipsisConfig = ellipsis === true ? {
|
|
97106
97106
|
showTitle: true
|
|
97107
97107
|
} : ellipsis;
|
|
97108
97108
|
if (ellipsisConfig && (ellipsisConfig.showTitle || rowType === "header")) {
|
|
97109
97109
|
if (typeof children === "string" || typeof children === "number") {
|
|
97110
|
-
|
|
97110
|
+
title2 = children.toString();
|
|
97111
97111
|
} else if (/* @__PURE__ */ React.isValidElement(children) && typeof children.props?.children === "string") {
|
|
97112
|
-
|
|
97112
|
+
title2 = children.props?.children;
|
|
97113
97113
|
}
|
|
97114
97114
|
}
|
|
97115
|
-
return
|
|
97115
|
+
return title2;
|
|
97116
97116
|
};
|
|
97117
97117
|
var Cell = (props) => {
|
|
97118
97118
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -97206,7 +97206,7 @@ var require_Cell2 = __commonJS({
|
|
|
97206
97206
|
if (mergedColSpan === 0 || mergedRowSpan === 0) {
|
|
97207
97207
|
return null;
|
|
97208
97208
|
}
|
|
97209
|
-
const
|
|
97209
|
+
const title2 = additionalProps.title ?? getTitleFromCellRenderChildren({
|
|
97210
97210
|
rowType,
|
|
97211
97211
|
ellipsis,
|
|
97212
97212
|
children: childNode
|
|
@@ -97249,7 +97249,7 @@ var require_Cell2 = __commonJS({
|
|
|
97249
97249
|
return /* @__PURE__ */ React.createElement(Component, _extends({}, legacyCellProps, additionalProps, {
|
|
97250
97250
|
className: mergedClassName,
|
|
97251
97251
|
style: mergedStyle,
|
|
97252
|
-
title,
|
|
97252
|
+
title: title2,
|
|
97253
97253
|
scope,
|
|
97254
97254
|
onMouseEnter: rowHoverable ? onMouseEnter : void 0,
|
|
97255
97255
|
onMouseLeave: rowHoverable ? onMouseLeave : void 0,
|
|
@@ -98164,7 +98164,7 @@ var require_MeasureCell = __commonJS({
|
|
|
98164
98164
|
const {
|
|
98165
98165
|
columnKey,
|
|
98166
98166
|
onColumnResize,
|
|
98167
|
-
title
|
|
98167
|
+
title: title2
|
|
98168
98168
|
} = props;
|
|
98169
98169
|
const cellRef = React.useRef(null);
|
|
98170
98170
|
(0, _util.useLayoutEffect)(() => {
|
|
@@ -98189,7 +98189,7 @@ var require_MeasureCell = __commonJS({
|
|
|
98189
98189
|
overflow: "hidden",
|
|
98190
98190
|
fontWeight: "bold"
|
|
98191
98191
|
}
|
|
98192
|
-
},
|
|
98192
|
+
}, title2 || "\xA0")));
|
|
98193
98193
|
};
|
|
98194
98194
|
var _default = exports.default = MeasureCell;
|
|
98195
98195
|
}
|
|
@@ -99961,7 +99961,7 @@ var require_Table = __commonJS({
|
|
|
99961
99961
|
tableLayout,
|
|
99962
99962
|
direction,
|
|
99963
99963
|
// Additional Part
|
|
99964
|
-
title,
|
|
99964
|
+
title: title2,
|
|
99965
99965
|
footer,
|
|
99966
99966
|
summary,
|
|
99967
99967
|
caption,
|
|
@@ -100410,10 +100410,10 @@ var require_Table = __commonJS({
|
|
|
100410
100410
|
style: tableStyle,
|
|
100411
100411
|
id,
|
|
100412
100412
|
ref: fullTableRef
|
|
100413
|
-
}, dataProps),
|
|
100413
|
+
}, dataProps), title2 && /* @__PURE__ */ React.createElement(_Panel.default, {
|
|
100414
100414
|
className: (0, _clsx.clsx)(`${prefixCls}-title`, classNames?.title),
|
|
100415
100415
|
style: styles?.title
|
|
100416
|
-
},
|
|
100416
|
+
}, title2(mergedData)), /* @__PURE__ */ React.createElement("div", {
|
|
100417
100417
|
ref: scrollBodyContainerRef,
|
|
100418
100418
|
className: (0, _clsx.clsx)(`${prefixCls}-container`, classNames?.section),
|
|
100419
100419
|
style: styles?.section
|
|
@@ -101692,7 +101692,7 @@ var require_useSelection = __commonJS({
|
|
|
101692
101692
|
setSelectedKeys(keys, "all");
|
|
101693
101693
|
updatePrevSelectedIndex(null);
|
|
101694
101694
|
};
|
|
101695
|
-
let
|
|
101695
|
+
let title2;
|
|
101696
101696
|
let columnTitleCheckbox;
|
|
101697
101697
|
if (selectionType !== "radio") {
|
|
101698
101698
|
let customizeSelections;
|
|
@@ -101757,7 +101757,7 @@ var require_useSelection = __commonJS({
|
|
|
101757
101757
|
disabled: disabled ?? (flattedData.length === 0 || allDisabled),
|
|
101758
101758
|
skipGroup: true
|
|
101759
101759
|
});
|
|
101760
|
-
|
|
101760
|
+
title2 = !hideSelectAll && /* @__PURE__ */ React.createElement("div", {
|
|
101761
101761
|
className: `${prefixCls}-selection`
|
|
101762
101762
|
}, columnTitleCheckbox, customizeSelections);
|
|
101763
101763
|
}
|
|
@@ -101900,7 +101900,7 @@ var require_useSelection = __commonJS({
|
|
|
101900
101900
|
});
|
|
101901
101901
|
const renderColumnTitle = () => {
|
|
101902
101902
|
if (!rowSelection?.columnTitle) {
|
|
101903
|
-
return
|
|
101903
|
+
return title2;
|
|
101904
101904
|
}
|
|
101905
101905
|
if ((0, _is.isFunction)(rowSelection.columnTitle)) {
|
|
101906
101906
|
return rowSelection.columnTitle(columnTitleCheckbox);
|
|
@@ -102088,15 +102088,15 @@ var require_util24 = __commonJS({
|
|
|
102088
102088
|
function getColumnPos(index, pos) {
|
|
102089
102089
|
return pos ? `${pos}-${index}` : `${index}`;
|
|
102090
102090
|
}
|
|
102091
|
-
var renderColumnTitle = (
|
|
102092
|
-
if ((0, _is.isFunction)(
|
|
102093
|
-
return
|
|
102091
|
+
var renderColumnTitle = (title2, props) => {
|
|
102092
|
+
if ((0, _is.isFunction)(title2)) {
|
|
102093
|
+
return title2(props);
|
|
102094
102094
|
}
|
|
102095
|
-
return
|
|
102095
|
+
return title2;
|
|
102096
102096
|
};
|
|
102097
102097
|
exports.renderColumnTitle = renderColumnTitle;
|
|
102098
|
-
var safeColumnTitle = (
|
|
102099
|
-
const result = renderColumnTitle(
|
|
102098
|
+
var safeColumnTitle = (title2, props) => {
|
|
102099
|
+
const result = renderColumnTitle(title2, props);
|
|
102100
102100
|
if ((0, _is.isPlainObject)(result) || Array.isArray(result)) {
|
|
102101
102101
|
return "";
|
|
102102
102102
|
}
|
|
@@ -106929,7 +106929,7 @@ var require_InternalTable = __commonJS({
|
|
|
106929
106929
|
target: "full-header"
|
|
106930
106930
|
},
|
|
106931
106931
|
virtual,
|
|
106932
|
-
title,
|
|
106932
|
+
title: title2,
|
|
106933
106933
|
showHeader
|
|
106934
106934
|
} = props;
|
|
106935
106935
|
const warning = (0, _warning.devUseWarning)("Table");
|
|
@@ -107281,7 +107281,7 @@ var require_InternalTable = __commonJS({
|
|
|
107281
107281
|
[`${prefixCls}-small`]: mergedSize === "small",
|
|
107282
107282
|
[`${prefixCls}-bordered`]: bordered,
|
|
107283
107283
|
[`${prefixCls}-empty`]: rawData.length === 0,
|
|
107284
|
-
[`${prefixCls}-no-header`]: !
|
|
107284
|
+
[`${prefixCls}-no-header`]: !title2 && showHeader === false
|
|
107285
107285
|
}, cssVarCls, rootCls, hashId),
|
|
107286
107286
|
data: pageData,
|
|
107287
107287
|
rowKey: getRowKey,
|
|
@@ -108823,7 +108823,7 @@ var require_useItems5 = __commonJS({
|
|
|
108823
108823
|
const {
|
|
108824
108824
|
label,
|
|
108825
108825
|
children: children2,
|
|
108826
|
-
title,
|
|
108826
|
+
title: title2,
|
|
108827
108827
|
content,
|
|
108828
108828
|
color,
|
|
108829
108829
|
className,
|
|
@@ -108855,7 +108855,7 @@ var require_useItems5 = __commonJS({
|
|
|
108855
108855
|
}
|
|
108856
108856
|
return {
|
|
108857
108857
|
...restProps,
|
|
108858
|
-
title:
|
|
108858
|
+
title: title2 ?? label,
|
|
108859
108859
|
content: content ?? children2,
|
|
108860
108860
|
style: mergedStyle,
|
|
108861
108861
|
className: mergedClassName,
|
|
@@ -109480,8 +109480,8 @@ var require_DefaultPanel = __commonJS({
|
|
|
109480
109480
|
prefixCls,
|
|
109481
109481
|
current,
|
|
109482
109482
|
total,
|
|
109483
|
-
title,
|
|
109484
|
-
description,
|
|
109483
|
+
title: title2,
|
|
109484
|
+
description: description2,
|
|
109485
109485
|
onClose,
|
|
109486
109486
|
onPrev,
|
|
109487
109487
|
onNext,
|
|
@@ -109514,10 +109514,10 @@ var require_DefaultPanel = __commonJS({
|
|
|
109514
109514
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
109515
109515
|
className: (0, _clsx.clsx)(`${prefixCls}-title`, tourClassNames?.title),
|
|
109516
109516
|
style: styles?.title
|
|
109517
|
-
},
|
|
109517
|
+
}, title2)), /* @__PURE__ */ React.createElement("div", {
|
|
109518
109518
|
className: (0, _clsx.clsx)(`${prefixCls}-description`, tourClassNames?.description),
|
|
109519
109519
|
style: styles?.description
|
|
109520
|
-
},
|
|
109520
|
+
}, description2), /* @__PURE__ */ React.createElement("div", {
|
|
109521
109521
|
className: (0, _clsx.clsx)(`${prefixCls}-footer`, tourClassNames?.footer),
|
|
109522
109522
|
style: styles?.footer
|
|
109523
109523
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -109964,13 +109964,13 @@ var require_panelRender = __commonJS({
|
|
|
109964
109964
|
const {
|
|
109965
109965
|
prefixCls,
|
|
109966
109966
|
total = 1,
|
|
109967
|
-
title,
|
|
109967
|
+
title: title2,
|
|
109968
109968
|
onClose,
|
|
109969
109969
|
onPrev,
|
|
109970
109970
|
onNext,
|
|
109971
109971
|
onFinish,
|
|
109972
109972
|
cover,
|
|
109973
|
-
description,
|
|
109973
|
+
description: description2,
|
|
109974
109974
|
nextButtonProps,
|
|
109975
109975
|
prevButtonProps,
|
|
109976
109976
|
type: stepType,
|
|
@@ -110005,17 +110005,17 @@ var require_panelRender = __commonJS({
|
|
|
110005
110005
|
}
|
|
110006
110006
|
nextButtonProps?.onClick?.();
|
|
110007
110007
|
};
|
|
110008
|
-
const headerNode = (0, _is.isReactRenderable)(
|
|
110008
|
+
const headerNode = (0, _is.isReactRenderable)(title2) ? /* @__PURE__ */ _react.default.createElement("div", {
|
|
110009
110009
|
className: (0, _clsx.clsx)(`${prefixCls}-header`, classNames.header),
|
|
110010
110010
|
style: styles.header
|
|
110011
110011
|
}, /* @__PURE__ */ _react.default.createElement("div", {
|
|
110012
110012
|
className: (0, _clsx.clsx)(`${prefixCls}-title`, classNames.title),
|
|
110013
110013
|
style: styles.title
|
|
110014
|
-
},
|
|
110015
|
-
const descriptionNode = (0, _is.isReactRenderable)(
|
|
110014
|
+
}, title2)) : null;
|
|
110015
|
+
const descriptionNode = (0, _is.isReactRenderable)(description2) ? /* @__PURE__ */ _react.default.createElement("div", {
|
|
110016
110016
|
className: (0, _clsx.clsx)(`${prefixCls}-description`, classNames.description),
|
|
110017
110017
|
style: styles.description
|
|
110018
|
-
},
|
|
110018
|
+
}, description2) : null;
|
|
110019
110019
|
const coverNode = (0, _is.isReactRenderable)(cover) ? /* @__PURE__ */ _react.default.createElement("div", {
|
|
110020
110020
|
className: (0, _clsx.clsx)(`${prefixCls}-cover`, classNames.cover),
|
|
110021
110021
|
style: styles.cover
|
|
@@ -110855,15 +110855,15 @@ var require_ListItem = __commonJS({
|
|
|
110855
110855
|
[`${prefixCls}-content-item-disabled`]: mergedDisabled,
|
|
110856
110856
|
[`${prefixCls}-content-item-checked`]: checked && !mergedDisabled
|
|
110857
110857
|
});
|
|
110858
|
-
let
|
|
110858
|
+
let title2;
|
|
110859
110859
|
if (typeof renderedText === "string" || (0, _is.isNumber)(renderedText)) {
|
|
110860
|
-
|
|
110860
|
+
title2 = String(renderedText);
|
|
110861
110861
|
}
|
|
110862
110862
|
const [contextLocale] = (0, _locale.useLocale)("Transfer", _en_US.default.Transfer);
|
|
110863
110863
|
const liProps = {
|
|
110864
110864
|
className: classes,
|
|
110865
110865
|
style: styles.item,
|
|
110866
|
-
title
|
|
110866
|
+
title: title2
|
|
110867
110867
|
};
|
|
110868
110868
|
const labelNode = /* @__PURE__ */ React.createElement("span", {
|
|
110869
110869
|
className: (0, _clsx.clsx)(`${prefixCls}-content-item-text`, classNames.itemContent),
|
|
@@ -113362,9 +113362,9 @@ var require_TreeSelect = __commonJS({
|
|
|
113362
113362
|
_title: titleList
|
|
113363
113363
|
} = mergedFieldNames;
|
|
113364
113364
|
for (let i = 0; i < titleList.length; i += 1) {
|
|
113365
|
-
const
|
|
113366
|
-
if (
|
|
113367
|
-
return
|
|
113365
|
+
const title2 = item[titleList[i]];
|
|
113366
|
+
if (title2 !== void 0) {
|
|
113367
|
+
return title2;
|
|
113368
113368
|
}
|
|
113369
113369
|
}
|
|
113370
113370
|
}
|
|
@@ -115478,7 +115478,7 @@ var require_Base = __commonJS({
|
|
|
115478
115478
|
copyable,
|
|
115479
115479
|
actions,
|
|
115480
115480
|
component,
|
|
115481
|
-
title,
|
|
115481
|
+
title: title2,
|
|
115482
115482
|
onMouseEnter,
|
|
115483
115483
|
onMouseLeave,
|
|
115484
115484
|
...restProps
|
|
@@ -115620,8 +115620,8 @@ var require_Base = __commonJS({
|
|
|
115620
115620
|
if (!enableEllipsis || cssEllipsis) {
|
|
115621
115621
|
return void 0;
|
|
115622
115622
|
}
|
|
115623
|
-
return [editConfig.text, children,
|
|
115624
|
-
}, [enableEllipsis, cssEllipsis,
|
|
115623
|
+
return [editConfig.text, children, title2, tooltipProps.title].find(_util2.isValidText);
|
|
115624
|
+
}, [enableEllipsis, cssEllipsis, title2, tooltipProps.title, isMergedEllipsis, editConfig.text]);
|
|
115625
115625
|
if (editing) {
|
|
115626
115626
|
return /* @__PURE__ */ React.createElement(_Editable.default, {
|
|
115627
115627
|
value: editConfig.text ?? (typeof children === "string" ? children : ""),
|
|
@@ -115761,7 +115761,7 @@ var require_Base = __commonJS({
|
|
|
115761
115761
|
direction,
|
|
115762
115762
|
onClick: triggerType.includes("text") ? onEditClick : void 0,
|
|
115763
115763
|
"aria-label": topAriaLabel?.toString(),
|
|
115764
|
-
title,
|
|
115764
|
+
title: title2,
|
|
115765
115765
|
...textProps
|
|
115766
115766
|
}, /* @__PURE__ */ React.createElement(_Ellipsis.default, {
|
|
115767
115767
|
enableMeasure: mergedEnableEllipsis && !cssEllipsis,
|
|
@@ -117946,12 +117946,12 @@ var require_UploadList = __commonJS({
|
|
|
117946
117946
|
}
|
|
117947
117947
|
return isLoading ? /* @__PURE__ */ React.createElement(_LoadingOutlined.default, null) : /* @__PURE__ */ React.createElement(_PaperClipOutlined.default, null);
|
|
117948
117948
|
};
|
|
117949
|
-
const actionIconRender = (customIcon, callback, prefixCls2,
|
|
117949
|
+
const actionIconRender = (customIcon, callback, prefixCls2, title2, acceptUploadDisabled) => {
|
|
117950
117950
|
const btnProps = {
|
|
117951
117951
|
type: "text",
|
|
117952
117952
|
size: "small",
|
|
117953
|
-
title,
|
|
117954
|
-
"aria-label":
|
|
117953
|
+
title: title2,
|
|
117954
|
+
"aria-label": title2 || void 0,
|
|
117955
117955
|
onClick: (e) => {
|
|
117956
117956
|
callback();
|
|
117957
117957
|
if (/* @__PURE__ */ React.isValidElement(customIcon)) {
|
|
@@ -119795,6 +119795,12 @@ var eventType = external_exports.string().max(256).regex(/^[a-z][a-z0-9]*(?:\.[a
|
|
|
119795
119795
|
var serviceNamespace = external_exports.string().max(256).regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)+$/);
|
|
119796
119796
|
var aggregateType = external_exports.string().regex(/^[a-z][a-z0-9-]{0,63}$/);
|
|
119797
119797
|
var aggregateId = external_exports.string().trim().min(1).max(256);
|
|
119798
|
+
var providerId = external_exports.string().max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/);
|
|
119799
|
+
var contractPackage = external_exports.string().max(128).regex(/^@zlooks\.cn\/[a-z0-9]+(?:-[a-z0-9]+)*$/);
|
|
119800
|
+
var exportName = external_exports.string().max(128).regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/);
|
|
119801
|
+
var title = external_exports.string().trim().min(1).max(120);
|
|
119802
|
+
var description = external_exports.string().trim().min(1).max(1e3);
|
|
119803
|
+
var jsonValueSchema = external_exports.json();
|
|
119798
119804
|
var eventEnvelopeSchema = external_exports.strictObject({
|
|
119799
119805
|
protocol: external_exports.literal("zlooks.event"),
|
|
119800
119806
|
protocolVersion: external_exports.literal(1),
|
|
@@ -119806,42 +119812,130 @@ var eventEnvelopeSchema = external_exports.strictObject({
|
|
|
119806
119812
|
id: aggregateId
|
|
119807
119813
|
}).readonly(),
|
|
119808
119814
|
occurredAt: external_exports.iso.datetime({ offset: true }),
|
|
119809
|
-
data:
|
|
119815
|
+
data: jsonValueSchema
|
|
119810
119816
|
}).readonly();
|
|
119811
|
-
function
|
|
119817
|
+
function parseDomainEvent(input) {
|
|
119818
|
+
const envelope = eventEnvelopeSchema.parse(input);
|
|
119819
|
+
return Object.freeze({
|
|
119820
|
+
...envelope,
|
|
119821
|
+
aggregate: Object.freeze({ ...envelope.aggregate })
|
|
119822
|
+
});
|
|
119823
|
+
}
|
|
119824
|
+
function defineEvent(type, dataSchema5, options) {
|
|
119812
119825
|
const parsedType = eventType.parse(type);
|
|
119826
|
+
const producer = serviceNamespace.parse(options.producer);
|
|
119827
|
+
const parsedAggregateType = aggregateType.parse(options.aggregateType);
|
|
119828
|
+
const selectAggregateId = options.aggregateId;
|
|
119829
|
+
if (typeof selectAggregateId !== "function")
|
|
119830
|
+
throw new TypeError("Event aggregateId must be a function");
|
|
119813
119831
|
return Object.freeze({
|
|
119814
119832
|
type: parsedType,
|
|
119833
|
+
producer,
|
|
119834
|
+
aggregateType: parsedAggregateType,
|
|
119835
|
+
dataSchema: dataSchema5,
|
|
119815
119836
|
parse(value) {
|
|
119816
|
-
const envelope =
|
|
119837
|
+
const envelope = parseDomainEvent(value);
|
|
119817
119838
|
if (envelope.type !== parsedType) {
|
|
119818
119839
|
throw new TypeError(`Expected event type ${parsedType}`);
|
|
119819
119840
|
}
|
|
119841
|
+
if (envelope.producer !== producer) {
|
|
119842
|
+
throw new TypeError(`Expected event producer ${producer}`);
|
|
119843
|
+
}
|
|
119844
|
+
const data = dataSchema5.parse(envelope.data);
|
|
119845
|
+
jsonValueSchema.parse(data);
|
|
119846
|
+
const expectedAggregateId = aggregateId.parse(selectAggregateId(data));
|
|
119847
|
+
if (envelope.aggregate.type !== parsedAggregateType || envelope.aggregate.id !== expectedAggregateId) {
|
|
119848
|
+
throw new TypeError(`${parsedType} aggregate does not identify its event data`);
|
|
119849
|
+
}
|
|
119820
119850
|
return Object.freeze({
|
|
119821
119851
|
...envelope,
|
|
119822
119852
|
type: parsedType,
|
|
119823
119853
|
aggregate: Object.freeze({ ...envelope.aggregate }),
|
|
119824
|
-
data
|
|
119854
|
+
data
|
|
119825
119855
|
});
|
|
119826
119856
|
}
|
|
119827
119857
|
});
|
|
119828
119858
|
}
|
|
119859
|
+
function defineEventCatalog(input) {
|
|
119860
|
+
const parsedProviderId = providerId.parse(input.providerId);
|
|
119861
|
+
const parsedDisplayName = title.parse(input.displayName);
|
|
119862
|
+
const parsedContractPackage = contractPackage.parse(input.contractPackage);
|
|
119863
|
+
if (input.events.length === 0 || input.events.length > 256) {
|
|
119864
|
+
throw new TypeError("Event catalog must contain between 1 and 256 events");
|
|
119865
|
+
}
|
|
119866
|
+
const producer = input.events[0].definition.producer;
|
|
119867
|
+
const eventTypes = /* @__PURE__ */ new Set();
|
|
119868
|
+
const consumerExports = /* @__PURE__ */ new Set();
|
|
119869
|
+
const events = input.events.map((entry) => {
|
|
119870
|
+
if (entry.definition.producer !== producer) {
|
|
119871
|
+
throw new TypeError("Event catalog definitions must have one producer");
|
|
119872
|
+
}
|
|
119873
|
+
if (eventTypes.has(entry.definition.type)) {
|
|
119874
|
+
throw new TypeError("Event catalog event types must be unique");
|
|
119875
|
+
}
|
|
119876
|
+
const parsedConsumerExport = exportName.parse(entry.consumerExport);
|
|
119877
|
+
if (consumerExports.has(parsedConsumerExport)) {
|
|
119878
|
+
throw new TypeError("Event catalog Consumer exports must be unique");
|
|
119879
|
+
}
|
|
119880
|
+
eventTypes.add(entry.definition.type);
|
|
119881
|
+
consumerExports.add(parsedConsumerExport);
|
|
119882
|
+
const dataSchema5 = immutableJson(external_exports.toJSONSchema(entry.definition.dataSchema, {
|
|
119883
|
+
target: "draft-2020-12",
|
|
119884
|
+
unrepresentable: "any",
|
|
119885
|
+
io: "input"
|
|
119886
|
+
}));
|
|
119887
|
+
if (!isJsonObject(dataSchema5))
|
|
119888
|
+
throw new TypeError("Event data schema must serialize to a JSON object");
|
|
119889
|
+
return Object.freeze({
|
|
119890
|
+
type: entry.definition.type,
|
|
119891
|
+
title: title.parse(entry.title),
|
|
119892
|
+
description: description.parse(entry.description),
|
|
119893
|
+
producer,
|
|
119894
|
+
aggregateType: entry.definition.aggregateType,
|
|
119895
|
+
consumer: Object.freeze({
|
|
119896
|
+
packageName: parsedContractPackage,
|
|
119897
|
+
exportName: parsedConsumerExport
|
|
119898
|
+
}),
|
|
119899
|
+
dataSchema: dataSchema5
|
|
119900
|
+
});
|
|
119901
|
+
});
|
|
119902
|
+
return Object.freeze({
|
|
119903
|
+
protocol: "zlooks.event-catalog",
|
|
119904
|
+
protocolVersion: 1,
|
|
119905
|
+
providerId: parsedProviderId,
|
|
119906
|
+
displayName: parsedDisplayName,
|
|
119907
|
+
producer,
|
|
119908
|
+
contractPackage: parsedContractPackage,
|
|
119909
|
+
count: events.length,
|
|
119910
|
+
delivery: Object.freeze({ guarantee: "at-least-once", deduplicateBy: "eventId" }),
|
|
119911
|
+
events: Object.freeze(events)
|
|
119912
|
+
});
|
|
119913
|
+
}
|
|
119914
|
+
function immutableJson(value) {
|
|
119915
|
+
if (value === null || typeof value === "string" || typeof value === "boolean")
|
|
119916
|
+
return value;
|
|
119917
|
+
if (typeof value === "number" && Number.isFinite(value))
|
|
119918
|
+
return value;
|
|
119919
|
+
if (Array.isArray(value))
|
|
119920
|
+
return Object.freeze(value.map(immutableJson));
|
|
119921
|
+
if (isRecord(value)) {
|
|
119922
|
+
return Object.freeze(Object.fromEntries(Object.entries(value).filter(([, item]) => item !== void 0).map(([key, item]) => [key, immutableJson(item)])));
|
|
119923
|
+
}
|
|
119924
|
+
throw new TypeError("Event JSON Schema contains a non-JSON value");
|
|
119925
|
+
}
|
|
119926
|
+
function isJsonObject(value) {
|
|
119927
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
119928
|
+
}
|
|
119929
|
+
function isRecord(value) {
|
|
119930
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
119931
|
+
}
|
|
119829
119932
|
|
|
119830
119933
|
// ../user-shared/dist/events/definition.js
|
|
119831
119934
|
function defineUserEvent(type, aggregateType2, dataSchema5, aggregateId2) {
|
|
119832
|
-
|
|
119833
|
-
|
|
119834
|
-
|
|
119835
|
-
|
|
119836
|
-
const event = base.parse(input);
|
|
119837
|
-
if (event.producer !== USER_SERVICE_NAMESPACE) {
|
|
119838
|
-
throw new TypeError(`Expected event producer ${USER_SERVICE_NAMESPACE}`);
|
|
119839
|
-
}
|
|
119840
|
-
if (event.aggregate.type !== aggregateType2 || event.aggregate.id !== aggregateId2(event.data)) {
|
|
119841
|
-
throw new TypeError(`${type} aggregate does not identify its event data`);
|
|
119842
|
-
}
|
|
119843
|
-
return event;
|
|
119844
|
-
}
|
|
119935
|
+
return defineEvent(type, dataSchema5, {
|
|
119936
|
+
producer: USER_SERVICE_NAMESPACE,
|
|
119937
|
+
aggregateType: aggregateType2,
|
|
119938
|
+
aggregateId: aggregateId2
|
|
119845
119939
|
});
|
|
119846
119940
|
}
|
|
119847
119941
|
|
|
@@ -119926,6 +120020,45 @@ var dataSchema4 = external_exports.strictObject({
|
|
|
119926
120020
|
}).readonly();
|
|
119927
120021
|
var userSessionRevokedEvent = defineUserEvent(USER_SESSION_REVOKED_EVENT_TYPE, "session-family", dataSchema4, (data) => data.sessionFamily.id);
|
|
119928
120022
|
|
|
120023
|
+
// ../user-shared/dist/events/catalog.js
|
|
120024
|
+
var USER_EVENT_CATALOG = defineEventCatalog({
|
|
120025
|
+
providerId: "user",
|
|
120026
|
+
displayName: "\u7528\u6237\u670D\u52A1\u4E8B\u4EF6",
|
|
120027
|
+
contractPackage: "@zlooks.cn/user-shared",
|
|
120028
|
+
events: [
|
|
120029
|
+
{
|
|
120030
|
+
definition: userRegisteredEvent,
|
|
120031
|
+
title: "\u7528\u6237\u5DF2\u6CE8\u518C",
|
|
120032
|
+
description: "\u7528\u6237\u8D26\u6237\u5DF2\u7ECF\u5B8C\u6210\u6301\u4E45\u5316\u521B\u5EFA\u5E76\u5904\u4E8E\u53EF\u7528\u72B6\u6001\u3002",
|
|
120033
|
+
consumerExport: "consumeUserRegisteredEvent"
|
|
120034
|
+
},
|
|
120035
|
+
{
|
|
120036
|
+
definition: userEmailVerifiedEvent,
|
|
120037
|
+
title: "\u7528\u6237\u90AE\u7BB1\u5DF2\u9A8C\u8BC1",
|
|
120038
|
+
description: "\u7528\u6237\u90AE\u7BB1\u4ECE\u672A\u9A8C\u8BC1\u72B6\u6001\u771F\u5B9E\u8F6C\u6362\u4E3A\u5DF2\u9A8C\u8BC1\u72B6\u6001\u3002",
|
|
120039
|
+
consumerExport: "consumeUserEmailVerifiedEvent"
|
|
120040
|
+
},
|
|
120041
|
+
{
|
|
120042
|
+
definition: userProfileUpdatedEvent,
|
|
120043
|
+
title: "\u7528\u6237\u8D44\u6599\u5DF2\u66F4\u65B0",
|
|
120044
|
+
description: "\u7528\u6237\u516C\u5F00\u8D44\u6599\u5B57\u6BB5\u53D1\u751F\u771F\u5B9E\u53D8\u5316\u5E76\u643A\u5E26\u53D8\u66F4\u540E\u7684\u5B8C\u6574\u5B89\u5168\u5FEB\u7167\u3002",
|
|
120045
|
+
consumerExport: "consumeUserProfileUpdatedEvent"
|
|
120046
|
+
},
|
|
120047
|
+
{
|
|
120048
|
+
definition: userSessionCreatedEvent,
|
|
120049
|
+
title: "\u7528\u6237\u4F1A\u8BDD\u65CF\u5DF2\u521B\u5EFA",
|
|
120050
|
+
description: "\u767B\u5F55\u3001\u6CE8\u518C\u6216\u6062\u590D\u6D41\u7A0B\u5DF2\u7ECF\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u6D3B\u52A8\u4F1A\u8BDD\u65CF\u3002",
|
|
120051
|
+
consumerExport: "consumeUserSessionCreatedEvent"
|
|
120052
|
+
},
|
|
120053
|
+
{
|
|
120054
|
+
definition: userSessionRevokedEvent,
|
|
120055
|
+
title: "\u7528\u6237\u4F1A\u8BDD\u65CF\u5DF2\u64A4\u9500",
|
|
120056
|
+
description: "\u7528\u6237\u4F1A\u8BDD\u65CF\u4ECE\u6D3B\u52A8\u72B6\u6001\u771F\u5B9E\u8F6C\u6362\u4E3A\u5DF2\u64A4\u9500\u72B6\u6001\u3002",
|
|
120057
|
+
consumerExport: "consumeUserSessionRevokedEvent"
|
|
120058
|
+
}
|
|
120059
|
+
]
|
|
120060
|
+
});
|
|
120061
|
+
|
|
119929
120062
|
// ../user-shared/dist/index.js
|
|
119930
120063
|
var USER_BROWSER_API_PUBLIC_ROUTES = Object.freeze([
|
|
119931
120064
|
Object.freeze({
|