@unicom-cloud/ui 0.8.100 → 0.8.102
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/Badge.js +7 -54
- package/Copy.js +5 -4
- package/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +14 -4
- package/LiquidFill.js +5 -4
- package/List.js +1 -1
- package/Loading.js +16 -3
- package/Marquee.js +5 -4
- package/QrCode.js +5 -4
- package/Space.js +3 -3
- package/Splitter.js +4 -3
- package/SuspenseFallbackTest.js +2 -4
- package/Tooltip.js +3 -4
- package/Tour.js +5 -4
- package/alert/index.js +60 -62
- package/anchor/Anchor.js +12 -12
- package/anchor/util.js +10 -10
- package/back-top/index.js +33 -34
- package/badge/index.js +109 -162
- package/calendar/index.js +85 -84
- package/card/index.js +63 -43
- package/color-picker/InputHex.js +3 -4
- package/color-picker/InputRgb.js +7 -8
- package/color-picker/Palette.js +3 -4
- package/color-picker/Panel.js +3 -4
- package/color-picker/colors.js +5 -5
- package/color-picker/hooks/useColorPicker.js +3 -4
- package/color-picker/utils.js +14 -15
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/PqbCSSTransition.js +1 -1
- package/components/common/utils/constant.js +6 -3
- package/components/common/utils/reactDOM.js +6 -4
- package/components/common/utils/{scrollIntoView.js → scrollIntoViewIfNeeded.js} +1 -1
- package/components/common/utils/setPrimaryColor.js +18 -18
- package/components/common/utils/setTheme.js +8 -9
- package/components/common/utils/toArray.js +12 -0
- package/copy/index.js +3 -2
- package/details/index.js +102 -62
- package/dist/scroll-into-view-if-needed/compute/index.js +126 -0
- package/dist/scroll-into-view-if-needed/smooth/index.js +70 -0
- package/dist/scroll-into-view-if-needed/src/index.js +19 -19
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +43 -55
- package/flex/interface.js +1 -34
- package/form/FormItem.js +69 -65
- package/form/context.js +6 -7
- package/grid/Col-.js +86 -0
- package/grid/Col.js +156 -73
- package/grid/Grid.js +71 -67
- package/grid/Row.js +3 -3
- package/grid/index.js +13 -13
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +641 -663
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +7 -7
- package/liquid-fill/index.js +5 -4
- package/list/index.js +1 -1
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/marquee/index.js +5 -4
- package/menu/Item.js +9 -9
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/qr-code/index.js +5 -4
- package/segmented/index.js +47 -47
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/splitter/SplitBar.js +81 -79
- package/splitter/Splitter.js +92 -104
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +9 -18
- package/splitter/hooks/useResize.js +10 -10
- package/splitter/hooks/useSizes.js +28 -28
- package/splitter/index.js +5 -4
- package/statistic/index.js +10 -10
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +376 -377
- package/table/hook/useThResizable.js +5 -4
- package/table/th-resizable/index.js +12 -11
- package/time-picker/util.js +8 -8
- package/tooltip/index.js +1 -2
- package/tour/index.js +5 -4
- package/tree/NodeList.js +1 -1
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -4
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/constant.d.ts +1 -0
- package/types/common/utils/scrollIntoViewIfNeeded.d.ts +4 -0
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/common/utils/tree.d.ts +1 -0
- package/types/common/utils/tween.d.ts +1 -0
- package/types/pc/alert/index.d.ts +2 -1
- package/types/pc/alert/interface.d.ts +7 -1
- package/types/pc/anchor/util.d.ts +1 -1
- package/types/pc/badge/Count.d.ts +1 -1
- package/types/pc/badge/interface.d.ts +2 -0
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/card/interface.d.ts +8 -0
- package/types/pc/cascader/interface.d.ts +1 -1
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/hooks/useColorPicker.d.ts +7 -2
- package/types/pc/color-picker/utils.d.ts +6 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +4 -0
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/flex/index.d.ts +4 -4
- package/types/pc/flex/interface.d.ts +8 -53
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- package/types/pc/grid/Col-.d.ts +4 -0
- package/types/pc/grid/Col.d.ts +3 -2
- package/types/pc/grid/Grid.d.ts +2 -2
- package/types/pc/grid/Item.d.ts +3 -3
- package/types/pc/grid/Row.d.ts +2 -2
- package/types/pc/grid/hook/useResponsiveState.d.ts +2 -2
- package/types/pc/grid/interface.d.ts +13 -7
- package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/index.d.ts +60 -51
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -1
- package/types/pc/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/space/index.d.ts +6 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- package/types/pc/splitter/SplitBar.d.ts +0 -1
- package/types/pc/splitter/hooks/useResizable.d.ts +0 -1
- package/types/pc/splitter/hooks/useResize.d.ts +1 -2
- package/types/pc/splitter/index.d.ts +5 -4
- package/types/pc/splitter/interface.d.ts +16 -24
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/tour/index.d.ts +1 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/upload/interface.d.ts +1 -0
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/constant.d.ts +1 -2
- package/types/pc/utils/dayjs.d.ts +2 -1
- package/types/pc/utils/index.d.ts +2 -5
- package/types/pc/utils/scrollIntoViewIfNeeded.d.ts +3 -0
- package/types/pc/utils/toArray.d.ts +1 -5
- package/types/pc/utils/tree.d.ts +2 -1
- package/types/pc/utils/tween.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/typography/Ellipsis.js +5 -4
- package/typography/Operations.js +5 -4
- package/upload/request.js +12 -13
- package/upload/request_.js +2 -3
- package/utils/constant.js +5 -5
- package/utils/dayjs.js +13 -12
- package/utils/index.js +261 -284
- package/utils/scrollIntoViewIfNeeded.js +12 -0
- package/utils/toArray.js +3 -10
- package/utils/tree.js +11 -9
- package/utils/tween.js +5 -5
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/components/common/utils/convertToDurationBasedOnTimeUnits.js +0 -6
- package/dist/compute-scroll-into-view/src/index.js +0 -126
- package/dist/tinycolor/chunk/BOzCVdr0.js +0 -182
- package/dist/tinycolor/customize/index.js +0 -12
- package/dist/tinycolor/src/conversion.js +0 -143
- package/dist/tinycolor/src/css-color-names.js +0 -153
- package/dist/tinycolor/src/format-input.js +0 -77
- package/dist/tinycolor/src/index.js +0 -388
- package/dist/tinycolor/src/util.js +0 -32
- package/flex/utils.js +0 -13
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/common/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
- package/types/common/utils/scrollIntoView.d.ts +0 -4
- package/types/common/utils/tinycolor.d.ts +0 -1
- package/types/pc/flex/utils.d.ts +0 -9
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- package/types/pc/utils/color.d.ts +0 -1
- package/types/pc/utils/computeScrollIntoView.d.ts +0 -1
- package/types/pc/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
- package/types/pc/utils/scrollIntoView.d.ts +0 -3
- package/types/pc/utils/tinycolor.d.ts +0 -1
- package/utils/color.js +0 -4
- package/utils/computeScrollIntoView.js +0 -6
- package/utils/convertToDurationBasedOnTimeUnits.js +0 -6
- package/utils/scrollIntoView.js +0 -6
- package/utils/tinycolor.js +0 -29
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useState as b, useEffect as a } from "react";
|
|
2
|
+
import "@unicom-cloud/utils/date";
|
|
2
3
|
import "@unicom-cloud/utils/case-name";
|
|
3
4
|
import "@unicom-cloud/utils/class-name";
|
|
4
|
-
import "../../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
5
5
|
import "@unicom-cloud/utils/constant/ui";
|
|
6
6
|
import "../../utils/contextHolder.js";
|
|
7
|
-
import "@unicom-cloud/utils/dayjs";
|
|
8
7
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
9
8
|
import "../../components/common/utils/dayjs.js";
|
|
10
9
|
import "../../components/common/utils/dom.js";
|
|
@@ -42,6 +41,8 @@ import "../../dist/react-transition-group/src/TransitionGroup.js";
|
|
|
42
41
|
import "../../components/common/utils/reactDOM.js";
|
|
43
42
|
import "@unicom-cloud/utils/file/saveAs";
|
|
44
43
|
import "@unicom-cloud/utils/screenfull";
|
|
44
|
+
import "@unicom-cloud/utils/tinycolor";
|
|
45
|
+
import "@unicom-cloud/utils/ui-color";
|
|
45
46
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
46
47
|
import "react-is";
|
|
47
48
|
import "@unicom-cloud/utils/tree";
|
|
@@ -50,7 +51,7 @@ import "uuid";
|
|
|
50
51
|
import "../../dist/validate/src/index.js";
|
|
51
52
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
52
53
|
import z from "../th-resizable/index.js";
|
|
53
|
-
function
|
|
54
|
+
function Ht(f = {}, c = []) {
|
|
54
55
|
const { columns: u } = f ?? {}, [d, m] = b(o(u));
|
|
55
56
|
function h(t, i) {
|
|
56
57
|
return {
|
|
@@ -81,5 +82,5 @@ function Rt(f = {}, c = []) {
|
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
+
Ht as default
|
|
85
86
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx as h, jsxs as M, Fragment as P } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as s, useContext as X, useEffect as j } from "react";
|
|
3
3
|
import "../../config-provider/ConfigProvider.js";
|
|
4
|
+
import "@unicom-cloud/utils/date";
|
|
4
5
|
import "@unicom-cloud/utils/case-name";
|
|
5
6
|
import z from "@unicom-cloud/utils/class-name";
|
|
6
|
-
import "../../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
7
7
|
import "@unicom-cloud/utils/constant/ui";
|
|
8
8
|
import "../../utils/contextHolder.js";
|
|
9
|
-
import "@unicom-cloud/utils/dayjs";
|
|
10
9
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
11
10
|
import "../../components/common/utils/dayjs.js";
|
|
12
11
|
import { off as g, on as C } from "../../components/common/utils/dom.js";
|
|
@@ -43,6 +42,8 @@ import "../../dist/react-transition-group/src/TransitionGroup.js";
|
|
|
43
42
|
import "../../components/common/utils/reactDOM.js";
|
|
44
43
|
import "@unicom-cloud/utils/file/saveAs";
|
|
45
44
|
import "@unicom-cloud/utils/screenfull";
|
|
45
|
+
import "@unicom-cloud/utils/tinycolor";
|
|
46
|
+
import "@unicom-cloud/utils/ui-color";
|
|
46
47
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
47
48
|
import "react-is";
|
|
48
49
|
import "@unicom-cloud/utils/tree";
|
|
@@ -53,7 +54,7 @@ import "@unicom-cloud/utils/constant/keyboardCode";
|
|
|
53
54
|
import { defaultComponent as D } from "../constant.js";
|
|
54
55
|
/* empty css */
|
|
55
56
|
import F from "../../config-provider/context.js";
|
|
56
|
-
function
|
|
57
|
+
function Ut(b) {
|
|
57
58
|
let {
|
|
58
59
|
className: r,
|
|
59
60
|
children: u,
|
|
@@ -63,27 +64,27 @@ function Bt(b) {
|
|
|
63
64
|
} = b;
|
|
64
65
|
const v = D.header.th, f = s(null), x = s(null), o = s({}), { getPrefixCls: R } = X(F), a = R?.("table-th-resizable");
|
|
65
66
|
function l(t) {
|
|
66
|
-
o.current.boundingClientRect = f.current.getBoundingClientRect(), o.current.pageX = t?.pageX ?? 0,
|
|
67
|
+
o.current.boundingClientRect = f.current.getBoundingClientRect(), o.current.pageX = t?.pageX ?? 0, p(), N();
|
|
67
68
|
}
|
|
68
69
|
function e(t) {
|
|
69
|
-
|
|
70
|
+
p();
|
|
70
71
|
}
|
|
71
72
|
function m(t) {
|
|
72
|
-
let
|
|
73
|
-
|
|
73
|
+
let n = o.current.boundingClientRect.width + ((t?.pageX ?? 0) - o.current.pageX);
|
|
74
|
+
n < 0 || (T(i) && (i.width = n), c?.({
|
|
74
75
|
column: i,
|
|
75
|
-
width:
|
|
76
|
+
width: n,
|
|
76
77
|
widthOrigin: o.current.boundingClientRect.width
|
|
77
78
|
}));
|
|
78
79
|
}
|
|
79
80
|
function N(t) {
|
|
80
81
|
C(document, "mousemove", m), C(document, "mouseup", e);
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function p(t) {
|
|
83
84
|
g(document, "mousemove", m), g(document, "mouseup", e);
|
|
84
85
|
}
|
|
85
86
|
r = z(r, a), j(() => (l(), m(), e(), () => {
|
|
86
|
-
|
|
87
|
+
p();
|
|
87
88
|
}), []);
|
|
88
89
|
let d = u;
|
|
89
90
|
return E(c) && (d = /* @__PURE__ */ M(P, { children: [
|
|
@@ -99,5 +100,5 @@ function Bt(b) {
|
|
|
99
100
|
] })), /* @__PURE__ */ h(v, { ref: f, ...w, className: r, children: d });
|
|
100
101
|
}
|
|
101
102
|
export {
|
|
102
|
-
|
|
103
|
+
Ut as default
|
|
103
104
|
};
|
package/time-picker/util.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Tween as i } from "../dist/tween/src/tween.js";
|
|
2
|
-
import
|
|
2
|
+
import l from "../dist/tween/src/easing.js";
|
|
3
3
|
import { isDayjs as m } from "dayjs";
|
|
4
|
-
import { dayjs as f, methods as
|
|
4
|
+
import { dayjs as f, methods as a } from "../components/common/utils/dayjs.js";
|
|
5
5
|
function y(o) {
|
|
6
6
|
const t = ["H", "h", "m", "s", "a", "A"], s = [];
|
|
7
|
-
let
|
|
7
|
+
let e = !1;
|
|
8
8
|
return t.forEach((r) => {
|
|
9
|
-
o.indexOf(r) !== -1 && (s.push(r), (r === "a" || r === "A") && (
|
|
9
|
+
o.indexOf(r) !== -1 && (s.push(r), (r === "a" || r === "A") && (e = !0));
|
|
10
10
|
}), {
|
|
11
11
|
list: s,
|
|
12
|
-
use12Hours:
|
|
12
|
+
use12Hours: e
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
const c = /* @__PURE__ */ new Map();
|
|
@@ -24,16 +24,16 @@ function h(o, t, s) {
|
|
|
24
24
|
onUpdate: (r) => {
|
|
25
25
|
o.scrollTop = r.scrollTop;
|
|
26
26
|
},
|
|
27
|
-
easing: l
|
|
27
|
+
easing: l.quartInOut
|
|
28
28
|
}).start();
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
function g(o) {
|
|
33
|
-
const t = f(), s = t.year(),
|
|
33
|
+
const t = f(), s = t.year(), e = t.month(), r = t.date();
|
|
34
34
|
if (m(o)) {
|
|
35
35
|
let n = o;
|
|
36
|
-
return n =
|
|
36
|
+
return n = a.set(n, "year", s), n = a.set(n, "month", e), n = a.set(n, "date", r), n;
|
|
37
37
|
}
|
|
38
38
|
return o;
|
|
39
39
|
}
|
package/tooltip/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import { TinyColor as F } from "../dist/tinycolor/src/index.js";
|
|
2
|
+
import F from "@unicom-cloud/utils/tinycolor";
|
|
4
3
|
import I from "lodash/isFunction";
|
|
5
4
|
import { forwardRef as S, useContext as j, useRef as z, useImperativeHandle as B, useMemo as W } from "react";
|
|
6
5
|
import "../config-provider/ConfigProvider.js";
|
package/tour/index.js
CHANGED
|
@@ -17,12 +17,11 @@ import "@unicom-cloud/utils/constant";
|
|
|
17
17
|
import "lodash/debounce";
|
|
18
18
|
import wt from "../icon-hover/index.js";
|
|
19
19
|
import R from "../space/index.js";
|
|
20
|
+
import "@unicom-cloud/utils/date";
|
|
20
21
|
import "@unicom-cloud/utils/case-name";
|
|
21
22
|
import u from "@unicom-cloud/utils/class-name";
|
|
22
|
-
import "../dist/tinycolor/chunk/BOzCVdr0.js";
|
|
23
23
|
import "@unicom-cloud/utils/constant/ui";
|
|
24
24
|
import "../utils/contextHolder.js";
|
|
25
|
-
import "@unicom-cloud/utils/dayjs";
|
|
26
25
|
import "@unicom-cloud/utils/clipboard-copy";
|
|
27
26
|
import "../components/common/utils/dayjs.js";
|
|
28
27
|
import "@unicom-cloud/utils/file/fileToURL";
|
|
@@ -55,6 +54,8 @@ import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
|
55
54
|
import { resizeObserver as yt } from "../components/common/utils/resizeObserver.js";
|
|
56
55
|
import "@unicom-cloud/utils/file/saveAs";
|
|
57
56
|
import "@unicom-cloud/utils/screenfull";
|
|
57
|
+
import "@unicom-cloud/utils/tinycolor";
|
|
58
|
+
import "@unicom-cloud/utils/ui-color";
|
|
58
59
|
import "@unicom-cloud/utils/constant/ui.js";
|
|
59
60
|
import "react-is";
|
|
60
61
|
import "@unicom-cloud/utils/tree";
|
|
@@ -74,7 +75,7 @@ const xt = {
|
|
|
74
75
|
zIndex: 1e3,
|
|
75
76
|
current: 0
|
|
76
77
|
};
|
|
77
|
-
function
|
|
78
|
+
function Ee(L) {
|
|
78
79
|
const { getPrefixCls: X, componentConfig: Y, rtl: kt } = ct($t), K = gt(
|
|
79
80
|
L,
|
|
80
81
|
xt,
|
|
@@ -306,5 +307,5 @@ function Me(L) {
|
|
|
306
307
|
);
|
|
307
308
|
}
|
|
308
309
|
export {
|
|
309
|
-
|
|
310
|
+
Ee as default
|
|
310
311
|
};
|
package/tree/NodeList.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as M, useRef as y, useMemo as p, useImperativeHandle as R, createElement as D } from "react";
|
|
3
|
-
import { scrollIntoView as V } from "../components/common/utils/
|
|
3
|
+
import { scrollIntoView as V } from "../components/common/utils/scrollIntoViewIfNeeded.js";
|
|
4
4
|
import b from "../virtual-list/VirtualList.js";
|
|
5
5
|
import I from "./Node.js";
|
|
6
6
|
function H(n) {
|
package/trigger/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as P, jsxs as
|
|
1
|
+
import { jsx as P, jsxs as De } from "react/jsx-runtime";
|
|
2
2
|
import no from "../dist/react-transition-group/src/CSSTransition.js";
|
|
3
3
|
import "../dist/react-transition-group/src/ReplaceTransition.js";
|
|
4
4
|
import "../dist/react-transition-group/src/SwitchTransition.js";
|
|
@@ -6,18 +6,18 @@ import "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
|
6
6
|
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
7
7
|
import ro from "lodash/isArray";
|
|
8
8
|
import D from "lodash/isFunction";
|
|
9
|
-
import { forwardRef as io, useContext as so, useRef as L, useState as uo, Children as
|
|
9
|
+
import { forwardRef as io, useContext as so, useRef as L, useState as uo, Children as xe, useCallback as Me, cloneElement as Se, useImperativeHandle as co, useLayoutEffect as lo, useEffect as g, Fragment as po } from "react";
|
|
10
10
|
import { createPortal as ao } from "react-dom";
|
|
11
11
|
import "../config-provider/ConfigProvider.js";
|
|
12
12
|
import R from "@unicom-cloud/utils/class-name";
|
|
13
|
-
import { on as G, off as J, getScrollElements as fo, isScrollElement as mo, contains as
|
|
13
|
+
import { on as G, off as J, getScrollElements as fo, isScrollElement as mo, contains as Oe } from "../components/common/utils/dom.js";
|
|
14
14
|
import { supportRef as go } from "../components/common/utils/is.js";
|
|
15
|
-
import { Esc as
|
|
15
|
+
import { Esc as ve } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
16
16
|
import { mergeProps as yo } from "../components/common/utils/mergeProps.js";
|
|
17
17
|
import { pickDataAttributes as To } from "../components/common/utils/pick.js";
|
|
18
18
|
import { callbackOriginRef as Co, findDOMNode_ as Po } from "../components/common/utils/reactDOM.js";
|
|
19
19
|
import { resizeObserver as Z } from "../components/common/utils/resizeObserver.js";
|
|
20
|
-
import { throttleByRaf as
|
|
20
|
+
import { throttleByRaf as be } from "../components/common/utils/throttleByRaf.js";
|
|
21
21
|
import ho, { getBoundingClientRect as Eo } from "./getPopupStyle.js";
|
|
22
22
|
import wo from "../config-provider/context.js";
|
|
23
23
|
import { isPlainObject as ee } from "@unicom-cloud/utils/is";
|
|
@@ -73,25 +73,22 @@ function So(d, $) {
|
|
|
73
73
|
const y = so(wo), { getPrefixCls: x, zIndex: T, rtl: A } = y, i = u(d), {
|
|
74
74
|
children: oe,
|
|
75
75
|
style: te,
|
|
76
|
-
className:
|
|
76
|
+
className: Ne,
|
|
77
77
|
arrowProps: _,
|
|
78
78
|
disabled: M,
|
|
79
|
-
popup:
|
|
79
|
+
popup: $e,
|
|
80
80
|
classNames: z,
|
|
81
81
|
duration: ke,
|
|
82
|
-
unmountOnExit:
|
|
82
|
+
unmountOnExit: ne,
|
|
83
83
|
alignPoint: He,
|
|
84
84
|
autoAlignPopupWidth: Ie,
|
|
85
85
|
position: Le,
|
|
86
86
|
childrenPrefix: h,
|
|
87
87
|
showArrow: _e,
|
|
88
|
-
popupStyle:
|
|
88
|
+
popupStyle: re,
|
|
89
89
|
__onExit: Be,
|
|
90
90
|
__onExited: Ve
|
|
91
|
-
} = i
|
|
92
|
-
if (!ne)
|
|
93
|
-
return null;
|
|
94
|
-
const se = oe || oe === 0, a = L(null), S = L(null), ue = L(null), ce = L(null), t = L({
|
|
91
|
+
} = i, ie = oe || oe === 0, a = L(null), S = L(null), se = L(null), ue = L(null), t = L({
|
|
95
92
|
rootElement: void 0,
|
|
96
93
|
triggerDestoried: !1,
|
|
97
94
|
// 标志 popup 是否被销毁
|
|
@@ -119,15 +116,15 @@ function So(d, $) {
|
|
|
119
116
|
}, 0);
|
|
120
117
|
}
|
|
121
118
|
};
|
|
122
|
-
I() && !M ? (l.onMouseEnter = We, l.onMouseLeave =
|
|
123
|
-
const k = V(), H =
|
|
119
|
+
I() && !M ? (l.onMouseEnter = We, l.onMouseLeave = ge, U() && (l.onClick = ye), He && (l.onMouseMove = Xe), ze() || (Q.onMouseEnter = Ue, Q.onMouseLeave = je)) : (l.onMouseEnter = w("onMouseEnter"), l.onMouseLeave = w("onMouseLeave")), le() && !M ? (l.onContextMenu = qe, l.onClick = ye) : l.onContextMenu = w("onContextMenu"), ce() && !M ? l.onClick = Ge : l.onClick = l.onClick || w("onClick"), X() && !M ? (l.onFocus = Je, pe() && (l.onBlur = Ze)) : (l.onFocus = w("onFocus"), l.onBlur = w("onBlur")), M ? l.onKeyDown = w("onKeyDown") : l.onKeyDown = Ke;
|
|
120
|
+
const k = V(), H = xe.only($e?.());
|
|
124
121
|
k.props.className && (l.className = k.props.className), h && s && (l.className = R(l.className, `${h}-open`)), X() && (l.tabIndex = M ? -1 : 0);
|
|
125
122
|
const v = x?.("trigger"), Re = R(
|
|
126
123
|
v,
|
|
127
124
|
h,
|
|
128
125
|
`${v}-position-${Le}`,
|
|
129
126
|
{ [`${v}-rtl`]: A },
|
|
130
|
-
|
|
127
|
+
Ne
|
|
131
128
|
);
|
|
132
129
|
function u(e) {
|
|
133
130
|
const { componentConfig: o } = y ?? {};
|
|
@@ -144,13 +141,13 @@ function So(d, $) {
|
|
|
144
141
|
);
|
|
145
142
|
return t.current.rootElement = e, e;
|
|
146
143
|
}
|
|
147
|
-
const W =
|
|
148
|
-
|
|
144
|
+
const W = Me(
|
|
145
|
+
be(() => {
|
|
149
146
|
N();
|
|
150
147
|
}),
|
|
151
148
|
[s]
|
|
152
149
|
);
|
|
153
|
-
function
|
|
150
|
+
function ce() {
|
|
154
151
|
const { trigger: e } = u(["trigger"]);
|
|
155
152
|
return [].concat(e).indexOf("click") > -1;
|
|
156
153
|
}
|
|
@@ -162,7 +159,7 @@ function So(d, $) {
|
|
|
162
159
|
const { trigger: e } = u(["trigger"]);
|
|
163
160
|
return [].concat(e).indexOf("hover") > -1;
|
|
164
161
|
}
|
|
165
|
-
function
|
|
162
|
+
function le() {
|
|
166
163
|
const { trigger: e } = u(["trigger"]);
|
|
167
164
|
return [].concat(e).indexOf("contextMenu") > -1;
|
|
168
165
|
}
|
|
@@ -173,19 +170,19 @@ function So(d, $) {
|
|
|
173
170
|
return I() && !u(["popupHoverStay"]).popupHoverStay;
|
|
174
171
|
}
|
|
175
172
|
function U() {
|
|
176
|
-
if (
|
|
173
|
+
if (ce() || le()) {
|
|
177
174
|
const { clickToClose: e = !0 } = u(["clickToClose"]);
|
|
178
175
|
return e;
|
|
179
176
|
}
|
|
180
177
|
return I() && i.clickToClose;
|
|
181
178
|
}
|
|
182
|
-
function
|
|
179
|
+
function pe() {
|
|
183
180
|
return X() && u(["blurToHide"]).blurToHide;
|
|
184
181
|
}
|
|
185
182
|
function Ye() {
|
|
186
183
|
t.current.updatePositionTimeoutID && (t.current.updatePositionTimeoutID.cancel ? t.current.updatePositionTimeoutID.cancel() : (clearTimeout(t.current.updatePositionTimeoutID), t.current.updatePositionTimeoutID = null)), E();
|
|
187
184
|
}
|
|
188
|
-
function
|
|
185
|
+
function ae(e) {
|
|
189
186
|
const o = a.current;
|
|
190
187
|
if (!o)
|
|
191
188
|
return {};
|
|
@@ -195,7 +192,7 @@ function So(d, $) {
|
|
|
195
192
|
]);
|
|
196
193
|
let c = n && t.current.arrowStyle?.top || 0, p = n && t.current.arrowStyle?.left || 0;
|
|
197
194
|
c = c ? `${c}px` : "", p = p ? `${p}px` : "";
|
|
198
|
-
const
|
|
195
|
+
const Ee = {
|
|
199
196
|
top: `${p || "50%"} 100% 0`,
|
|
200
197
|
tl: `${p || "15px"} 100% 0`,
|
|
201
198
|
tr: `${p || `${o.clientWidth - 15}px`} 100% 0`,
|
|
@@ -211,17 +208,17 @@ function So(d, $) {
|
|
|
211
208
|
};
|
|
212
209
|
if (r && r.indexOf("zoom") > -1)
|
|
213
210
|
return {
|
|
214
|
-
transformOrigin:
|
|
211
|
+
transformOrigin: Ee[e]
|
|
215
212
|
};
|
|
216
213
|
if (r === "slideDynamicOrigin") {
|
|
217
|
-
let
|
|
218
|
-
return ["top", "tl", "tr"].indexOf(e) > -1 && (
|
|
219
|
-
transformOrigin:
|
|
214
|
+
let we = "0% 0%";
|
|
215
|
+
return ["top", "tl", "tr"].indexOf(e) > -1 && (we = "100% 100%"), {
|
|
216
|
+
transformOrigin: we
|
|
220
217
|
};
|
|
221
218
|
}
|
|
222
219
|
return {};
|
|
223
220
|
}
|
|
224
|
-
function
|
|
221
|
+
function fe() {
|
|
225
222
|
if (u(["classNames"]).classNames !== "slideDynamicOrigin")
|
|
226
223
|
return "";
|
|
227
224
|
switch (t.current.realPosition) {
|
|
@@ -254,7 +251,7 @@ function So(d, $) {
|
|
|
254
251
|
const p = c || i.position;
|
|
255
252
|
return t.current.realPosition = p, {
|
|
256
253
|
...n,
|
|
257
|
-
...
|
|
254
|
+
...ae(p)
|
|
258
255
|
};
|
|
259
256
|
}
|
|
260
257
|
function C(e) {
|
|
@@ -266,7 +263,7 @@ function So(d, $) {
|
|
|
266
263
|
e();
|
|
267
264
|
}, 0);
|
|
268
265
|
}
|
|
269
|
-
const B =
|
|
266
|
+
const B = Me(be(C), [
|
|
270
267
|
s
|
|
271
268
|
]);
|
|
272
269
|
function N(e = 0, o) {
|
|
@@ -288,7 +285,7 @@ function So(d, $) {
|
|
|
288
285
|
}
|
|
289
286
|
function f(e, o = 0, n) {
|
|
290
287
|
const r = u(["onVisibleChange", "popupVisible"]);
|
|
291
|
-
e !== s ?
|
|
288
|
+
e !== s ? de(o, () => {
|
|
292
289
|
r.onVisibleChange?.(e), "popupVisible" in r ? n?.() : (O((c) => {
|
|
293
290
|
const p = { ...c };
|
|
294
291
|
return p.popupVisible = !!e, p;
|
|
@@ -299,7 +296,7 @@ function So(d, $) {
|
|
|
299
296
|
}, 0));
|
|
300
297
|
}) : n?.();
|
|
301
298
|
}
|
|
302
|
-
function
|
|
299
|
+
function de(e, o) {
|
|
303
300
|
e ? (E(), t.current.delayTimeoutID = setTimeout(() => {
|
|
304
301
|
o(), E();
|
|
305
302
|
}, e)) : o();
|
|
@@ -307,18 +304,18 @@ function So(d, $) {
|
|
|
307
304
|
function E() {
|
|
308
305
|
t.current.delayTimeoutID && (clearTimeout(t.current.delayTimeoutID), t.current.delayTimeoutID = null);
|
|
309
306
|
}
|
|
310
|
-
function
|
|
307
|
+
function me(e) {
|
|
311
308
|
const o = u(["onClickOutside", "clickOutsideToClose"]);
|
|
312
|
-
let n =
|
|
313
|
-
n ||=
|
|
309
|
+
let n = Oe(a.current, e.target);
|
|
310
|
+
n ||= Oe(b(), e.target), n ||= !!t.current.hasPopupMouseDown, n || (o.onClickOutside?.(), o.clickOutsideToClose && (pe() || I() || f(!1)));
|
|
314
311
|
}
|
|
315
312
|
function Ke(e) {
|
|
316
313
|
const o = e.key;
|
|
317
|
-
m("onKeyDown", e), o ===
|
|
314
|
+
m("onKeyDown", e), o === ve.key && Qe(e);
|
|
318
315
|
}
|
|
319
316
|
function Qe(e) {
|
|
320
317
|
const { escToClose: o } = u(["escToClose"]);
|
|
321
|
-
o && e && e.key ===
|
|
318
|
+
o && e && e.key === ve.key && s && f(!1);
|
|
322
319
|
}
|
|
323
320
|
function We(e) {
|
|
324
321
|
const { mouseEnterDelay: o } = u(["mouseEnterDelay"]);
|
|
@@ -327,7 +324,7 @@ function So(d, $) {
|
|
|
327
324
|
function Xe(e) {
|
|
328
325
|
m("onMouseMove", e), q(e), s && B();
|
|
329
326
|
}
|
|
330
|
-
function
|
|
327
|
+
function ge(e) {
|
|
331
328
|
const { mouseLeaveDelay: o } = u(["mouseLeaveDelay"]);
|
|
332
329
|
E(), m("onMouseLeave", e), Ae() && s && f(!1, o || 0);
|
|
333
330
|
}
|
|
@@ -335,7 +332,7 @@ function So(d, $) {
|
|
|
335
332
|
E();
|
|
336
333
|
}
|
|
337
334
|
function je(e) {
|
|
338
|
-
|
|
335
|
+
ge(e);
|
|
339
336
|
}
|
|
340
337
|
function q(e) {
|
|
341
338
|
u(["alignPoint"]).alignPoint && (t.current.mouseLocation = {
|
|
@@ -346,7 +343,7 @@ function So(d, $) {
|
|
|
346
343
|
function qe(e) {
|
|
347
344
|
e.preventDefault(), m("onContextMenu", e), q(e), s ? u(["alignPoint"]).alignPoint && B() : f(!0, 0);
|
|
348
345
|
}
|
|
349
|
-
function
|
|
346
|
+
function ye(e) {
|
|
350
347
|
s && (t.current.mousedownToHide = !0), m("onClick", e), U() && s && f(!s, 0);
|
|
351
348
|
}
|
|
352
349
|
function Ge(e) {
|
|
@@ -361,13 +358,13 @@ function So(d, $) {
|
|
|
361
358
|
function Ze(e) {
|
|
362
359
|
f(!1, 200, () => m("onBlur", e));
|
|
363
360
|
}
|
|
364
|
-
function
|
|
361
|
+
function Te() {
|
|
365
362
|
s && u(["autoFixPosition"]).autoFixPosition && N();
|
|
366
363
|
}
|
|
367
364
|
function V() {
|
|
368
365
|
const { children: e } = i, o = e, n = o && typeof o != "string" && o.type;
|
|
369
366
|
let r = e;
|
|
370
|
-
if (["string", "number"].indexOf(typeof e) > -1 ||
|
|
367
|
+
if (["string", "number"].indexOf(typeof e) > -1 || xe.count(e) > 1)
|
|
371
368
|
r = /* @__PURE__ */ P("span", { children: e });
|
|
372
369
|
else if (o && n && (n.__PQB_BUTTON === !0 || n.__PQB_CHECKBOX === !0 || n.__PQB_SWITCH === !0 || n.__PQB_RADIO === !0 || n === "button") && o.props.disabled) {
|
|
373
370
|
const { picked: c, omitted: p } = xo(o.props.style, [
|
|
@@ -385,7 +382,7 @@ function So(d, $) {
|
|
|
385
382
|
{
|
|
386
383
|
className: o.props?.className,
|
|
387
384
|
style: { display: "inline-block", ...c, cursor: "not-allowed" },
|
|
388
|
-
children:
|
|
385
|
+
children: Se(o, {
|
|
389
386
|
style: {
|
|
390
387
|
...p,
|
|
391
388
|
pointerEvents: "none"
|
|
@@ -407,7 +404,7 @@ function So(d, $) {
|
|
|
407
404
|
n(c), r(c);
|
|
408
405
|
} : n || r;
|
|
409
406
|
}
|
|
410
|
-
function
|
|
407
|
+
function Ce() {
|
|
411
408
|
const e = u(["containerScrollToClose", "updateOnScroll"]);
|
|
412
409
|
e.containerScrollToClose ? f(!1) : e.updateOnScroll && N();
|
|
413
410
|
}
|
|
@@ -416,12 +413,12 @@ function So(d, $) {
|
|
|
416
413
|
b()
|
|
417
414
|
// refPopupContainer.current.parentNode as HTMLElement,
|
|
418
415
|
), Array.isArray(t.current.scrollElements) && (i.containerScrollToClose && S.current?.parentNode === document.body && t.current.scrollElements.indexOf(document.body) === -1 && mo(document.documentElement) && t.current.scrollElements.push(window), t.current.scrollElements.forEach((e) => {
|
|
419
|
-
G(e, "scroll",
|
|
416
|
+
G(e, "scroll", Ce);
|
|
420
417
|
})));
|
|
421
418
|
}
|
|
422
|
-
function
|
|
419
|
+
function Pe() {
|
|
423
420
|
t.current.scrollElements && (t.current.scrollElements.forEach((e) => {
|
|
424
|
-
J(e, "scroll",
|
|
421
|
+
J(e, "scroll", Ce);
|
|
425
422
|
}), t.current.scrollElements = null);
|
|
426
423
|
}
|
|
427
424
|
co($, () => ({
|
|
@@ -432,20 +429,20 @@ function So(d, $) {
|
|
|
432
429
|
},
|
|
433
430
|
getChild: V,
|
|
434
431
|
getPopupStyle: j,
|
|
435
|
-
getTransformTranslate:
|
|
436
|
-
getTransformOrigin:
|
|
432
|
+
getTransformTranslate: fe,
|
|
433
|
+
getTransformOrigin: ae,
|
|
437
434
|
updateThrottleByRaf: B,
|
|
438
435
|
update: C,
|
|
439
436
|
updatePopupStyle: C,
|
|
440
437
|
updatePopupPosition: N,
|
|
441
438
|
handleUpdatePosition: W,
|
|
442
439
|
setPopupVisible: f,
|
|
443
|
-
delayToDo:
|
|
440
|
+
delayToDo: de
|
|
444
441
|
})), lo(() => (C(), () => {
|
|
445
442
|
}), [
|
|
446
443
|
a.current,
|
|
444
|
+
se.current,
|
|
447
445
|
ue.current,
|
|
448
|
-
ce.current,
|
|
449
446
|
t.current.rootElement
|
|
450
447
|
]), g(() => {
|
|
451
448
|
const e = S.current?.parentNode, o = Z([e], N);
|
|
@@ -453,12 +450,12 @@ function So(d, $) {
|
|
|
453
450
|
o();
|
|
454
451
|
};
|
|
455
452
|
}, [S.current?.parentNode]), g(() => {
|
|
456
|
-
const e = a.current, o = Z([e],
|
|
453
|
+
const e = a.current, o = Z([e], Te);
|
|
457
454
|
return () => {
|
|
458
455
|
o();
|
|
459
456
|
};
|
|
460
457
|
}, [a.current]), g(() => {
|
|
461
|
-
const e = t.current.rootElement, o = Z([e],
|
|
458
|
+
const e = t.current.rootElement, o = Z([e], Te);
|
|
462
459
|
return () => {
|
|
463
460
|
o();
|
|
464
461
|
};
|
|
@@ -474,8 +471,8 @@ function So(d, $) {
|
|
|
474
471
|
i.alignPoint,
|
|
475
472
|
i.boundaryDistance,
|
|
476
473
|
i.position
|
|
477
|
-
]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ? eo() : (N(),
|
|
478
|
-
|
|
474
|
+
]), g(() => (s && (i.updateOnScroll || i.containerScrollToClose ? eo() : (N(), Pe())), () => {
|
|
475
|
+
Pe();
|
|
479
476
|
}), [
|
|
480
477
|
s,
|
|
481
478
|
i.updateOnScroll,
|
|
@@ -490,8 +487,8 @@ function So(d, $) {
|
|
|
490
487
|
// 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
|
|
491
488
|
capture: ee(e) ? e.capture : !1
|
|
492
489
|
};
|
|
493
|
-
return s && (G(n, "mousedown",
|
|
494
|
-
J(n, "mousedown",
|
|
490
|
+
return s && (G(n, "mousedown", me, r), G(window, "resize", W)), () => {
|
|
491
|
+
J(n, "mousedown", me, r), J(window, "resize", W);
|
|
495
492
|
};
|
|
496
493
|
}, [s]), g(() => ("defaultPopupVisible" in i && O((e) => {
|
|
497
494
|
const o = { ...e };
|
|
@@ -504,7 +501,7 @@ function So(d, $) {
|
|
|
504
501
|
}), [K]), g(() => () => {
|
|
505
502
|
Ye();
|
|
506
503
|
}, []);
|
|
507
|
-
const oo =
|
|
504
|
+
const oo = ie && Se(k, {
|
|
508
505
|
...l,
|
|
509
506
|
ref: go(k) ? (e) => {
|
|
510
507
|
t.current.child = e, Co(k, e);
|
|
@@ -515,13 +512,13 @@ function So(d, $) {
|
|
|
515
512
|
in: !!s,
|
|
516
513
|
timeout: ke,
|
|
517
514
|
classNames: z,
|
|
518
|
-
unmountOnExit:
|
|
515
|
+
unmountOnExit: ne,
|
|
519
516
|
appear: !0,
|
|
520
517
|
mountOnEnter: !0,
|
|
521
518
|
onEnter: () => {
|
|
522
519
|
t.current.triggerDestoried = !1;
|
|
523
520
|
const e = a.current;
|
|
524
|
-
e && (e.style.display = "initial", e.style.pointerEvents = "none", z === "slideDynamicOrigin" && (e.style.transform =
|
|
521
|
+
e && (e.style.display = "initial", e.style.pointerEvents = "none", z === "slideDynamicOrigin" && (e.style.transform = fe()), C());
|
|
525
522
|
},
|
|
526
523
|
onEntering: () => {
|
|
527
524
|
const e = a.current;
|
|
@@ -537,13 +534,13 @@ function So(d, $) {
|
|
|
537
534
|
},
|
|
538
535
|
onExited: () => {
|
|
539
536
|
const e = a.current;
|
|
540
|
-
e && (e.style.display = "none",
|
|
537
|
+
e && (e.style.display = "none", ne && (t.current.triggerDestoried = !0), O((o) => {
|
|
541
538
|
const n = { ...o };
|
|
542
539
|
return n.popupStyle = {}, n;
|
|
543
540
|
}), Ve?.(e));
|
|
544
541
|
},
|
|
545
542
|
nodeRef: a,
|
|
546
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ De(
|
|
547
544
|
"span",
|
|
548
545
|
{
|
|
549
546
|
ref: a,
|
|
@@ -560,25 +557,25 @@ function So(d, $) {
|
|
|
560
557
|
...Q,
|
|
561
558
|
className: Re,
|
|
562
559
|
children: [
|
|
563
|
-
ee(
|
|
560
|
+
ee(re) ? /* @__PURE__ */ P(
|
|
564
561
|
H.type,
|
|
565
562
|
{
|
|
566
563
|
ref: H.ref,
|
|
567
564
|
...H.props,
|
|
568
|
-
style: { ...H.props.style, ...
|
|
565
|
+
style: { ...H.props.style, ...re }
|
|
569
566
|
}
|
|
570
567
|
) : H,
|
|
571
568
|
(_e || _) && /* @__PURE__ */ P(
|
|
572
569
|
"div",
|
|
573
570
|
{
|
|
574
|
-
ref:
|
|
571
|
+
ref: se,
|
|
575
572
|
className: R(`${v}-arrow-container`, {
|
|
576
573
|
[`${h}-arrow-container`]: h
|
|
577
574
|
}),
|
|
578
575
|
children: /* @__PURE__ */ P(
|
|
579
576
|
"div",
|
|
580
577
|
{
|
|
581
|
-
ref:
|
|
578
|
+
ref: ue,
|
|
582
579
|
..._,
|
|
583
580
|
className: R(
|
|
584
581
|
`${v}-arrow`,
|
|
@@ -597,8 +594,8 @@ function So(d, $) {
|
|
|
597
594
|
)
|
|
598
595
|
}
|
|
599
596
|
);
|
|
600
|
-
let F,
|
|
601
|
-
if (
|
|
597
|
+
let F, he = s;
|
|
598
|
+
if (he ||= !!a.current && !t.current.triggerDestoried, he) {
|
|
602
599
|
const e = i.getPopupContainer || y.getPopupContainer;
|
|
603
600
|
if (D(e)) {
|
|
604
601
|
const o = e(b());
|
|
@@ -609,7 +606,7 @@ function So(d, $) {
|
|
|
609
606
|
));
|
|
610
607
|
}
|
|
611
608
|
}
|
|
612
|
-
return
|
|
609
|
+
return ie && (F = /* @__PURE__ */ De(po, { children: [
|
|
613
610
|
oo,
|
|
614
611
|
F
|
|
615
612
|
] })), F;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
import type { DevelopmentProps } from './interface';
|
|
2
|
+
/**
|
|
3
|
+
* 开发占位组件
|
|
4
|
+
* @description 用于展示未开发完成的功能区块,支持自定义图片/图标和提示文字
|
|
5
|
+
*/
|
|
6
|
+
declare const Development: import("react").ForwardRefExoticComponent<DevelopmentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
1
7
|
export default Development;
|
|
2
|
-
|
|
8
|
+
export type { DevelopmentProps };
|